User`s manual
22 MiniCore RCM5600W
The SERIALTOSERIAL.C sample program is in the SAMPLES\RCM5600W\SERIAL
folder.
• SERIALTOSERIAL.C—monitors switches S1, S2, S3, and S4 on the Digital I/O acces-
sory 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 correspond-
ing holes on P2.
If you are using the Serial Communi-
cation accessory board, you should connect pin 3 (TXD) on header J3 to pin 5 (RXC)
on header J4 instead.
P2
J2