User`s manual

16 RabbitCore RCM3400
PARITY.C—This program demonstrates the use of parity modes by
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 window will display the error sequence.
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 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—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 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 STDIO window, and will display again once TxC is connected
back to RxC.
SWITCHCHAR.C—This program demonstrates transmitting and then receiving an
ASCII string on Serial Ports D and C. It also displays the serial data received from both
ports in the
STDIO window.
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 window.
Two sample programs, SIMPLE485MASTER.C and SIMPLE485SLAVE.C, are available to
illustrate RS-485 master/slave communication. To run these sample programs, you will
need a second Rabbit-based system with RS-485.
J5
RxC
RxD GND
TxD
TxC
J5
RxC TxC
GND
TxD RxD