Serial Communication - Digi RabbitCore RCM4000 User Manual

C-programmable analog core module with ethernet
Table of Contents

Advertisement

3.2.2 Serial Communication

The following sample programs are found in the
—This program demonstrates how to configure Serial Port D for
FLOWCONTROL.C
CTS/RTS with serial data coming from Serial Port C (TxC) at 115,200 bps. The serial
data received are displayed in the
To set up the Prototyping Board, you will need to tie TxD and RxD
together on the RS-232 header at J4, 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.
If you have two Prototyping Boards with modules, run this sample program on the
sending board, then disconnect the programming cable and reset the sending board so
that the module is operating in the Run mode. Connect TxC, TxD, and GND on the
sending board to RxC, RxD, and GND on the other board, then, with the programming
cable attached to the other module, run the sample program.
—This program demonstrates the use of parity modes by
PARITY.C
repeatedly sending byte values 0–127 from Serial Port C to Serial Port D.
The program will switch between generating parity or not on Serial
Port C. Serial Port D 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 TxC and RxD together on the
RS-232 header at J4 using one of the jumpers supplied in the Development Kit as
shown in the diagram.
The Dynamic C
STDIO
—This program demonstrates using DMA to transfer data from the circular
SERDMA.C
buffer to the serial port and vice versa. The Dynamic C
or clear the buffer.
Before you compile and run the sample program, you
will need to connect the RS-232 header at J4 to your
PC as shown in the diagram using the serial to DB9
cable supplied in the Development Kit.
Once you have compiled and run the sample program,
start Tera Term or another terminal emulation program to
connect to the PC serial port using a baud rate of 115,200
bps. You can observe the output in the
window as you type in Tera Term, and you can also
use the Dynamic C
The Tera Term serial utility can be downloaded from
hp.vector.co.jp/authors/VA002416/teraterm.html.
20
STDIO
window will display the error sequence.
Dynamic C
window to clear the buffer.
STDIO
SAMPLES\RCM4000\SERIAL
window.
STDIO
window.
STDIO
Colored
edge
STDIO
folder.
RxC TxC
J4
GND
TxD RxD
RxC
TxC
J4
TxD
RxD
GND
window is used to view
J4
RabbitCore RCM4000

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rabbitcore rcm4010Rabbitcore rcm4050

Table of Contents