Serial Communication - Rabbit RabbitCore RCM3100 User Manual

C-programmable module
Hide thumbs Also See for RabbitCore RCM3100:
Table of Contents

Advertisement

Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 101-0533 - KIT DEV RABBIT3000/RCM3100
Contact us: sales@integrated-circuit.com Website: www.integrated-circuit.com

3.2.1 Serial Communication

The following sample programs can be found in the
—This program demonstrates hardware flow control by configuring
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
—This program demonstrates basic RS-232 serial
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
window.
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.
—This program demonstrates 5-wire RS-232 serial communication
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
window will display the error sequence.
window, and will display again once TxC is connected
STDIO
SAMPLES\RCM3100\SERIAL
window.
STDIO
window.
STDIO
folder.
RxC TxC
GND
TxB RxB
RxC
TxC
RxB GND
TxB
RxC TxC
TxB RxB
GND
RxC TxC
TxB RxB
GND
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rabbitcore rcm3110

Table of Contents