Rabbit RabbitCore User Manual page 24

C-programmable core module with ethernet, serial flash
Table of Contents

Advertisement

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 J2, and you will also tie RxD and TxC together using the 0.1" jump-
ers 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 J2, and you will also tie TxC and
RxC together using the 0.1" 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 C and E. It also displays the serial data received from both
ports in the
STDIO
Before running this sample program, check to make sure that Serial
Port E is set up as an RS-232 serial port—pins 1–3 and pins 2–4 on
header JP2 on the Prototyping Board must be jumpered together using
the 2 mm jumpers supplied in the Development Kit. Then connect TxC
to RxE and connect RxC to TxE on the RS-232 header at J2 using the
0.1" jumpers supplied in the Development Kit as shown in the diagram.
NOTE: The following two sample programs illustrating RS-485 serial communication
will only work with the RCM3700 Prototyping Board.
SIMPLE485MASTER.C
lower case letters to a slave RCM3750. The slave will send back converted upper case
letters back to the master RCM3750 and display them in the
SIMPLE485SLAVE.C
Serial Port E is set up as an RS-485 serial port—pins 3–5 and pins 4–6 on header JP2
must be jumpered together using the 2 mm jumpers supplied in the Development Kit.
SIMPLE485SLAVE.C
transmission of lower case letters to a master RCM3750. The slave
will send back converted upper case letters back to the master
RCM3750 and display them in the
SIMPLE485MASTER.C
Serial Port E is set up as an RS-485 serial port—pins 3–5 and pins 4–6 on header JP2
must be jumpered together using the 2 mm jumpers supplied in the Development Kit.
18
—This program demonstrates basic RS-232 serial
window.
—This program demonstrates 5-wire RS-232 serial communication
window, and will display again once TxC is connected
STDIO
window.
—This program demonstrates a simple RS-485 transmission of
to program the slave RCM3750, and check to make sure that
—This program demonstrates a simple RS-485
STDIO
to program the master RCM3750, and check to make sure that
STDIO
window. Use
RXC TXC
RXE
RXC TXC
RXE
RXC
TXC RXE
window. Use
RabbitCore RCM3750

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Rcm3750

Table of Contents