MiniCore RCM5700/RCM6700 User’s Manual
22
The SERIALTOSERIAL.C sample program is in the SAMPLES\RCM5700\SERIAL or
SAMPLES\RCM6700\SERIAL
folder, depending on your MiniCore model.
SERIALTOSERIAL.C
—monitors switches S1, S2, S3, and S4 on the Digital I/O accessory
board and lights LEDs DS1–DS4 when the corresponding pushbutton switch is pressed. LEDs
DS1–DS2 on the Digital I/O accessory board are controlled by PA4–PA7, and switches S1–S4
are controlled by PB4–PB7 respectively. The sample program sends messages from Serial Port
B to Serial Port C to indicate that a switch was pressed. Messages received by Serial Port C are
displayed in Dynamic C’s STDIO window.
Before you compile and run this sample program, you will need to connect J2 pin 19 (PC0/TxD)
to J2 pin 22 (PC3/RxC) or the corresponding holes on P2.
If you are using the Serial Communication Accessory Board, you should connect pin 3 (TXD) on
header J3 to pin 5 (RXC) on header J4 instead.