
SERIAL PORTS CHAPTER 4
Page 12
COMMANDS
The following is a list of RPBASIC-52 commands used
for serial I/O. Variations for many comm ands are not
listed here. These commands and functions are
explained in the BASIC-52 Programm ing Manual and
RPBASIC-52 Software Supplement in this manual.
Command Function
CLEAR COM$ Clears serial input buffer
COM$ Returns string from buffer
COM Returns number of characters
in buffer
CONFIG BAUD Sets serial port parameters
GET Returns a character from the
serial buffer
INPUT Receives string from port
LIST Outputs program listing
PRINT Outputs data in various
formats
SPC Print out n number of spaces
TAB Tabs to predetermined
positions
UI0 Reroute inputs to COM0
UI1 Route inputs to COM1
UO0 Rerou te PRIN T statement to
COM0
UO1 Route P RINT statement to
COM1
USING PRINT formatting statement
SERIAL PORT PIN OUT
Pin outs for J2 and J3 are shown below. COM 0 (J3)
only has TXD and RXD active. U nused pins are open.
COM0 COM1 Name Direction
J3 J2 from card
3 3 Tx Out
4 RTS In
5 5 RXD In
6
*
6 CTS Out
9 9 Ground
10 10 +5
*
COM0 pin 6 has a 4.7K resistor to + 5V.
Commentaires sur ces manuels