| Smart Star User's Manual |
2. Getting Started
Chapter 2 explains how to connect the power supply to the Smart Star backplane, how to install the CPU card on the backplane, and how to connect the programming cable to the CPU card. Once you run a sample program to demonstrate that you have connected everything correctly, you will be ready to go on to install I/O cards and finish developing your system.
2.1 Attach the CPU Card to the Backplane
- Position the CPU card above the backplane as shown in Figure 1.
- Carefully insert the CPU card header into the PROCESSOR SLOT on the backplane and line up the facing edge of the CPU card with the back edge of the alignment holes on the backplane as shown in Figure 1.
- Use the two 4-40 screws supplied with the CPU card to anchor the plastic brackets so that they hold the CPU card firmly in place on the backplane.
2.2 Connect the Power Supply
Connect the power supply to the POWER IN connector on the backplane--the red (positive) wire to +RAW and the black (negative) wire to GND, as shown in Figure 2.
NOTE Be careful to hook up the positive and negative leads exactly as described. Only the +5 V circuitry is protected against reverse polarity. A USER connection is supplied on the backplane to allow an independent power supply to be used for future development. For now, use a jumper to connect USER to +RAW so that they share the same power supply.
2.3 Programming Cable Connections
Connect the 10-pin PROG connector of the programming cable to header J2 on the CPU card as shown in Figure 4. Connect the other end of the programming cable to a COM port on your PC. Note that COM1 on the PC is the default COM port in the Dynamic C Premier installation.
Plug the power supply in to a nearby outlet. The CPU card is now ready to be used.
NOTE A hardware RESET is accomplished by unplugging the power supply, then plugging it back in. 2.4 Installing Dynamic C Premier
If you have not yet installed Dynamic C version 7.06P3 (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
setup.exefile on your CD drive. Click OK to begin the installation once you have selected thesetup.exefile.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.5 Starting Dynamic C
Once the CPU card is installed and connected as described above, start Dynamic C by double-clicking on the Dynamic C icon or by double-clicking on the
.exefile associated withDcRabin the Dynamic C directory.Dynamic C should detect the CPU card and go through a sequence of steps to cold-boot the CPU card and to compile the BIOS. If the error message "Rabbit Processor Not Detected" appears, you have probably connected to a different PC serial port than the default serial port selected during the installation of Dynamic C Premier. You can change the serial port used by Dynamic C with the OPTIONS menu, then try to get Dynamic C to recognize the CPU card by selecting Recompile 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 cannot get Dynamic C to recognize the target on any port, then the hookup may be wrong or the COM port is 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.6 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 CSAMPLESfolder. 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 on the CPU card, but does ensure that the CPU is basically functional.
2.7 Installing I/O Cards
- Orient the backplane with the CPU card already installed and facing towards you as shown in Figure 5.
- Position the new I/O card above the backplane over any unused slot position (SLOT 0 to SLOT 6) as shown in Figure 5. Note the slot number and the type of I/O card since Dynamic C addresses the I/O cards by slot number.
- Carefully insert the I/O card header into the slot on the backplane and line up the tabs on the I/O cards with the slots on the backplane as shown in Figure 5.
- Use the two 4-40 screws supplied with the I/O card to anchor the plastic brackets on the CPU card or the I/O card firmly on the backplane. Tighten the screws as needed using a Phillips screwdriver whose shaft is at least 3" (7 cm) long, but is no thicker than 0.16" ( 4 mm).
2.8 Where Do I Go From Here?
NOTE If you purchased your Smart Star through a distributor or Z-World partner, contact the distributor or Z-World partner first for technical support. If there are any problems at this point:
- Check the Z-World Technical Bulletin Board at www.zworld.com/support/bb/.
- Use the Technical Support e-mail form at www.zworld.com/support/support_submit.html.
- Call Z-World Technical Support at (530)757-3737.
If the sample program ran fine, you are now ready to go on to install I/O cards, explore other Smart Star features, and develop your own applications.
Chapter 3, "Hardware Features," provides detailed information about the CPU card, and how to install the I/O cards. Be sure to take the total current consumption of the individual cards into account when selecting a power supply. Appendix C.1, "Current Requirements," provides more detailed information. Chapter 4, "Software," describes the Dynamic C software libraries and introduces some sample programs for use with the CPU card. Chapter 6, "Smart Star Specifications," provides specifications for the backplanes and the CPU cards, including mounting and clearance recommendations.
Separate sections in this manual have been prepared for the various I/O cards, and include complete information about their pinouts and Dynamic C software libraries, including sample programs.
Once you have developed your application and bench-tested the finished system, you may install the finished system.
| Z-World http://www.zworld.com Voice: (530) 757-3737 FAX: (530) 757-3792 sales@zworld.com |