16
RabbitCore RCM3600
3.2.1 Serial Communication
The following sample programs can be found in the Dynamic C
SAMPLES\RCM3600\
SERIAL
folder.
NOTE:
PE5 is set up to enable/disable the RS-232 chip on the Prototyping Board. This
pin will also be toggled when you run RS-232 sample programs on the Prototyping
Board. If you plan to use this pin for something else while you are running any of the
RS-232 sample programs, comment out the following line.
BitWrPortI(PEDR, &PEDRShadow, 0, 5);//set low to enable rs232 device
•
FLOWCONTROL.C
—This program demonstrates how to configure Serial Port C for
CTS/RTS with serial data coming from Serial Port D (TxD) at 115,200 bps. The serial
data received are displayed in the
STDIO
window.
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 jumpers supplied in the Development Kit as
shown in the diagram.
A repeating triangular pattern should print out in the
STDIO
window.
The program will periodically switch flow control on or off to demonstrate the effect of
no flow control.
Refer to the function description for
serDflowcontrolOn()
in the
Dynamic C
Function Reference Manual
for a general description on how to set up flow-control
lines.
•
PARITY.C
—This program demonstrates the use of parity modes by
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
window will display the error sequence.
J2
RXC TXC
RXE
GND
TXD
RXD
TXE
GND
J2
RXC
TXC RXE
GND
TXD
RXD
TXE
GND
Содержание RabbitCore
Страница 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Страница 6: ...RabbitCore RCM3600 ...
Страница 12: ...6 RabbitCore RCM3600 ...
Страница 92: ...86 RabbitCore RCM3600 ...
Страница 128: ...122 RabbitCore RCM3600 ...
Страница 132: ...126 RabbitCore RCM3600 ...
Страница 136: ...130 RabbitCore RCM3600 ...
Страница 138: ......