Rabbit RabbitCore RCM2000 Getting Started Manual

C-programmable module
Hide thumbs Also See for RabbitCore RCM2000:

Advertisement

Quick Links

RabbitCore RCM2000
C-Programmable Module
Getting Started Manual
019–0080 • 040515–F
This datasheet has been downloaded from
http://www.digchip.com
at this
page

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RabbitCore RCM2000 and is the answer not in the manual?

Questions and answers

Summary of Contents for Rabbit RabbitCore RCM2000

  • Page 1 RabbitCore RCM2000 C-Programmable Module Getting Started Manual 019–0080 • 040515–F This datasheet has been downloaded from http://www.digchip.com at this page...
  • Page 2 Z-World reserves the right to make changes and improvements to its products without providing notice. Trademarks Rabbit and Rabbit 2000 are registered trademarks of Rabbit Semiconductor. RabbitCore is a trademark of Rabbit Semiconductor. Dynamic C is a registered trademark of Z-World Inc.
  • Page 3: Table Of Contents

    ABLE OF ONTENTS Chapter 1. Overview 1.1 RCM2000 Series Description .......................1 1.2 Physical and Electrical Specifications ....................2 1.3 Development Software .........................3 1.4 How to Use This Manual ........................4 1.4.1 Additional Product Information ....................4 1.4.2 Additional Reference Information ....................4 1.4.3 Using Online Documentation......................5 Chapter 2.
  • Page 4 RabbitCore RCM2000...
  • Page 5: Chapter 1. Overview

    1. O VERVIEW The RabbitCore RCM2000 series is an advanced line of mod- ules that incorporates the powerful Rabbit 2000 microprocessor, flash memory, and static RAM, all on a PCB not much larger than the size of a business card.
  • Page 6: Physical And Electrical Specifications

    Figure 1 below. STATUS PCLK VBAT VRAM SMODE0 SMODE1 /RES_OUT /RES_IN /IOWR /IORD /BUFEN /WDO Note: These are the pinouts as seen on the Bottom Side of the RCM2000. Figure 1. RCM2000 Connector Pinout RabbitCore RCM2000...
  • Page 7: Development Software

    1.3 Development Software The RCM2000 series of modules uses the Dynamic C development environment for rapid creation and debugging of runtime applications. Dynamic C provides a complete develop- ment environment with integrated editor, compiler and source-level debugger. It interfaces directly with the target system, eliminating the need for complex and unreliable in-circuit emulators.
  • Page 8: How To Use This Manual

    RCM2000 to effec- tive use. 1.4.1 Additional Product Information Detailed information about the RabbitCore RCM2100 series is provided in the Rabbit- Core RCM2000 User’s Manual, which is available on the accompanying CD-ROM in both HTML and Adobe PDF format.
  • Page 9: Using Online Documentation

    1.4.3 Using Online Documentation We provide the bulk of our user and reference documentation in two electronic formats, HTML and Adobe PDF. We do this for several reasons. We believe that providing all users with our complete library of product and reference manuals is a useful convenience.
  • Page 10 RabbitCore RCM2000...
  • Page 11: Chapter 2. Hardware Setup

    Prototyping Board. NOTE: This chapter (and this manual) assume that you have the RabbitCore RCM2000 Development Kit. If you purchased an RCM2000 series module by itself, you will have to adapt the information in this chapter and elsewhere to your test and development setup.
  • Page 12: Overview Of The Prototyping Board

    The Prototyping Board is shown in Figure 2 below, with its main features identified. Power Voltage RCM2000 Power Input Regulator Connectors Reset Switch User LEDs RS-232 RS-232 Area Through-Hole Vcc and GND SMT Prototyping RCM2000 Prototyping Area Buses Extension Headers Area Figure 2. RCM2000 Prototyping Board RabbitCore RCM2000...
  • Page 13: Connections

    2.3 Connections 1. Attach RCM2000 to Prototyping Board Turn the RCM2000 so that the Rabbit 2000 microprocessor is facing as shown below. Plug RCM2000 Headers J1 and J2 into the sockets of headers J1 and J3 on the Prototyping Board.
  • Page 14 Plug in the wall transformer. The power LED on the Prototyping Board should light up. The RCM2000 and the Prototyping Board are now ready to be used. NOTE: A RESET button is provided on the Prototyping Board to allow a hardware reset. RabbitCore RCM2000...
  • Page 15: Where Do I Go From Here

    1. Run all of the sample programs described in Chapter 4 to get a basic familiarity with Dynamic C and the RCM2000’s capabilities. 2. For further development, refer to the RabbitCore RCM2000 User’s Manual for details of the module’s hardware and software components.
  • Page 16 RabbitCore RCM2000...
  • Page 17: Chapter 3. Installing Dynamic C

    YNAMIC To develop and debug programs for the RCM2000 series (and for all other Z-World and Rabbit Semiconductor hardware), you must install and use Dynamic C. This chapter takes you through the installation of Dynamic C, and then provides a tour of its major features with respect to the RCM2000 series.
  • Page 18: System Requirements

    • A Pentium or later microprocessor • 32 MB of RAM • At least 40 MB of free hard drive space • At least one free COM (serial) port for communication with the target systems • A CD-ROM drive (for software installation) RabbitCore RCM2000...
  • Page 19: Installing Dynamic C

    3.3 Installing Dynamic C Insert the Dynamic C CD-ROM in the drive on your PC. If autorun is enabled, the CD installation will begin automatically. If autorun is disabled or the installation otherwise does not start, use the Windows menu or Windows Disk Explorer to launch from the root folder Start >...
  • Page 20: Installation Type

    (default). Only Dynamic C will be installed. • Compact Installation — • Custom Installation — You will be allowed to choose which components are installed. This choice is useful to install or reinstall just the documentation. RabbitCore RCM2000...
  • Page 21: Select Com Port

    Once your installation is complete, you will have up to three icons on your PC desktop, as shown below. One icon is for Dynamic C, one opens the documentation menu, and the third is for the Rabbit Field Utility, a tool used to download precompiled software to a target system. Getting Started...
  • Page 22: Starting Dynamic C

    3.4.1 Communication Error Messages If you receive the message “No Rabbit Processor Detected,” the programming cable may be connected to a different COM port, a connection may be faulty, or the target system may not be powered up.
  • Page 23 If you are using Dynamic C version 7.04 or earlier, modify the BIOS source code as fol- lows. Skip these three steps if your version of Dynamic C is 7.05 or later. 1. Open the BIOS source code file named , which can be found in the RABBITBIOS.C directory.
  • Page 24 RabbitCore RCM2000...
  • Page 25: Chapter 4. Sample Programs

    4. S AMPLE ROGRAMS To help familiarize you with the RCM2000 modules, several sample Dynamic C programs have been included. Loading, exe- cuting and studying these programs will give you a solid hands- on overview of the RCM2000’s capabilities, as well as a quick start with Dynamic C as an application development tool.
  • Page 26 Each sample program has comments that describe the purpose and function of the program. Before running any of these sample program, make sure that your RCM2000 is connected to the Prototyping Board and to your PC as described in Section 2.3, “Connections.” RabbitCore RCM2000...
  • Page 27: Running Sample Program Flashled.c

    } // end while End of the endless loop } // end of main Note: See the Rabbit 2000 Microprocessor User’s Manual (Software Chapter) for details on the routines that read and write I/O ports. Figure 5. Sample Program FLASHLED.C...
  • Page 28: Single-Stepping

    • A message reports “No Rabbit Processor Detected” in cases where the RCM2000 and the Prototyping Board are not connected together, the wall transformer is not con- nected, or is not plugged in. (The red power LED lights whenever power is connected.) •...
  • Page 29: Editing The Program

    You can set break points while the program is running by positioning the cursor to a state- ment and using the key. If the execution thread hits the break point, a break point will take place.You can toggle the break point off with the key and continue execution with key.
  • Page 30: Cooperative Multitasking

    A complete description of costate- ments is in the Dynamic C User’s Manual. The sample program has two FLASHLEDS2.C independent tasks. The first task flashes LED DS2 2.5 times a second. The second task flashes DS3 every 1.5 seconds. RabbitCore RCM2000...
  • Page 31 #define DS2 0 // predefine for LED DS2 #define DS3 1 // predefine for LED DS3 This cofunction flashes LED on for ontime, then off for offtime cofunc flashled[4](int led, int ontime, int offtime) { for(;;) { waitfor(DelayMs(ontime)); // on delay WrPortI(PADR,&PADRShadow,(1<<led)|PADR);...
  • Page 32: Advantages Of Cooperative Multitasking

    It might seem that the biggest problem would be response time because of the big loop time becoming long as the program grows. Our solution for that is called slicing, which is further described in the Dynamic C User’s Manual. RabbitCore RCM2000...
  • Page 33: Notice To Users

    OTICE TO SERS Z-WORLD PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE- SUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT REGARDING SUCH INTENDED USE IS ENTERED INTO BETWEEN THE CUSTOMER AND Z-WORLD PRIOR TO USE. Life-support devices or systems are devices or systems intended for surgical implantation into the body or to sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided in the labeling and user’s manual, can be reasonably expected to result in significant injury.
  • Page 34 RabbitCore RCM2000...
  • Page 35: Index

    NDEX additional information hardware connections ..... 9 online documentation ..5 install RCM2000 on Prototyp- references ......4 ing Board ......9 power supply ..... 10 programming cable ... 10 hardware reset ....... 10 C language ......13 interrupt service routines ..14 description .......
  • Page 36 User’s Manual...
  • Page 37: Schematics

    CHEMATICS 090-0097 RCM2000 Schematic www.rabbitsemiconductor.com/documentation/schemat/090-0097.pdf 090-0099 RCM2000 Prototyping Board Schematic www.rabbitsemiconductor.com/documentation/schemat/090-0099.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 the time the manual was last revised. The online versions of the manual contain links to the latest revised schematic on the Web site.

Table of Contents