3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM5400W modules. These programs will be found in the
—Demonstrates use of the digital outputs by having you turn LEDs
•
CONTROLLED.C
DS2 and DS3 on the Prototyping Board on or off from the
Parallel Port B bit 2 = LED DS2
Parallel Port B bit 3 = LED DS3
Once you compile and run
Dynamic C
STDIO
Press "2" or "3" on your keyboard to select LED DS2 or DS3 on the Prototyping
Board. Then follow the prompt in the Dynamic C
or OFF. A logic low will light up the LED you selected.
—demonstrates the use of assembly language to flash LEDs DS2 and
•
FLASHLED1.C
DS3 on the Prototyping Board at different rates. Once you have compiled and run this
program, LEDs DS2 and DS3 will flash on/off at different rates.
—demonstrates the use of cofunctions and costatements to flash LEDs
•
FLASHLED2.C
DS2 and DS3 on the Prototyping Board at different rates. Once you have compiled and
run this program, LEDs DS2 and DS3 will flash on/off at different rates.
20
CONTROLLED.C
window.
SAMPLES\RCM5400W
STDIO
, the following display will appear in the
window to turn the LED ON
STDIO
folder.
window on your PC.
RabbitCore RCM5400W
Need help?
Do you have a question about the RabbitCore RCM5400W and is the answer not in the manual?
Questions and answers