background image

Getting Started

21

3.4  Sample Programs

To help familiarize you with the RCM3100 modules, Dynamic C includes several sample 
programs. 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.

NOTE: The sample programs assume that you have at least an elementary grasp of ANSI 

C. If you do not, see the introductory pages of the Dynamic C Premier User’s Manual 
for a suggested reading list.

Of the many sample programs included with Dynamic C, several are specific to the 
RCM3100. These programs will be found in the 

Samples/RCM3100

 folder.

We suggest that you examine the following five of these sample programs in order to get a 
tour of some of the capabilities of the RCM3100 modules.

CONTROLLED.c

—This sample program demonstrates the controlling port outputs 

from 

STDIO

 by toggling LEDs on the Prototyping Board.

FLASHLED1.c

—This assembly program uses costatements to flash LEDs DS1 and 

DS2 on the Prototyping Board at different intervals.

FLASHLED2.c

—This program uses cofunction and costatements to flash LEDs DS1 

and DS2 on the Prototyping Board at different intervals.

IR_DEMO.c

—This program demonstrates sending packets (Modbus ASCII) back and 

forth over an IR link.  This demo requires two RCM3000/RCM3100 Prototyping 
Boards with an RCM3100 module on each Prototyping Board. Set up the Prototyping 
Boards so that their IR transceivers are facing each other. Load the program into one 
RCM3100, then operate this RCM3100 in Run mode without a programming cable 
attached. Program the other RCM3100 and then observe the results in the 

STDIO

 win-

dow on your PC with the 

PROG

 connecteor on the programming cable still connected.

TOGGLESWITCH.c

—This program uses costatements to detect switches using the 

press-and-release method of debouncing. Corresponding LEDs DS1 and DS2 on the 
Prototyping Board turn on or off.

The 

Samples/RCM3100/Serial

 folder provides samples to illustrate serial communi-

cation with the RCM3100.

Each of these programs is fully commented within the source code. Refer to these com-
ments for the details of how each program works.

To run a program, open it with the 

File

 menu (if the sample program is not already open), 

compile it using the 

Compile

 menu, and then run it by selecting 

Run

 in the 

Run

 menu.

Once you have loaded and executed these programs and have an understanding of how 
Dynamic C and the RCM3100 modules interact, you can move on and try the other sam-
ple programs, or begin building your own.

All manuals and user guides at all-guides.com

Summary of Contents for RabbitCore RCM3100

Page 1: ...RabbitCore RCM3100 C Programmable Module Getting Started Manual 019 0114 020601 A All manuals and user guides at all guides com...

Page 2: ...iding notice Trademarks Rabbit 2000 is a trademark of Rabbit Semiconductor Dynamic C is a registered trademark of Z World Inc Z World Inc 2900 Spafford Street Davis California 95616 6800 USA Telephone...

Page 3: ...rototyping Board Features 9 2 3 Development Hardware Connections 11 2 3 1 Attach Module to Prototyping Board 11 2 3 2 Connect Programming Cable 12 2 3 3 Connect Power 13 2 4 Run a Sample Program 14 2...

Page 4: ...RabbitCore RCM3100 Notice to Users 23 Index 25 Schematics 27 All manuals and user guides at all guides com...

Page 5: ...RabbitCore modules 1 1 Rabbit 3000 Microprocessor The Rabbit 3000 microprocessor shares its instruction set and conceptual design with the successful Rabbit 2000 The instruction set is based on the Z8...

Page 6: ...ls do not serve your needs other variations can be specified and ordered in production quantities Contact your Z World or Rabbit Semiconductor sales representative for details Table 1 below highlights...

Page 7: ...tor Pinout Table 2 RCM3100 Specifications Specification Data Power Supply 3 15 3 45 V DC 75 mA at 29 4 MHz clock speed Size 1 65 1 85 0 50 42 mm 47 mm 13 mm Environmental 40 C to 85 C 5 95 humidity no...

Page 8: ...users a quick but solid start with the RCM3100 series modules It does not contain detailed information on the module hard ware capabilities or the Dynamic C development environment Most users will wan...

Page 9: ...don t need Finding Online Documents The online documentation is installed along with Dynamic C and an icon for the docu mentation menu is placed on the workstation s desktop Double click this icon to...

Page 10: ...6 RabbitCore RCM3100 All manuals and user guides at all guides com...

Page 11: ...pment Kit contains the following items RCM3110 module 256K flash memory and 128K SRAM RCM3000 RCM3100 Prototyping Board AC adapter 9 V DC 1 A Included only with Development Kits sold for the North Ame...

Page 12: ...PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 RES RN2 J1 J3 C1 C2 R1 R3 R2 UX10 J14 RCM3000 RABBITCORE SLAVE MASTER RCM3000 RABBITCORE RCM1 RCM2 RC18 UX11 RC1 RC2 UX2 C4 C5 C8 C6 C7 S3 S2 J13 R14 5V 5V 3 3V 5V...

Page 13: ...as inputs by sample applications Two LEDs are connected to the PG6 and PG7 pins of the master module and may be driven as output indicators by sample applications Prototyping Area A generous prototyp...

Page 14: ...ross the pins to measure the current drawn from the 5 V or the 3 3 V supplies respectively Motor Encoder A motor encoder header is provided at header J6 for future use LCD Keypad Module Z World s LCD...

Page 15: ...3V 5V GND GND GND GND 5V 5V 3 3V 3 3V GND MOTOR ENCODER RN5 J6 R20 JP1 CURRENT MEASUREMENT OPTION 3 3V 5V 3 3V POWER D1 C13 DS3 L1 C17 C15 POWER GND DC GND J9 2 5 MM JACK GND DC GND GND R17 RN3 RN4 J...

Page 16: ...GND DC GND GND R17 RN3 RN4 J15 RN1 GND PD0 PD6 PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND PD1 PD7 PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 GND GND SM0 IOWR PG5 PG7...

Page 17: ...POWER GND DC GND J9 2 5 MM JACK GND DC GND GND R17 RN3 RN4 J15 RN1 GND PD0 PD6 PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND PD1 PD7 PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 P...

Page 18: ...all of the sample programs described in Section 3 4 to get a basic familiarity with Dynamic C and the RCM3100 module s capabilities 2 For further development refer to the RabbitCore RCM3100 User s Ma...

Page 19: ...place seamlessly across this connection greatly speeding system development Other features of Dynamic C include Dynamic C has an easy to use built in text editor Programs can be executed and debugged...

Page 20: ...are compiled and linked and downloaded on the fly On a fast PC Dynamic C can load 30 000 bytes of code in 5 seconds at a baud rate of 115 200 bps 3 1 Hardware Requirements To install and run Dynamic...

Page 21: ...n Selected steps that may be confusing to some users are outlined below Some of the installation utility screens may vary slightly from those shown 3 2 1 Program Documentation File Location Dynamic C...

Page 22: ...drive space or installed elsewhere on a separate or net work drive for example The installation type is selected in the installation menu shown above The options are Typical Installation Both Dynamic...

Page 23: ...changed later within Dynamic C NOTE The installation utility does not check the selected COM port in any way Speci fying a port in use by another device mouse modem etc may lead to a message such as...

Page 24: ...on the Prototyping Board is installed If the LED is lit check both ends of the programming cable to ensure that it is firmly plugged into the PC and the RCM3100 series module s programming port If yo...

Page 25: ...rvals IR_DEMO c This program demonstrates sending packets Modbus ASCII back and forth over an IR link This demo requires two RCM3000 RCM3100 Prototyping Boards with an RCM3100 module on each Prototypi...

Page 26: ...22 RabbitCore RCM3100 All manuals and user guides at all guides com...

Page 27: ...resent in a system of any size In order to prevent danger to life or property it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk inv...

Page 28: ...24 RabbitCore RCM3100 All manuals and user guides at all guides com...

Page 29: ...1 install RCM3100 on Prototyp ing Board 11 power supply 13 programming cable 12 hardware reset 13 M models factory versions 2 P pinout RCM3100 3 power supply connections 13 programming cable RCM3100 c...

Page 30: ...26 RabbitCore RCM3100 All manuals and user guides at all guides com...

Page 31: ...ogramming Cable Schematic www rabbitsemiconductor com documentation schemat 090 0128 pdf The schematics included with the printed manual were the latest revisions available at the time the manual was...

Page 32: ...All manuals and user guides at all guides com...

Reviews: