B.1.6.2 Rs-485 - Rabbit Core RCM3700 User Manual

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

Advertisement

B.1.6.2 RS-485

The RCM3700 Prototyping Board has one RS-485 serial channel, which is connected to
the Rabbit 3000 Serial Port E through an RS-485 transceiver. The half-duplex communi-
cation uses an output from PF5 on the Rabbit 3000 to control the transmit enable on the
communication line. Using this scheme a strict master/slave relationship must exist
between devices to insure that no two devices attempt to drive the bus simultaneously.
Serial Port E is configured in software for RS-485 as follows.
#define ser485open serEopen
#define ser485close serEclose
#define ser485wrFlush serEwrFlush
#define ser485rdFlush serErdFlush
#define ser485putc serEputc
#define ser485getc serEgetc
#define EINBUFSIZE
#define EOUTBUFSIZE 15
The configuration shown above is based on circular buffers. RS-485 configuration may
also be done using functions from the
The RCM3700 Prototyping Boards with RCM3700 modules installed can be used in an
RS-485 multidrop network spanning up to 1200 m (4000 ft), and there can be as many as
32 attached devices. Connect the 485+ to 485+ and 485– to 485– using single twisted-pair
wires as shown in Figure B-8. Note that a common ground is recommended.
RabbitCore RCM3700 User's Manual
15
PACKET.LIB
Figure B-8. RCM3700 Multidrop Network
library.
105

Advertisement

Table of Contents
loading

Table of Contents