18
RabbitCore RCM3305/RCM3315
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
folder. Each sample program has comments that describe the purpose
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.
•
CONTROLLED.c
—Demonstrates use of the digital inputs by having you turn the LEDs
on the Prototyping Board on or off from the
STDIO
window on your PC.
Once you compile and run
CONTROLLED.C
, the following display will appear in the
Dynamic C
STDIO
window.
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
STDIO
win-
dow to turn the LED on or off.
•
FLASHLED.c
—Demonstrates assembly-language program by flashing the USR LED
on the RCM3305/RCM3315 and LEDs DS3, DS4, DS5, and DS6 on the Prototyping
Board.
•
SWRELAY.c
—Demonstrates the relay-switching function call using the relay installed
on the Prototyping Board through screw-terminal header J17.
•
TOGGLESWITCH.c
—Uses costatements to detect switches S2 and S3 using debounc-
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.
Summary of Contents for RCM3305
Page 6: ...RabbitCore RCM3305 RCM3315...
Page 14: ...8 RabbitCore RCM3305 RCM3315...
Page 22: ...16 RabbitCore RCM3305 RCM3315...
Page 28: ...22 RabbitCore RCM3305 RCM3315...
Page 70: ...64 RabbitCore RCM3305 RCM3315...
Page 106: ...100 RabbitCore RCM3305 RCM3315...
Page 144: ...138 RabbitCore RCM3305 RCM3315...
Page 160: ......