Rabbit Core RCM3700 User Manual page 22

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

—This program demonstrates the use of parity modes by
PARITY.C
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 J2 using the 0.1" jumpers supplied in the Development Kit as shown
in the diagram.
The Dynamic C
STDIO
—This program demonstrates basic RS-232 serial
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.
—This program demonstrates 5-wire RS-232 serial communication
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 transmits and then receives an ASCII string on Serial
SWITCHCHAR.C
Ports C and E. It also displays the serial data received from both ports in the
window.
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.
RabbitCore RCM3700 User's Manual
window will display the error sequence.
window.
window, and will display again once TxC is connected
STDIO
RXC
TXC RXE
J2
RXC TXC
RXE
J2
RXC TXC
RXE
J2
STDIO
RXC
TXC RXE
J2
JP2
20

Advertisement

Table of Contents
loading

Table of Contents