82
RabbitCore RCM3600
B.4.3.2 RS-485
The RCM3600 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 15
#define EOUTBUFSIZE 15
The configuration shown above is based on circular buffers. RS-485 configuration may
also be done using functions from the
PACKET.LIB
library.
The RCM3600 Prototyping Boards with RCM3600 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.
Figure B-8. RCM3600 Multidrop Network
RS-485
RS485+
GND
RS-485
RS485+
GND
RS-485
RS485+
GND
Содержание RabbitCore
Страница 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Страница 6: ...RabbitCore RCM3600 ...
Страница 12: ...6 RabbitCore RCM3600 ...
Страница 92: ...86 RabbitCore RCM3600 ...
Страница 128: ...122 RabbitCore RCM3600 ...
Страница 132: ...126 RabbitCore RCM3600 ...
Страница 136: ...130 RabbitCore RCM3600 ...
Страница 138: ......