MiniCom (OP6800) User's Manual

> ## 2. Getting Started

> Chapter 2 explains how to connect the programming cable and power supply to the OP6800. Once you run a sample program to demonstrate that you have connected everything correctly, you will be ready to go on and finish developing your system.

> ### 2.1 Connections

> 1. Screw in the four standoffs included with the Tool Kit into the four mounting threads on the OP6800 as shown in Figure 2.

> Figure 2. Screw In Standoffs Into OP6800 Mounting Threads

> 2. Connect the OP6800 to the Demonstration Board from the Tool Kit using the ribbon cable connector as shown in Figure 3. First, connect the ribbon cable to header J1 on the OP6800 (Step 1), then turn the OP6800 over and connect the other end of the ribbon cable to header J1 on the Demonstration Board (Step 2). By connecting the boards this way, you have the option of placing the Demonstration Board behind your OP6800 in your final installation as explained in Appendix C.

> Figure 3. Connect the OP6800 to the Demonstration Board

> 3. Connect the power supply.

> Connect the bare ends of the power supply to the +RAW and GND positions on screw terminal header J5 of the Demonstration Board as shown in Figure 4.

> Figure 4. Power Supply Connections

> NOTE | The OP6800 itself has reverse polarity protection, but the Demonstration Board does not. Be careful to connect the positive and negative leads as shown to avoid damaging the Demonstration Board.
> NOTE | If you are using your own power supply, Z-World recommends using a 9 V to 25 V DC power supply. The linear regulator on the Demonstration Board can handle up to 35 V, but can get extremely hot.

> 4. Apply power.

> Plug in the AC adapter.

> NOTE | A hardware RESET is done by unplugging the AC adapter, then plugging it back in.

> ### 2.2 Demonstration Program on Power-Up

> A repeating sequence of graphics and messages in various languages will be displayed on the LCD and the LEDs will flash on and off in sequence when power is first applied to the OP6800. Try pressing the buttons on the keypad. The LED immediately above that button will light up, and if you pressed one of the keys in the top row of the keypad, the corresponding LED on the Demonstration Board will light up. Similarly, if you press one of the switches on the Demonstration Board, the corresponding LED on the Demonstration Board and on the OP6800 will light up.

> Note that the programming cable does not have to be connected for this demonstration.

> This demonstration will be replaced by a new program when the programming cable is attached and the new program is compiled and run. The demonstration is available for future reference in the Dynamic C Premier SAMPLES\LCD_KEYPAD\122x32_1x7 directory as FUN.C.

> ### 2.3 Programming Cable Connections

> 1. Connect the programming cable to download programs from your PC and to program and debug the OP6800.

> Connect the 10-pin PROG connector of the programming cable to header J1 on the OP6800 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 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 5. Programming Cable Connections

> 2. Apply power.

> Reset the OP6800 by unplugging the AC adapter, then plugging it back in. The OP6800 is now ready to be used.

> ### 2.4 Installing Dynamic C Premier

> If you have not yet installed Dynamic C version 7.06P2 (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.5 Starting Dynamic C

> Once the OP6800 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 OP6800 and go through a sequence of steps to cold-boot the OP6800 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 OP6800 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.6 PONG.C

> You are now ready to test your programming connections 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 (if you have the OP6800 model--the OP6810 does not have an Ethernet capability).

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

> NOTE | If you purchased your OP6800 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 explore other OP6800 features and develop your own applications.

> The following sample programs illustrate the features and operation of the OP6800.

> OP6800 (SAMPLES\LCD_KEYPAD\122x32_1x7) | Demonstration Board (SAMPLES\OP6800\DEMO_BD)
> KEYBASIC.C KEYMENU.C SCROLLING.C TEXT.C | KEYPAD.C SWITCHES.C

> These sample programs can be used as templates for applications you may wish to develop.

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

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