Rabbit RabbitCore RCM4200 User Manual page 27

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

IOCONFIG_SWITCHECHO.C
which then transmits and then receives an ASCII string when switch S2 is pressed. The
echoed serial data are displayed in the Dynamic C
Note that the I/O lines that carry the Serial Port E signals are not the Rabbit 4000
defaults. The Serial Port E I/O lines are configured by calling the library function
that was generated by the Rabbit 4000
serEconfig()
gram. Serial Port E is configured to use Parallel Port E bits PD6 and PD7. These signals
are available on the Prototyping Board's Module Extension Header (header J2).
Serial Port D is left in its default configuration, using Parallel Port C bits PC0 and PC1.
These signals are available on the Prototyping Board's RS-232 connector (header J4).
Serial Port D transmits and then receives an ASCII string when switch S3 is pressed.
Also note that there is one library generated by
SAMPLES\RCM4200\SERIAL
To set up the Prototyping Board, you will need to tie TxD
and RxD together on the RS-232 header at J4 using the
jumpers supplied in the Development Kit; you will also
tie TxE (PD6) and RxE (PD7) together with a soldered
wire or with a wire jumper if you have soldered in the
IDC header supplied with the accessory parts in the
Development Kit.
Once you have compiled and run this program, press and
release switches S2 or S3 on the Prototyping Board. The data echoed between the serial
ports will be displayed in the
User's Manual
—This program demonstrates how to set up Serial Port E,
IOCONFIG.EXE
folder for the 29 MHz RCM4210.
STDIO
window.
window.
STDIO
IOCONFIG.EXE
in the Dynamic C
J2
GND
+3.3 V
/IORD
/RST_OUT
PE6
PE5
PD0/LN0
PE7
PD2/LN2
PD1/LN1
PD4/LN4
PD3/LN3
PD6/LN6
PD5/LN5
CVT
PD7/LN7
AGND
VREF
utility pro-
J4
RxC
TxD
RxD
TxC
GND
21

Advertisement

Table of Contents
loading

Table of Contents