22
RabbitCore RCM4400W
•
IOCONFIG_SWITCHECHO.C
—This program demonstrates how to set up Serial Ports E
and F, which then transmit and then receive an ASCII string when switch S2 or S3 is
pressed. The echoed serial data are displayed in the Dynamic C
STDIO
window.
Note that the I/O lines that carry the Serial Port E and F signals are not the Rabbit 4000
defaults. The Serial Port E and F I/O lines are configured by calling the library function
serEFconfig()
that was generated by the Rabbit 4000
IOCONFIG.EXE
utility program
found in the Dynamic C
Utilities
folder.
Note that the
RCM4400W_IOCONFIG.LIB
library generated by
IOCONFIG.EXE
to
support this sample program is provided in the Dynamic C
SAMPLES\RCM4400W\
SERIAL
folder.
Serial Port E is configured to use Parallel Port D bits PD6 and PD7. These signals are
available on the Prototyping Board's Module Extension Header (header J2).
Serial Port F is configured to use Parallel Port C bits PC2 and PC3. These signals are
available on the Prototyping Board's RS-232 connector (header J4).
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 with Serial Port F when
switch S3 is pressed.
To set up the Prototyping Board, you will need to tie TxC
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
STDIO
window.
J4
TxC
GND
RxD
TxD
RxC
J2
+3.3 V
/RST_OUT
PE5
PE7
PD1/LN1
PD3/LN3
PD5/LN5
PD7
/LN7
VREF
GND
/IORD
PE6
PD0/LN0
PD2/LN2
PD4/LN4
PD6
/LN6
CVT
AGND
Содержание RabbitCore RCM4400W
Страница 1: ...RabbitCore RCM4400W C Programmable Wi Fi Core Module OEM User s Manual 019 0160 080131 F...
Страница 6: ...RabbitCore RCM4400W...
Страница 24: ...18 RabbitCore RCM4400W...
Страница 32: ...24 RabbitCore RCM4400W...
Страница 58: ...50 RabbitCore RCM4400W...
Страница 102: ...94 RabbitCore RCM4400W...
Страница 120: ...112 RabbitCore RCM4400W...
Страница 124: ...116 RabbitCore RCM4400W...
Страница 126: ......