Serial Communication - Rabbit RCM3365 User Manual

C-programmable core module with nand flash mass storage and ethernet
Table of Contents

Advertisement

3.2.3 Serial Communication

The following sample programs can be found in the
FLOWCONTROL.C
Serial Port F for CTS/RTS with serial data coming from TxE (Serial Port E) 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
TxE and RxE together on the RS-232 header at J14,
and you will also tie TxF and RxF together as shown in
the diagram.
A repeating triangular pattern should print out in the
window. The program periodically switches RTS (TxF) flow control on or off to
STDIO
demonstrate the effect of hardware flow control.
—This program demonstrates the use of parity modes by repeatedly sending
PARITY.C
byte values 0–127 from Serial Port E to Serial Port F. The program will switch between
generating parity or not on Serial Port E. Serial Port F 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
TxE and RxF together on the RS-232 header at J14 as
shown in the diagram.
The Dynamic C
STDIO
sequence.
SIMPLE3WIRE.C
Lower case characters are sent by TxE, and are received by RxF. The characters are
converted to upper case and are sent out by TxF, are received by RxE, and are displayed
in the Dynamic C
To set up the Prototyping Board, you will need to tie
TxE and RxF together on the RS-232 header at J14, and
you will also tie RxE and TxF together as shown in the
diagram.
SIMPLE5WIRE.C
by providing flow control (RTS/CTS) on Serial Port F and data flow on Serial Port E.
To set up the Prototyping Board, you will need to tie
TxE and RxE together on the RS-232 header at J14,
and you will also tie TxF and RxF together as shown in
the diagram.
Once you have compiled and run this program, you can
test flow control by disconnecting TxF from RxF while the program is running. Char-
acters will no longer appear in the
connected back to RxF. (Do not disconnect the data path between TxE and RxE.)
24
—This program demonstrates hardware flow control by configuring
window will display the error
—This program demonstrates basic RS-232 serial communication.
window.
STDIO
—This program demonstrates 5-wire RS-232 serial communication
STDIO
SAMPLES\RCM3360\SERIAL
STDIO
window, and will display again once TxF is
RabbitCore RCM3365/RCM3375
folder.
window.
TxE RxE
GND
TxF RxF
485+ GND 485–
TxE
RxE GND TxF
RxF
485+ GND 485–
TxE RxE
GND
TxF RxF
485+ GND 485–
TxE RxE
GND
TxF RxF
485+ GND 485–

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rcm3375

Table of Contents