Table of Contents About This Manual 1. Introduction........................1 1.1 Kit Contents..........................1 1.2 Documentation ..........................1 1.3 An Overview of Dynamic C for the Rabbit ................2 2. Detailed Installation Instructions ..................5 2.1 Software Installation ........................5 2.2 Getting Hooked Up ........................5 2.2.1 Prototyping Board......................6 2.2.2 Jackrabbit Board ......................7...
About This Manual This manual provides instructions for installing, testing, configuring, and interconnecting the Rabbit 2000 microprocessor using the Jackrabbit controller and the Jackrabbit Devel- opment board. Assumptions Assumptions are made regarding the user’s knowledge and experience in the following areas: •...
1. Introduction The Rabbit 2000 a a new and powerful microprocessor. Both hardware and software design are easy with the Rabbit. This kit has the essentials that you need to design your own a microprocessor-based sys- tem, and includes a complete software development system (Dynamic C). This Develop- ment Kit contains a powerful single-board computer (the Jackrabbit board).
1.3 An Overview of Dynamic C for the Rabbit The Rabbit 2000 is programmed using Z-World’s Dynamic C, an integrated development environment that includes an editor, a C compiler, and a debugger. Library functions pro- vide an easy-to-use interface for the Jackrabbit board included with the Development Kit.
Page 8
You have a choice of doing your software development in the flash memory or in the static RAM included on the Jackrabbit board. There are 128K in each memory. Versions of the Jackrabbit board are available that support only 32K of static RAM. If you use one of these boards, you must do development in flash memory.
2. Detailed Installation Instructions Chapter 2 contains detailed instructions for installing the software on your PC and for con- necting the Jackrabbit board to your PC in order to run sample programs. 2.1 Software Installation You will need approximately 10 megabytes of free space on your hard disk. The software can be installed on your C drive or any other convenient drive.
Plug headers J4 and J5 into the sockets on the Prototyping Board as indicated in Figure 2. JACKRABBIT Battery Buzzer JACKRABBIT DEVELOPMENT BOARD Z-World, Inc. Figure 2. Attaching Jackrabbit Board to Prototyping Board Rabbit 2000 Development Kit...
10-pin connector, attach that connector to header J3 on the Jackrabbit board.) Connect the other end of the programming cable to a COM port on your PC. Note that COM1 is the default COM port used by Dynamic C. JACKRABBIT BOARD SRAM AGND Rabbit 2000 PCLK 485 485+ IOBEN STAT...
Change the baud rate to 57,600 bps, then press <ctrl-Y> If you receive the “BIOS successfully compiled …” message and do not receive a “Target not responding” message, the target is now ready to compile a user program. Rabbit 2000 Development Kit...
3. Sample Programs A series of sample programs is provided in the Dynamic C folder. Samples/JackRab You can load a sample program by using the menu in Dynamic C. The sample File Open programs are listed in Table 1. Table 1. Jackrabbit Sample Programs DEMOJR1.C DEMOJR2.C DEMOJR3.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...
• 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.) •...
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. Rabbit 2000 Development Kit...
• Setting break points. The key is used to turn on or turn off (toggle) a break point at the cursor position if the program has already been compiled. You can set a break point if the program is paused at a break point. You can also set a break point in a program that is running at full speed.
Page 19
The while loop starts at (1) and ends at (7). The function BigLoopTop() 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() Rabbit 2000 Development Kit...
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. When a condition is encountered waitfor the first time, the current value of is saved and then on each subsequent pass MS_TIMER the saved value is compared to the current value.
Rabbit programming interface. This is a 10-pin connector that connects to the Rabbit serial port A. It is possible to reset and cold-boot a Rabbit processor via the programming port. No software needs to be present in the target system.
In this situation, the hardware real-time clock can be read directly to provide the time. • Watchdog support routines. Although the Rabbit watchdog can be disabled, this is not recommended since the watchdog is an essential facility for recovering from crashes.
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 25
• 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...
– -------------------------------------------------------------------- - PWM_MAX0 PWM_MIN – × – m PWM_MAX0 × voltage m value 4.2.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.
—desired baud rate in bits per second Return Value 1—The baud rate set on the Rabbit is the same as the input baud rate. 0—The baud rate set on the rabbit does not match the input baud rate. int serXclose ( );...
4.3.2 Non-Cofunction Blocking Input Functions These are simple functions that do not use Dynamic C costatements. If no input data are available when called, they return immediately with appropriate status information in their return value. Once they begin to receive characters, they do not yield to other tasks until they complete their operation or until a character-to-character timeout period elapses.
Parameters data —Destination data structure. The user must ensure data is allocated for at least length bytes. length —The number of bytes to read. Return Value The number of bytes written to the serial port. Rabbit 2000 Development Kit...
4.3.4 Single-User Cofunction Input Functions These are Dynamic C cofunctions. If the input buffer they use is locked or becomes full during the course of their operation, they yield to other tasks, but do not return to execute the next statement within their own costatement block until they have completed their operation. scofunc int cof_serXgetc ( );...
Writes a block of characters to the serial port, yielding to other tasks when unsuccessful or whenever the buffer is full, returning only when all the data is successfully written. Parameters data —Source data structure to write to the serial port. length —Number of characters in data to write. Return Value None Rabbit 2000 Development Kit...
4.3.6 Circular Buffer Functions These functions act on or report status of the circular transmit/receive buffers. Macro definitions are used to establish the buffer sizes: xINBUFSIZE —read buffer size, where is A, B, C, or D xOUTBUFSIZE —write buffer size where is A, B, C, or D The user must define each buffer size for each port being used to be a power of 2 minus 1 with a macro.
Page 33
The number of characters the serial port transmit buffer can accept before becoming full. int serXrdUsed ( ); Calculates the number of characters ready to read from the serial port receive buffer. Parameters None Return Value The number of characters currently in the serial port receive buffer. Rabbit 2000 Development Kit...
Appendix A. Specifications Table A-1 lists the electrical, mechanical, and environmental specifications for the Jack- rabbit board. Table A-1. Jackrabbit Board Specifications Parameter Specification Board Size 3.50" × 2.50" × 0.94" (89 mm × 64 mm × 24 mm) Humidity 5% to 95%, noncondensing 7.5 V to 25 V DC, 100 mA typical, 150 mA maximum, linear...
Page 37
REVISION HISTORY REVISION HISTORY REVISION APPROVAL REVISION APPROVAL PROJECT PROJECT APPROVAL APPROVAL DOCUMENT DOCUMENT APPROVAL APPROVAL DESCRIPTION DESCRIPTION ENGINEER ENGINEER DATE DATE CONTROL CONTROL DATE DATE APPEND THE FOLLOWING APPEND THE FOLLOWING DRAWING CONTENT: DRAWING CONTENT: DOCUMENTS WHEN CHANGING DOCUMENTS WHEN CHANGING THIS DOCUMENT: THIS DOCUMENT: 2900 SPAFFORD ST.
Page 40
REVISION HISTORY REVISION HISTORY REVISION APPROVAL REVISION APPROVAL PROJECT PROJECT APPROVAL APPROVAL DOCUMENT DOCUMENT APPROVAL APPROVAL DESCRIPTION DESCRIPTION ENGINEER ENGINEER DATE DATE CONTROL CONTROL DATE DATE APPEND THE FOLLOWING APPEND THE FOLLOWING DRAWING CONTENT: DRAWING CONTENT: DOCUMENTS WHEN CHANGING DOCUMENTS WHEN CHANGING THIS DOCUMENT: THIS DOCUMENT: 2900 SPAFFORD ST.
Page 42
REVISION HISTORY REVISION HISTORY REVISION APPROVAL REVISION APPROVAL PROJECT PROJECT APPROVAL APPROVAL DOCUMENT DOCUMENT APPROVAL APPROVAL DESCRIPTION DESCRIPTION ENGINEER ENGINEER DATE DATE CONTROL CONTROL DATE DATE APPEND THE FOLLOWING APPEND THE FOLLOWING DRAWING CONTENT: DRAWING CONTENT: DOCUMENTS WHEN CHANGING DOCUMENTS WHEN CHANGING THIS DOCUMENT: THIS DOCUMENT: WORLD...
Need help?
Do you have a question about the 2000 and is the answer not in the manual?
Questions and answers