RabbitCore RCM4500W User Manual page 25

C-programmable zigbee core module
Table of Contents

Advertisement

—This program demonstrates basic RS-232 serial commu-
SIMPLE3WIRE.C
nication. Lower case characters are sent on TxC, and are received by RxD.
The received characters are converted to upper case and are sent out on TxD,
are received on RxC, and are displayed in the Dynamic C
To set up the Prototyping Board, you will need to tie TxD and RxC together
on the RS-232 header at J4, and you will also tie RxD and TxC together using the jumpers sup-
plied in the Development Kit as shown in the diagram.
—This program demonstrates 5-wire RS-232 serial communication with
SIMPLE5WIRE.C
flow control on Serial Port D and data flow on Serial Port C.
To set up the Prototyping Board, you will need to tie TxD and RxD together
on the RS-232 header at J4, 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 control by
disconnecting the TxD jumper from RxD while the program is running. Char-
acters will no longer appear in the
nected back to RxD.
If you have two Prototyping Boards with modules, run this sample program on the sending
board, then disconnect the programming cable and reset the sending board so that the module
is operating in the Run mode. Connect TxC, TxD, and GND on the sending board to RxC,
RxD, and GND on the other board, then, with the programming cable attached to the other
module, run the sample program. Once you have compiled and run this program, you can test
flow control by disconnecting TxD from RxD as before while the program is running. Since the
J4 header locations on the two Prototyping Boards are connected with wires, there are no slip-on
jumpers at J4 on either Prototyping Board.
—This program demonstrates transmitting and then receiving an ASCII string
SWITCHCHAR.C
on Serial Ports C and D. It also displays the serial data received from both ports in the
window.
To set up the Prototyping Board, you will need to tie TxD and RxC together
on the RS-232 header at J4, 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 switches S2
and S3 on the Prototyping Board. The data sent between the serial ports will
be displayed in the
User's Manual
STDIO
window.
STDIO
STDIO
window, and will display again once TxD is con-
RxC TxC
TxD RxD
window.
RxC TxC
TxD RxD
STDIO
RxC TxC
TxD RxD
20
J4
GND
J4
GND
J4
GND

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RCM4500W and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents