Smart Star
User's Manual
PREV NEXT INDEX



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

  1. Orient the backplane with the PROCESSOR SLOT facing away from you as shown in Figure 1.


Figure 1. Attach the CPU Card to the Backplane

  1. Position the CPU card above the backplane as shown in Figure 1.

  2. 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.

NOTE Be careful to line up the pins on the CPU card with the socket on the backplane when installing the CPU card. The CPU card can be damaged once power is applied if the CPU card is not installed correctly.

  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.

Notice to Customers Outside North America

The power supply included with the Smart Star Tool Kit may be used worldwide. Customers outside North America simply need to exchange the line cord and plug from the power supply to their wall outlet with one available locally.

  1. To exchange the line cord and plug, first remove the existing line cord. To access the screws, use a screwdriver to gently lift up and remove the plastic insulating cover.


Figure 3. Power Supply Connections

  1. Unscrew the wires at the ground, L, and N terminals.

  2. Attach the line cord that you obtained locally to the power supply. Be sure to follow any color-coding conventions, for example, green/yellow to ground, brown to L, and blue to N terminals.

  3. Ensure that the wires are attached securely and are not touching each other. Snap on the plastc insulating cover.

NOTE The power supply included with the Smart Star Tool Kit is intended for development purposes only.

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.


Figure 2. Power Supply Connections

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

  1. Connect the programming cable to the CPU card.

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.


Figure 4. Programming Cable Connections

  1. Apply power.

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.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.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 .exe file associated with DcRab in 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.

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 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 on the CPU card, but does ensure that the CPU is basically functional.

2.7 Installing I/O Cards

  1. Orient the backplane with the CPU card already installed and facing towards you as shown in Figure 5.


Figure 5. Installing I/O Cards on the Backplane

  1. 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.

  2. 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.

  3. 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:

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.


PREV NEXT INDEX


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