Serial ports chapter 4, Commands, Serial port pin out – Remote Processing RPC-52 User Manual

Page 14

Advertising
background image

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 manua l.

Comm and

Function

C L E AR C O M $ Clears serial input buffer
C O M $

Returns string from buffer

COM

Returns number of characters
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

P R I N T

Outputs data in various
form ats

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 statem ent to
C O M 0

UO1

Route P RINT statement to
C O M 1

U S I N G

PRINT formatting statement

SERIAL PORT PIN OUT

Pin outs for J2 and J3 are shown below. COM 0 (J3)
only has TXD and RX D active. U nused pins are open.

C O M 0 C O M 1

N a m e

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.

Advertising