Sample Programs - Rabbit RabbitCore RCM3000 Getting Started Manual

C-programmable module with ethernet
Hide thumbs Also See for RabbitCore RCM3000:
Table of Contents

Advertisement

3.3 Sample Programs

To help familiarize you with the RCM3000 modules, Dynamic C includes several sample
programs in the Dynamic C SAMPLES\RCM3000 directory. Loading, executing and
studying these programs will give you a solid hands-on overview of the RabbitCore's
capabilities, as well as a quick start with Dynamic C as an application development tool.
Two folders contain sample programs that illustrate features unique to the RCM3000.
• RCM3000—Demonstrates the basic operation and the Ethernet functionality of the
RCM3000.
• TCPIP—Demonstrates more advanced TCP/IP programming for Z-World's Ethernet-
enabled Rabbit-based boards.
Follow the instructions included with the sample program to connect the RCM3000 and
the other hardware identified in the instructions. The RCM3000 module must be installed
on the Prototyping Board as shown in Figure 3.
To run a sample program, open it with the
using the
Compile
menu (or press
(or press
F9
). The RCM3000 must be connected to a PC using the programming cable.
More complete information on Dynamic C is provided in the Dynamic C User's Manual.
—uses the
CONTROLLED.C
LEDs DS1 and DS2 on the Prototyping Board on and off.
Parallel Port G bit 6 = LED DS1
Parallel Port G bit 7 = LED DS2
Once you have compile this program and it is running, you will be prompted via the
Dynamic C
STDIO
your selection.
Once you have selected the LED, you will be prompted to select to turn the LED either
ON or OFF. A logic low will light up the LED you selected.
—demonstrates the use of costatements to flash LEDs DS1 and DS2 on
FLASHLED1.c
the Prototyping Board at different rates. Once you have compile this program and it is
running, LEDs DS1 and DS2 will flash on/off at different rates.
—demonstrates the use of cofunctions and costatements to flash LEDs
FLASHLED2.c
DS1 and DS2 on the Prototyping Board at different rates. Once you have compile this
program and it is running, LEDs DS1 and DS2 will flash on/off at different rates.
TOGGLESWITCH.c
press-and-release method of debouncing. LEDs DS1 and DS2 on the Prototyping
Board are turned on and off when you press switches S2 and S3.
Getting Started
File
F5
), and then run it by selecting
STDIO
window to demonstrate digital outputs by toggling
window to select LED DS1 or DS2. Use your PC keyboard to make
—demonstrates the use of costatements to detect switches using the
menu (if it is not still open), compile it
Run
in the
Run
menu
19

Advertisement

Table of Contents
loading

Table of Contents