Commands, Rs-232 port pin out – Remote Processing RPC-210 User Manual
Page 25

SERIAL & SPI PORTS
BASIC
SECTION 4
Page 4-7
COMMANDS
The following is a list of RPBASIC-52 commands used
for serial I/O. These commands and functions are
explained in the BASIC-52 Programm ing Manual or
RPBASIC-52 Software Supplement in this manua l.
Command
Function
C L E AR C O M $
Clears serial input buffer
C O M $
Returns string from buffer
COM
Return s numbe r of char acters in
buffer
C O N F I G BA U D
Sets serial port parameters
GET
Returns a character fr om the
serial buffer
I N P U T
Receives string from port
LIST
Outputs program listing
O N C OM $
Branches to a subroutine when
specified parameters are met
P R I N T
Outputs data in various fo rma ts
PRINT #,
Prints to a specified port
SPC
Print out n number of spaces
SPI
Reads or writes SP I data
SCON
Configures SPI port
STR
Various string comma nds. Useful
for networking and output
formatting.
TAB
Tabs to predetermined positions
UI0
Reroute inputs to COM0
UI1
Route inputs to COM1
UO0
Rerou te PRIN T statem ent to
C O M 0
UO1
Route PRINT statement to COM1
U S I N G
PRINT formatting statement
RS-232 PORT PIN OUT
Pin outs for J1 and J2 are shown below. Unused pins
are open.
J1
C O M 0
J2
C O M 1
N a m e
Direction from
card
3
3
TxD
Out
4
RTS
In
5
5
RxD
In
6
CTS
Out
9
9
Ground
10
10
+ 5V
RS-422/485 PORT PIN OUT
Pin out for RS-422/RS-485 port at J6 is below.
Pin No.
Description
1
T+
2
T-
3
Ground
4
R+
5
R-