—This program demonstrates the use of parity modes by
•
PARITY.C
repeatedly sending byte values 0–127 from Serial Port D to Serial Port
C. The program will switch between generating parity or not on Serial
Port D. Serial Port C will always be checking parity, so parity errors
should occur during every other sequence.
To set up the Prototyping Board, you will need to tie TxD and RxC together on the
RS-232 header at J5 using one of the jumpers supplied in the Development Kit as
shown in the diagram.
The Dynamic C
STDIO
•
SIMPLE3WIRE.C
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
To set up the Prototyping Board, you will need to tie TxD and RxC together on the
RS-232 header at J5, and you will also tie RxD and TxC together using the jumpers
supplied in the Development Kit as shown in the diagram.
•
SIMPLE5WIRE.C
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 J5, and you will also tie TxC and
RxC together using the 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
back to RxC.
—This program demonstrates transmitting and then receiving an
•
SWITCHCHAR.C
ASCII string on Serial Ports D and C. It also displays the serial data received from both
ports in the
STDIO
To set up the Prototyping Board, you will need to tie TxD and RxC
together on the RS-232 header at J5, and you will also tie RxD and
TxC together using the jumpers supplied in the Development Kit as
shown in the diagram.
Once you have compiled and run this program, press and release S2
and S3 on the Prototyping Board. The data sent between the serial ports will be dis-
played in the
STDIO
Two sample programs,
illustrate RS-485 master/slave communication. To run these sample programs, you will
need a second Rabbit-based system with RS-485.
16
window will display the error sequence.
—This program demonstrates basic RS-232 serial
window.
—This program demonstrates 5-wire RS-232 serial communication
STDIO
window, and will display again once TxC is connected
window.
window.
SIMPLE485MASTER.C
and
SIMPLE485SLAVE.C
RxC
TxC
TxD
RxD GND
RxC TxC
TxD RxD
GND
RxC TxC
TxD RxD
GND
RxC TxC
TxD RxD
GND
, are available to
RabbitCore RCM3400
Need help?
Do you have a question about the RabbitCore RCM3400 and is the answer not in the manual?