Rabbit Core RCM3700 User Manual page 122

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

RS-232 can be used effectively at the RCM3720 module's maximum baud rate for distances
of up to 15 m.
The RS-232 chip brings out Serial Ports C and D to header J7 on the RCM3720 Prototyp-
ing Board. A 2 × 5 header with a 0.1" pitch installed at J7 allows you to connect a ribbon
cable that leads to a standard DB9 serial connector.
Table B-9 summarizes the serial port locations.
Table B-9. RCM3720 Prototyping Board Serial Port Locations
Serial Port
These serial ports can be configured in software as either one 5-wire or two 3-wire RS-232
channels. RS-232 flow control on an RS-232 port is initiated in software using the
function call from
flowcontrolOn
locations of the flow control lines are specified using a set of five macros.
SERX_RTS_PORT—Data register for the parallel port that the RTS line is on (e.g., PCDR).
SERA_RTS_SHADOW—Shadow register for the RTS line's parallel port (e.g., PCDRShadow).
SERA_RTS_BIT—The bit number for the RTS line.
SERA_CTS_PORT—Data register for the parallel port that the CTS line is on (e.g., PCDRShadow).
SERA_CTS_BIT—The bit number for the CTS line.
Standard 3-wire RS-232 communication using Serial Ports C and D is illustrated in the
following sample code.
#define CINBUFSIZE
#define COUTBUFSIZE 15
#define DINBUFSIZE
#define DOUTBUFSIZE 15
#define MYBAUD 115200
#endif
main(){
serCopen(_MYBAUD);
serDopen(_MYBAUD);
serCwrFlush();
serCrdFlush();
serDwrFlush();
serDrdFlush();
}
RabbitCore RCM3700 User's Manual
Signal Header
C
J7
D
J7
, where
RS232.LIB
15
15
Header Pins
TxC...6
RxC...4
TxD...3
RxD...5
is the serial port (C or D). The
X
serX-
120

Advertisement

Table of Contents
loading

Table of Contents