Serial Communication - Rabbit RabbitCore RCM3209 User Manual

C-programmable module with ethernet
Table of Contents

Advertisement

3.2.1 Serial Communication

The following sample programs can be found in the
FLOWCONTROL.C
Serial Port C (PC3/PC2) for CTS/RTS with serial data coming from TxB at 115,200 bps.
One character at a time is received and is displayed in the
To set up the Prototyping Board, you will need to tie TxB and RxB
together on the RS-232 header at J5, and you will also tie TxC and
RxC together using the jumpers supplied in the Development Kit as
shown in the diagram.
A repeating triangular pattern should print out in the
The program will periodically switch flow control on or off to demonstrate the effect of
no flow control.
—This program demonstrates the use of parity modes by
PARITY.C
repeatedly sending byte values 0–127 from Serial Port B to Serial Port
C. The program will switch between generating parity or not on Serial
Port B. 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 TxB and RxC together on the
RS-232 header at J5 using the jumpers supplied in the Development Kit as shown in the
diagram.
The Dynamic C
STDIO
SIMPLE3WIRE.C
communication. Lower case characters are sent by TxC, and are
received by RxB. The characters are converted to upper case and are
sent out by TxB, are received by RxC, and are displayed in the
Dynamic C
STDIO
To set up the Prototyping Board, you will need to tie TxB and RxC together on the
RS-232 header at J5, and you will also tie RxB and TxC together using the jumpers
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 B.
To set up the Prototyping Board, you will need to tie TxB and RxB
together on the RS-232 header at J5, 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 con-
trol by disconnecting TxC from RxC while the program is running. Characters will no
longer appear in the
back to RxC.
User's Manual
—This program demonstrates hardware flow control by configuring
window will display the error sequence.
—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
SAMPLES\RCM3200\SERIAL
window.
STDIO
window.
STDIO
folder.
RxC TxC
TxB RxB
GND
RxC
TxC
TxB
RxB GND
RxC TxC
TxB RxB
GND
RxC TxC
TxB RxB
GND
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rabbitcore rcm3229

Table of Contents