Rabbit 2000 Getting Started Manual

Microprocessor development kit
Hide thumbs Also See for 2000:

Advertisement

Rabbit 2000™
Microprocessor Development Kit
Getting Started Manual
019–0068 • 030131–E

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Rabbit 2000

  • Page 1 Rabbit 2000™ Microprocessor Development Kit Getting Started Manual 019–0068 • 030131–E...
  • Page 2 ©2000–2003 Z-World Inc. • All rights reserved. Z-World reserves the right to make changes and improvements to its products without providing notice. Trademarks Rabbit 2000 is a trademark of Rabbit Semiconductor. Dynamic C is a registered trademark of Z-World Inc. Rabbit Semiconductor 2932 Spafford Street...
  • Page 3: Table Of Contents

    ABLE OF ONTENTS Chapter 1. Introduction 1.1 Development Kit Contents........................1 1.2 Development Software .........................2 1.3 How to Use This Manual ........................2 1.3.1 Additional Product Information ....................2 1.3.2 Additional Reference Information ....................2 1.3.3 Using Online Documentation......................3 1.4 CE Compliance .............................4 1.4.1 Spectrum Spreader ........................5 1.4.2 Design Guidelines .........................5 1.4.3 Interfacing the Jackrabbit to Other Devices..................6 Chapter 2.
  • Page 4 Appendix A. Reference Information A.1 Electrical and Mechanical Specifications..................36 A.2 Jackrabbit Pinout ..........................37 A.3 Jumper Configurations ........................38 A.4 Use of Rabbit 2000 Parallel Ports ..................... 40 Notice to Users Index Schematics Rabbit 2000 Development Kit...
  • Page 5: Chapter 1. Introduction

    (Dynamic C). This kit con- tains a powerful single-board computer (the Jackrabbit board). With this kit you will be able to write and test complex software. You will be able to prototype circuits that interface to a Rabbit 2000 microprocessor. 1.1 Development Kit Contents The Rabbit 2000 Development Kit contains the following items: •...
  • Page 6: Development Software

    Rabbit 2000 microprocessor. It does not contain detailed information on the hardware capabilities or the Dynamic C development environment. Most users will want more detailed information on some or all of these topics in order to put the Rabbit 2000 microprocessor to effective use.
  • Page 7: Using Online Documentation

    1.3.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 8: Ce Compliance

    The Jackrabbit series of single-board computers meets the following emission standards with the Rabbit 2000 spectrum spreader turned on and set to the normal mode. The spec- trum spreader is only available with Rev. C or higher of the Rabbit 2000 microprocessor.
  • Page 9: Spectrum Spreader

    Rabbit 2000 Development Kit. 1.4.1 Spectrum Spreader Jackrabbit boards that carry the CE mark have a Rabbit 2000 microprocessor that features a spectrum spreader, which helps to mitigate EMI problems. By default, the spectrum spreader is on automatically for Jackrabbit BL1810 boards that carry the CE mark when used with Dynamic C 7.32 or later versions so as to maintain CE compliance, but the spec-...
  • Page 10: Interfacing The Jackrabbit To Other Devices

    SELV levels (42.4 V AC peak, or 60 V DC). Damage to the Rabbit 2000 microprocessor may result if voltages outside the design range of 0 V to 5.5 V DC are applied directly to any of its digital inputs.
  • Page 11: Chapter 2. Detailed Installation Instructions

    2. D ETAILED NSTALLATION NSTRUCTIONS Chapter 2 contains detailed instructions for installing the soft- ware on your PC and for connecting the Jackrabbit board to your PC in order to run sample programs. 2.1 Software Installation You will need approximately 200 megabytes of free space on your hard disk for a com- plete installation.
  • Page 12: Prototyping Board

    The Prototyping Board included in the Development Kit makes it easy to connect a Jack- rabbit board to a power supply and a PC workstation for development. It also provides some basic I/O peripherals (switches and LEDs), as well as a prototyping area for more advanced hardware development.
  • Page 13: Prototyping Board Features

    PB2–PB5 pins of the Rabbit 2000 microprocessor on the Jackrabbit, and may be read as inputs by sample applications. Four LEDs are connected to the PA1–PA4 pins of the of the Rabbit 2000 microproces- sor on the Jackrabbit, and may be driven as output indicators by sample applications.
  • Page 14: Development Hardware Connections

    There are four steps to connecting the Prototyping Board for use with Dynamic C and the sample programs: 1. Attach the Jackrabbit to the Prototyping Board. 2. Connect the programming cable between the Jackrabbit and the workstation PC. 3. Connect the power supply to the Jackrabbit. Rabbit 2000 Development Kit...
  • Page 15: Attach Jackrabbit To Prototyping Board

    2.3.1 Attach Jackrabbit to Prototyping Board To attach the Jackrabbit board to the Prototyping Board, turn the Jackrabbit board over so that the battery is facing up. Plug headers J4 and J5 into the sockets at J2 and J6 on the Prototyping Board as indicated in Figure 2.
  • Page 16: Connect Programming Cable

    NOTE: Some PCs now come equipped only with a USB port. It may be possible to use an RS-232/USB converter with the programming cable supplied with the Jackrabbit Devel- opment Kit. Contact Technical Support (see Section 2.5.1) for further assistance. Rabbit 2000 Development Kit...
  • Page 17: Connect Power

    2.3.3 Connect Power When all other connections have been made, you can connect power to the Jackrabbit. Hook up the connector from the wall transformer to header J1 on the Jackrabbit board as shown in Figure 3. The orientation of this connector is not important since the VIN (posi- tive) voltage is the middle pin, and GND is available on both ends of the three-pin header J1.
  • Page 18: Starting Dynamic C

    PC cannot handle the default debugging baud rate. Try lowering the debugging baud rate as follows. • Locate the dialog in the Dynamic C Serial Options Options > Communications menu. Choose a lower debug baud rate. Rabbit 2000 Development Kit...
  • Page 19: Where Do I Go From Here

    2.5.1 Technical Support NOTE: If you purchased your Jackrabbit through a distributor or through a Rabbit Semiconductor partner, contact the distributor or partner first for technical support. If there are any problems at this point: •...
  • Page 20 Rabbit 2000 Development Kit...
  • Page 21: Chapter 3. Sample Programs

    3. S AMPLE ROGRAMS A series of sample programs is provided in the Dynamic C folder. SAMPLES/JACKRAB You can load a sample program by using the File > Open menu in Dynamic C. The sam- ple programs are listed in Table 1. Table 1.
  • Page 22: Running Sample Program Demojr1.C

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

    • A message reports that “No Rabbit processor detected” in cases where the Jackrabbit and 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 24: Editing The Program

    If want to compile and start the program running with one keystroke, use , the run command. If the program is not already compiled, the run command will compile it first. Rabbit 2000 Development Kit...
  • Page 25: Cooperative Multitasking

    • Single-stepping. This is done with the key. The key can also be used for single- stepping. If the key is used, then descent into subroutines will take place. With the key the subroutine is executed at full speed when the statement that calls it is stepped over.
  • Page 26 The term while loop is used as a handy way to describe a style of real-time programming in which most operations are done in one loop. The while loop starts at (1) and ends at (7). The function BigLoopTop() Rabbit 2000 Development Kit...
  • Page 27: Advantages Of Cooperative Multitasking

    used to collect some operations that are helpful to do once on every pass through the loop. Place the cursor on this function name and hit to learn more. <Ctrl-H> BigLoopTop() The statement at (3) waits for a time delay, in this case 200 ms. The costatement is being executed on each pass through the big loop.
  • Page 28: Rs-485 Serial Communication Sample Program

    ( "%02x -> %02x\n",nEcho,nReply ); NOTE: If your version of Dynamic C is earlier than 6.55, see Technical Note 117, Jack- rabbit (BL1800 Series) RS-485 Bulletin, for information on restrictions on using both DA1 and RS-485 at the same time.
  • Page 29: Chapter 4. Software Reference

    EFERENCE To develop and debug programs for the Jackrabbit (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 Jackrabbit.
  • Page 30: Hardware Requirements

    • A Pentium or later microprocessor • 32 MB of RAM • At least one free COM (serial) port for communication with the target systems • A CD-ROM drive (for software installation) Rabbit 2000 Development Kit...
  • Page 31: Running Dynamic C

    4.3 Running Dynamic C You have a choice of doing your software development in the flash memory or in the static RAM included on the Jackrabbit. The advantage of working in RAM is to save wear on the flash memory, which is limited to about 100,000 write cycles. NOTE: An application can be developed in RAM, but cannot run standalone from RAM after the programming cable is disconnected.
  • Page 32: Upgrading Dynamic C

    PPP, Advanced Encryption Standard (AES), and other select libraries. Dynamic C Premier includes a one-year maintenance agreement for telephone tech support and an upgrade path for all new releases. Serious users and OEMs are encour- aged to buy Dynamic C Premier. Rabbit 2000 Development Kit...
  • Page 33: Switching Between Program Mode And Run Mode

    4.4 Switching Between Program Mode and Run Mode The Jackrabbit is automatically in Program Mode when the programming cable is attached, and is automatically in Run Mode when no programming cable is attached. See Figure 5. Program Mode Run Mode RESET Jackrabbit board when changing mode: Short out pads below header J5,...
  • Page 34: Jackrabbit Function Apis

    This function initializes the digital outputs and sets up the driver for the analog input/outputs. The digital outputs correspond to the Rabbit processor’s port E bits 0–3, and the analog I/O uses timer B; bits 1, 2, and 4 of port D; and bits 6 and 7 of port E.
  • Page 35 void digOut(int channel, int value); sets the state of a digital output bit. jrioInit must be called first. channel is the output channel number (0-3 on the Jackrabbit). value is the output value (0 or 1). void digOn(int channel); sets the state of a digital output bit to on (1). jrioInit must be called first.
  • Page 36 • Set desired channel output to PWM_MIN • Measure voltage V on DA0. • Set desired channel output to PWM_MAX0 • Measure voltage V on DA0. • A linear relation between input value and voltage can now be calculated: Rabbit 2000 Development Kit...
  • Page 37 – -------------------------------------------------------------------- - PWM_MAX0 PWM_MIN – × – m PWM_MAX0 × voltage m value 4.5.1.4 Analog Input The analog input channel on the Jackrabbit (AD0 on header J5) works by varying analog output channel DA0 until its voltage matches the input voltage on AD0. DA0 obviously cannot be used while an input voltage is being measured, although channel DA0 is still available.
  • Page 38: Serial Communication Drivers

    Parallel Ports D and E on the Rabbit 2000 are double-buffered to provide precisely timed updating of the output pins. Each port is divided into an upper and a lower nibble. All bits of each nibble must be updated simultaneously.
  • Page 39: Appendix A. Reference Information

    A. R PPENDIX EFERENCE NFORMATION Appendix A provides the specifications and other useful infor- mation for the Jackrabbit. User’s Manual...
  • Page 40: Electrical And Mechanical Specifications

    A.1 Electrical and Mechanical Specifications Table A-1. Jackrabbit Board Specifications Parameter BL1810 Microprocessor Rabbit 2000 @ 14.7 MHz 128K Flash EPROM (supports 128K–512K) 128K SRAM (supports 32K–512K) 3 V lithium coin type, 950 mA·h, Backup Battery supports real-time clock and SRAM...
  • Page 41: Jackrabbit Pinout

    A.2 Jackrabbit Pinout Figure A-1. Pinout for Jackrabbit Headers J4 and J5 User’s Manual...
  • Page 42: Jumper Configurations

    A.3 Jumper Configurations Figure A-2 shows the header and jumper locations used to configure the various Jackrabbit options. Top Side Bottom Side Figure A-2. Location of Jackrabbit Configurable Positions Rabbit 2000 Development Kit...
  • Page 43 Table A-2 lists the configuration options. 0 Ω surface mount resistors are used for all the header positions. Table A-2. Jackrabbit Jumper Configurations Factory Header Description Pins Connected Default n.c. × SRAM Size 1–2 128K 2–3 512K × 1–2 128K/256K Flash Memory Size 2–3 512K ×...
  • Page 44: Use Of Rabbit 2000 Parallel Ports

    A.4 Use of Rabbit 2000 Parallel Ports Figure A-3 shows the use of the Rabbit 2000 parallel ports. The BL1810 Jackrabbit has 24 general-purpose digital inputs/outputs available on headers J4 and J5—14 are bidirec- tional, six are inputs only, and four are outputs only, as shown in Figure A-3.
  • Page 45: Notice To Users

    Specifications are based on characterization of tested sample units rather than testing over temperature and voltage of each unit. Rabbit Semiconductor products may qualify components to operate within a range of parameters that is different from the manufacturer’s recommended range.
  • Page 46 Rabbit 2000 Development Kit...
  • Page 47: Index

    ......8, 9 electrical specifications ..36 JRIO.LIB ....... 30 PACKET.LIB ....34 spectrum spreader feature ... 5 RS232.LIB ....34 Rabbit 2000 parallel ports ..40 serial communication ..34 reset ........13 Jr485Init ......34 Run Mode ......29 features Jr485Rx ......
  • Page 48 Rabbit 2000 Development Kit...
  • Page 49: Schematics

    CHEMATICS 090-0092 Jackrabbit Schematic www.rabbitsemiconductor.com/documentation/schemat/090-0092.pdf 090-0088 Jackrabbit Prototyping Board Schematic www.rabbitsemiconductor.com/documentation/schemat/090-0088.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