Getting Started
17
•
SIMPLE3WIRE.C
—This program demonstrates basic RS-232 serial
communication. Lower case characters are sent by TxC, and are
received by RxD. The characters are converted to upper case and are
sent out by TxD, are received by RxC, and are displayed in the
Dynamic C
STDIO
window.
To set up the Prototyping Board, you will need to tie TxD and RxC together on the
RS-232 header at J2, and you will also tie RxD and TxC together using the 0.1" jump-
ers supplied in the Development Kit as shown in the diagram.
•
SIMPLE5WIRE.C
—This program demonstrates 5-wire RS-232 serial communication
with flow control on Serial Port C and data flow on Serial Port D.
To set up the Prototyping Board, you will need to tie TxD and RxD
together on the RS-232 header at J2, and you will also tie TxC and
RxC together using the 0.1" jumpers supplied in the Development Kit
as shown in the diagram.
Once you have compiled and run this program, you can test flow con-
trol by disconnecting TxC from RxC while the program is running. Characters will no
longer appear in the
STDIO
window, and will display again once TxC is connected
back to RxC.
•
SWITCHCHAR.C
—This program transmits and then receives an ASCII string on Serial
Ports C and E. It also displays the serial data received from both ports in the
STDIO
window.
Before running this sample program, check to make sure that Serial
Port E is set up as an RS-232 serial port—pins 1–3 and pins 2–4 on
header JP2 must be jumpered together using the 2 mm jumpers sup-
plied in the Development Kit. Then connect TxC to RxE and connect
RxC to TxE on the RS-232 header at J2 using the 0.1" jumpers sup-
plied in the Development Kit as shown in the diagram.
NOTE:
The following two sample programs illustrating RS-485 serial communication
will only work with the RCM3600/RCM3700 Prototyping Board.
•
SIMPLE485MASTER.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave RCM3600. The slave will send back converted upper case
letters back to the master RCM3600 and display them in the
STDIO
window. Use
SIMPLE485SLAVE.C
to program the slave RCM3600, and check to make sure that
Serial Port E is set up as an RS-485 serial port—pins 3–5 and pins 4–6 on header JP2
must be jumpered together using the 2 mm jumpers supplied in the Development Kit.
•
SIMPLE485SLAVE.C
—This program demonstrates a simple RS-485
transmission of lower case letters to a master RCM3600. The slave
will send back converted upper case letters back to the master
RCM3600 and display them in the
STDIO
window. Use
SIMPLE485MASTER.C
to program the masterRCM3600, and check to make sure that
Serial Port E is set up as an RS-485 serial port—pins 3–5 and pins 4–6 on header JP2
must be jumpered together using the 2 mm jumpers supplied in the Development Kit.
J2
RXC
TXC
RXE
GND
TXD
RXD
TXE
GND
J2
RXC TXC
RXE
GND
TXD
RXD
TXE
GND
J2
RXC
TXC
RXE
GND
TXD
RXD
TXE
GND
JP2
JP2
Содержание 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: ......