English
Language : 

20-101-1051 Datasheet, PDF (26/165 Pages) List of Unclassifed Manufacturers – C-Programmable Core Module with NAND Flash Mass Storage and Ethernet
3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM3365 and the RCM3375. Sample programs illustrating the general operation of the
RCM3365/RCM3375, serial communication, and the NAND flash are provided in the
SAMPLES\RCM3360 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 RCM3365/RCM3375 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 RCM3365/RCM3375 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 four programs and have an understanding of
how Dynamic C and the RCM3365/RCM3375 modules interact, you can move on and try
the other sample programs, or begin building your own.
20
RabbitCore RCM3365/RCM3375