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.

Содержание RCM3100 Series

Страница 1: ...RabbitCore RCM3100 C Programmable Module Getting Started Manual 019 0114 020601 A...

Страница 2: ...s products without providing 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 9...

Страница 3: ...otyping Board 8 2 2 1 Prototyping 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...

Страница 4: ...RabbitCore RCM3100 Notice to Users 23 Index 25 Schematics 27...

Страница 5: ...for the RCM3100 series 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...

Страница 6: ...es If the standard models 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 T...

Страница 7: ...Figure 1 RCM3100 Connector 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 t...

Страница 8: ...al is intended to give 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 environm...

Страница 9: ...s of manuals that users 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 Do...

Страница 10: ...6 RabbitCore RCM3100...

Страница 11: ...ents The RCM3100 Development 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...

Страница 12: ...V VRAM SM1 IORD PG4 PG6 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 S...

Страница 13: ...module and may be read 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 A...

Страница 14: ...aced with an ammeter across 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 Keypa...

Страница 15: ...Board headers 3 3V 5V 3 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 D...

Страница 16: ...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 PA6 PE4 GN...

Страница 17: ...D1 C13 DS3 L1 C17 C15 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 PC...

Страница 18: ...equence of action 1 Run 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 Rabbi...

Страница 19: ...nt and debug ging take 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...

Страница 20: ...Functions and libraries 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 i...

Страница 21: ...covered in this section 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 F...

Страница 22: ...installed to save hard 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 Ins...

Страница 23: ...1 This selection can be 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 lea...

Страница 24: ...pins 5 6 of header JP1 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...

Страница 25: ...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 m...

Страница 26: ...22 RabbitCore RCM3100...

Страница 27: ...rfect Bugs are always present 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 appr...

Страница 28: ...24 RabbitCore RCM3100...

Страница 29: ...hardware connections 11 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 prog...

Страница 30: ...26 RabbitCore RCM3100...

Страница 31: ...90 0137 pdf 090 0128 Programming Cable Schematic www rabbitsemiconductor com documentation schemat 090 0128 pdf The schematics included with the printed manual were the latest revisions available at t...

Страница 32: ......

Отзывы: