Wildcat (BL2000) User's Manual

> ## 2. Getting Started

> Chapter 2 explains how to connect the programming cable and power supply to the BL2000. Basic Ethernet network connections are shown, and instructions for configuring the network parameters on the BL2000 are included.

> ### 2.1 BL2000 Connections

> 1. Attach the BL2000 to the plastic enclosure base.

> Position the BL2000 over the plastic enclosure base as shown below in Figure 2. Attach the BL2000 to the base at the top left and bottom right positions using the two 4-40 × ¼ screws supplied with the enclosure.

> Figure 2. Attach BL2000 to Plastic Enclosure Base

> The plastic enclosure base facilitates handling the BL2000 during development, and provides an attractive mounting alternative. Alternatively, you may wish to use standoffs to protect the components on the other side of the board. The plastic enclosure is offered as a separate option when individual BL2000 boards are purchased.

> NOTE | Appendix B, "Plastic Enclosure," provides additional information and specifications for the plastic enclosure.

> 2. Connect the programming cable to download programs from your PC and to debug the BL2000.

> Connect the 10-pin PROG connector of the programming cable to header J5 on the BL2000. Ensure that the colored edge lines up with pin 1 as shown. (Do not use the DIAG connector, which is used for monitoring only, as explained in Appendix E, "Programming Cable.") Connect the other end of the programming cable to a COM port on your PC. Make a note of the port to which you connect the cable, as Dynamic C will need to have this parameter configured. Note that COM1 on the PC is the default COM port used by Dynamic C Premier.

> Figure 3. Programming Cable Connections

> 3. Connect the power supply.

> Plug the DC end of the power supply into jack J7, which is labeled POWER IN, as shown in Figure 4.

> Figure 4. Power Supply Connection

> 4. Apply power.

> Plug in the AC adapter. If you are using your own power supply, it must provide 9 V to 40 V DC—voltages outside this range could damage the BL2000.

> The green PWR LED and the red BAD LED should come on, indicating that the BL2000 is now ready to be used.

> NOTE | A hardware RESET is done by unplugging the AC adapter, then plugging it back in, or by momentarily grounding the board reset input at pin 9 on screw terminal header J2.

> ### 2.2 Installing Dynamic C Premier

> If you have not yet installed Dynamic C version 7.04 (or a later version), do so now by inserting the Dynamic C Premier CD in your PC's CD-ROM drive. The CD will auto-install unless you have disabled auto-install on your PC.

> If the CD does not auto-install, click Start > Run from the Windows Start button and browse for the Dynamic C Premier setup.exe file on your CD drive. Click OK to begin the installation once you have selected the setup.exe file.

> The Dynamic C Premier User's Manual provides detailed instructions for the installation of Dynamic C and any future upgrades.

> ### 2.3 Starting Dynamic C

> Once the BL2000 is connected to your PC and to a power source, start Dynamic C by double-clicking on the Dynamic C icon or by double-clicking on the .exe file associated with DcRab in the Dynamic C directory.

> Dynamic C assumes, by default, that you are using serial port COM1 on your PC. If you are using COM1, then Dynamic C should detect the BL2000 board and go through a sequence of steps to cold-boot the BL2000 and to compile the BIOS. If the error message "Rabbit Processor Not Detected" appears, you have probably connected to a different PC serial port such as COM2, COM3, or COM4. You can change the serial port used by Dynamic C with the OPTIONS menu, then try to get Dynamic C to recognize the BL2000 by selecting Reset Target/Compile BIOS on the Compile menu. Try the different COM ports in the OPTIONS menu until you find the one you are connected to. If you still can't get Dynamic C to recognize the target on any port, then the hookup may be wrong or the COM port might not working on your PC.

> If you receive the "BIOS successfully compiled ..." message after pressing <Ctrl-Y> or starting Dynamic C, and this message is followed by a communications error message, it is possible that your PC cannot handle the 115,200 bps baud rate. Try changing the baud rate to 57,600 bps as follows.

> - Locate the Serial Options dialog in the Dynamic C Options > Communications menu. Change the baud rate to 57,600 bps.

> If you are using Dynamic C version 7.04 or earlier, modify the BIOS source code as follows. Skip these three steps if you are using Dynamic C version 7.05 or later.

> 1. Open the BIOS source code file named RABBITBIOS.C, which can be found in the BIOS directory.
> 2. Change the line

>     #define USE115KBAUD 1   // set to 0 to use 57600 baud

> to read as follows.

>     #define USE115KBAUD 0   // set to 0 to use 57600 baud

> 3. Save the changes using File > Save.

> Now press <Ctrl-Y>. You should receive the "BIOS successfully compiled ..." message indicating that the target is now ready to compile a program.

> ### 2.4 PONG.C

> You are now ready to test your set-up by running a sample program.

> Find the file PONG.C, which is in the Dynamic C SAMPLES folder. To run the program, open it with the File menu (if it is not still open), compile it using the Compile menu, and then run it by selecting Run in the Run menu. The STDIO window will open and will display a small square bouncing around in a box.

> This program does not test the serial ports, the I/O, or the TCP/IP part of the board, but does ensure that the board is basically functional. The sample program described in Section 5.8, "Run the PINGME.C Demo," tests the TCP/IP portion of the board.

> ### 2.5 Where Do I Go From Here?

> If there are any problems at this point, call Z-World Technical Support at (530)757-3737.

> If the sample program ran fine, you are now ready to go on to explore other BL2000 features and develop your own applications.

> Chapter 3, "Subsystems," provides a description of the BL2000's features, Chapter 4, "Software," describes the Dynamic C software libraries and introduces some sample programs, and Chapter 5, "Using the TCP/IP Features," explains the TCP/IP features.

Z-World http://www.zworld.com Voice: (530) 753-3737 FAX: (530) 753-5141 sales@zworld.com