Getting Started
15
•
IR_DEMO.c
—Demonstrates sending Modbus ASCII packets between two Prototyping
Board assemblies via the IrDA transceivers with the IrDA transceivers facing each other.
Note that this sample program requires a second Prototyping Board or Z-World single-
board computer that has an IrDA chip and is running the
IR_DEMO.C
sample program
associated with it.
First, compile and run the
IR_DEMO.C
sample program from the
SAMPLES
folder spe-
cific to the other system on the second system, then remove the programming cable and
press the
RESET
button so that the first assembly is operating in the
Run
mode. Then
connect the programming cable to the RCM3600 module, and compile and run the
IR_DEMO.C
sample program from the
SAMPLES\RCM3600
folder on the RCM3600
system. With the two IrDA transceivers facing each other, press switch S1 on the
RCM3600 Prototyping Board to transmit a packet. The other system will return a
response packet that will then appear in the Dynamic C
STDIO
window. The test pack-
ets and response packets have different codes.
•
DIO.c
—Demonstrates the digital I/O capabilities of the A/D converter on the Proto-
typing Board by configuring two lines to outputs and two lines as inputs on Prototyping
Board header JP4.
Install a 2 × 2 header at JP4 on the Prototyping Board and connect pins 1–3 and pins 2–4
on header JP4 before running this sample program.
Once the sample program is compiled and running, it will prompt you in the
STDIO
window to select either pin 1 of header JP4 or pin 2 of header JP4 for the output. Once
you have made that selection, you will be prompted to enter a logic 0 or 1. The speci-
fied logic level will then be output on pins 1–3 or pins 2–4 on header JP4.
•
TOGGLESWITCH.c
—Uses costatements to detect switches using debouncing. The cor-
responding LEDs (DS1 and DS2) will turn on or off. LEDs DS1 and DS2 on the Proto-
typing Board are turned on and off when you press switches S1 and S2. S1 and S2 are
controlled by PF4 and PB7 respectively.
Once you have loaded and executed these five programs and have an understanding of
how Dynamic C and the RCM3600 modules interact, you can move on and try the other
sample programs, or begin developing your own.
Summary of Contents for RabbitCore
Page 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Page 6: ...RabbitCore RCM3600 ...
Page 12: ...6 RabbitCore RCM3600 ...
Page 92: ...86 RabbitCore RCM3600 ...
Page 128: ...122 RabbitCore RCM3600 ...
Page 132: ...126 RabbitCore RCM3600 ...
Page 136: ...130 RabbitCore RCM3600 ...
Page 138: ......