3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM3305 and the RCM3315. Sample programs illustrating the general operation of the
RCM3305/RCM3315, serial communication, and the serial flash are provided in the
SAMPLES\RCM3300
and function of the program. Follow the instructions at the beginning of the sample pro-
gram. Note that the RCM3305/RCM3315 must be installed on the Prototyping Board
when using the sample programs described in this chapter.
—Demonstrates use of the digital inputs by having you turn the LEDs
•
CONTROLLED.c
on the Prototyping Board on or off from the
Once you compile and run
Dynamic C
STDIO
Press "2" or "3" or "4"or "5"on your keyboard to select LED DS3 or DS4 or DS5 or
DS6 on the Prototyping Board. Then follow the prompt in the Dynamic C
dow to turn the LED on or off.
—Demonstrates assembly-language program by flashing the USR LED
•
FLASHLED.c
on the RCM3305/RCM3315 and LEDs DS3, DS4, DS5, and DS6 on the Prototyping
Board.
—Demonstrates the relay-switching function call using the relay installed
•
SWRELAY.c
on the Prototyping Board through screw-terminal header J17.
•
TOGGLESWITCH.c
ing. The corresponding LEDs (DS3 and DS4) will turn on or off.
Once you have loaded and executed these five programs and have an understanding of
how Dynamic C and the RCM3305/RCM3315 modules interact, you can move on and try
the other sample programs, or begin building your own.
18
folder. Each sample program has comments that describe the purpose
CONTROLLED.C
window.
—Uses costatements to detect switches S2 and S3 using debounc-
STDIO
window on your PC.
, the following display will appear in the
RabbitCore RCM3305/RCM3315
STDIO
win-
Need help?
Do you have a question about the RabbitCore RCM3305 and is the answer not in the manual?