| Smartcat (BL2100) User's Manual |
2. Getting Started
Chapter 2 explains how to connect the programming cable and power supply to the BL2100. Basic Ethernet network connections are shown, and instructions for configuring the network parameters on the BL2100 are included.
2.1 BL2100 Connections
1. Remove the RabbitCore module from the BL2100 main board, and set the module aside. The module is removed to allow access to the mounting holes on the main BL2100 board, and will be plugged back in to the main board later.
2. Attach the BL2100 main board to the plastic enclosure base.
Position the BL2100 main board over the plastic enclosure base as shown below in Figure 3. Attach the BL2100 to the base using the four 4-40 × ¼ screws supplied with the enclosure base.
The plastic enclosure base facilitates handling the BL2100 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 base is offered as a separate option when individual BL2100 boards are purchased.
NOTE Appendix D, "Plastic Enclosure," provides additional information and specifications for the plastic enclosure. 3. Reconnect the RabbitCore module to headers J16 and J17 on the BL2100 main board it was removed from earlier as shown in Figure 4. Be careful to align the pins over the headers, and do not bend them as you press down to mate the module with the BL2100 main board.
4. Connect the programming cable to download programs from your PC and to program and debug the BL2100.
Connect the 10-pin PROG connector of the programming cable to header J1 on the BL2100 RabbitCore module. 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 F, "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.
Connect the bare ends of the power supply to the +RAW and GND positions on screw terminal header J4 as shown in Figure 6.
Plug in the AC adapter. If you are using your own power supply, it must provide 9 V to 36 V DC--voltages outside this range could damage the BL2100.
NOTE A hardware RESET is done by unplugging the AC adapter, then plugging it back in. 2.2 Installing Dynamic C Premier
If you have not yet installed Dynamic C version 7.06 (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.
NOTE If you have an earlier version of Dynamic C already installed, the default installation of the later version will be in a different folder, and a separate icon will appear on your desktop. 2.3 Starting Dynamic C
Once the BL2100 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 BL2100 and go through a sequence of steps to cold-boot the BL2100 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 BL2100 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.
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 shows that the CPU is working. The sample program described in Section 5.2.3, "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:
- Check the Z-World Technical Bulletin Board at http://www.zworld.com/support/bb/index.html.
- E-mail your questions to support@zworld.com.
- 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 BL2100 features and develop your own applications.
Chapter 3, "Subsystems," provides a description of the BL2100'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 |