Two sample programs,
and
, are available to illus-
SLAVE2.C
trate RS-485 master/slave communica-
tion. To run these sample programs,
you will need a second Rabbit-based
system with RS-485, and you will also
have to add an RS-485 transceiver
such as the SP483E and bias resistors
to the Prototyping Board.
The diagram shows the connections.
You will have to connect PC0 and PC1
(Serial Port D) on the Prototyping Board to the RS-485 transceiver, and you will connect
PD0 to the RS-485 transceiver to enable or disable the RS-485 transmitter.
The RS-485 connections between the slave and master devices are as follows.
• RS485+ to RS485+
• RS485– to RS485–
• GND to GND
•
—This program demonstrates a simple RS-485 transmission of lower case
MASTER2.C
letters to a slave RCM2100. The slave will send back converted upper case letters back
to the master RCM2100 and display them in the
program the slave RCM2100.
•
—This program demonstrates a simple RS-485 transmission of lower case
SLAVE2.C
letters to a master RCM2100. The slave will send back converted upper case letters
back to the master RCM2100 and display them in the
to program the master RCM2100.
3.1.3 Other Sample Programs
Section 6.7 covers how to run the TCP/IP sample programs, which are then described in
detail.
18
MASTER2.C
PC0
PC1
PD0
47 kW
485+
Vcc
DI
A
RO
RS-485
CHIP
B
DE
/RE
485
STDIO
window. Use
STDIO
window. Use
RabbitCore RCM2100
Vcc
681 W
bias
termi-
220 W
nation
bias
681 W
to
SLAVE2.C
MASTER2.C
Need help?
Do you have a question about the RabbitCore RCM2100 and is the answer not in the manual?
Questions and answers