![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm3309/rabbitcore-rcm3309_user-manual_3119427023.webp)
Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 20-101-1194 - MODULE RABBITCORE RCM3309 ROHS
Contact us: [email protected] Website: www.integrated-circuit.com
16
RabbitCore RCM3309/RCM3319
3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM3309 and the RCM3319. Sample programs illustrating the general operation of the
RCM3309/RCM3319, 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 RCM3309/RCM3319 must be installed on the Prototyping Board
when using the sample programs described in this chapter.
•
CONTROLLED.c
—Demonstrates use of the digital outputs 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 RCM3309/RCM3319 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 (cooperative multitasking) to detect switches
S2 and S3 using debouncing. 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 RCM3309/RCM3319 modules interact, you can move on and try
the other sample programs, or begin building your own.
23 / 191
23 / 191