Sample Programs - Rabbit RCM3365 User Manual

C-programmable core module with nand flash mass storage and ethernet
Table of Contents

Advertisement

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
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.
—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 RCM3365/RCM3375 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 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
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 RCM3365/RCM3375
STDIO
win-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rcm3375

Table of Contents