Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 101-1274 - KIT DEV STANDARD RCM5700
Contact us: [email protected] Website: www.integrated-circuit.com
MiniCore RCM5700/RCM6700 User’s Manual
digi.com
20
3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM5700/RCM6700. These programs will be found in the
SAMPLES\RCM5700 or
SAMPLES\RCM6700 folder,
depending on your MiniCore model. Sample programs in the
SAMPLES
folder one level up are generally generic samples that can be run on any Rabbit-based
product.
Before you compile and run the following sample programs, make sure that pins 1–2, 5–6, and 7–
8 on header JP1 of the Interface Board are jumpered. Each sample program has comments that
describe the purpose and function of the program. Follow the instructions at the beginning of the
sample program.
CAUTION:
Do not jumper pins 1–3 on header JP1 on the Interface Board.
•
FLASHLED01.C
—demonstrates the use of costatements to flash LED DS1 on the Interface
Board. PD0 on the MiniCore is used to drive the LED.
•
FLASHLED01A.C
—demonstrates the use of a state machine with standard C constructs to flash
LED DS1on the Interface Board. PD0 on the MiniCore is used to drive the LED.
•
FLASHLED02.c
—demonstrates the use of costatements to detect and debounce switch S1
being pressed on the Interface Board. LED DS1 flashes on the Interface Board, and the rate at
which it flashes changes each time you press switch S1. I/O control for the LED is provided by
PD0 on the MiniCore, and PD1 detects the activity on switch S1.
•
FLASHLED02A.c
—detects and debounces switch S1 being pressed on the Interface Board.
LED DS1 flashes on the Interface Board, and the rate at which it flashes changes each time you
press switch S1. I/O control for the LED is provided by PD0 on the MiniCore, and PD1 detects
the activity on switch S1.
21 / 113
21 / 113