Z-World OP7100 User Manual

Manual is about: Serial Graphic Display

Summary of OP7100

  • Page 1

    Op7100 serial graphic display user’s manual 019–0065 • 020418–j.

  • Page 2: Op7100 User’S Manual

    Op7100 user’s manual part number 019-0065 020418-j • printed in u.S.A. © 1999–2002 z-world, inc. All rights reserved. Z-world reserves the right to make changes and improvements to its products without providing notice. Notice to users z-world products are not authorized for use as critical componen...

  • Page 3: Able

    Table of contents s iii op7100 t able of c ontents about this manual vii chapter 1: overview 11 introduction .......................................................................................... 12 features ...........................................................................................

  • Page 4: Chapter 4:  Software

    Iv s table of contents op7100 digital i/o ............................................................................................ 34 serial communication.......................................................................... 35 rs-232 communication ..............................................

  • Page 5: Chapter 6:  Installation

    Table of contents s v op7100 dynamic c 32 libraries ....................................................................... 56 op71hw.Lib .................................................................................. 56 keypad programming ............................................................

  • Page 6: Appendix B:  Specifications

    Vi s table of contents op7100 appendix b: specifications 91 electrical and mechanical specifications ............................................ 92 lcd dimensions ............................................................................. 92 bezel dimensions .........................................

  • Page 7: Bout

    Op7100 about this manual s vii a bout t his m anual this manual provides instructions for installing, testing, configuring, and interconnecting the z-world op7100 touchscreen operator interface. Instructions are also provided for using dynamic c functions. Assumptions assumptions are made regarding ...

  • Page 8: Acronyms

    Op7100 viiis about this manual acronyms table 1 lists and defines the acronyms that may be used in this manual. Icons table 2 displays and defines icons that may be used in this manual. Table 1. Acronyms acronym meaning eprom erasable programmable read-only memory eeprom electronically erasable prog...

  • Page 9: Conventions

    Op7100 about this manual s ix conventions table 3 lists and defines the typographical conventions that may be used in this manual. Pin number 1 a black square indicates pin 1 of all headers. Measurements all diagram and graphic measurements are in inches followed by millime- ters enclosed in parenth...

  • Page 10

    Op7100 xs about this manual.

  • Page 11: Verview

    Op7100 overview s 11 c hapter 1: o verview chapter 1 provides an overview and a brief description of the op7100 features..

  • Page 12: Introduction

    Op7100 12 s overview introduction the op7100 is a serial graphic display in a compact, easy to integrate module. The op7100 features an lcd that has a white background with blue images. The lcd has pixel graphics and provides two-color (mono- chrome) displays. Five standard fonts are included in the...

  • Page 13: Features

    Op7100 overview s 13 ( features the op7100 includes the following features. • 240 × 320 ¼ vga lcd (with touchscreen on op7100 only) • jumper-selectable background—positive (blue images on white background) or negative (white images on blue background) • software-controlled cold-cathode fluorescent b...

  • Page 14: Software

    Op7100 14 s overview ( development and evaluation tools the op7100 is supported by a tool kit that include everything you need to start development with the op7100. The tool kit includes these items. • serial cable • 24 v dc power supply capable of delivering 1.1 a • user’s manual with schematics an...

  • Page 15: Ce Compliance

    Op7100 overview s 15 ce compliance the op7100 has been tested and was found to be in conformity with applicable en immunity and emission standards. Note the following requirements for incorporat- ing the op7100 into your application to comply with ce requirements. The power supply provided with the ...

  • Page 16

    Op7100 16 s overview.

  • Page 17: Etting

    Op7100 getting started s 17 c hapter 2: g etting s tarted chapter 2 provides instructions for connecting the op7100 to a host pc and running a sample program..

  • Page 18: Initial Op7100 Setup

    Op7100 18 s getting started initial op7100 setup parts required • 24 v unregulated dc power supply capable of delivering up to 1.1 a • serial cable the necessary parts are supplied with the tool kit. Setting up the op7100 1. Remove the green power connector shown in figure 2-1 from the back of the o...

  • Page 19: Support

    Op7100 getting started s 19 op7100 series display/controller menu featr exi t suprt demo clock exi t bklit ctrst beep exit display bitmaps + yr exit + day + mon –hr –sec –min + hr + min + sec –yr –mon –day set 1999 dec 31 23 : 59 : 59 exit press keys before tiim eout exi t support z-world techni cal...

  • Page 20

    Op7100 20 s getting started 5 4 3 2 1 contrast rs232 485+ gnd n.C. 485– gnd 4 3 2 1 9 8 7 6 232_rx1/ ct 232_tx1/ rt pwr_de9 txa rxa n.C. Gnd n.C. Dcin (12–30 vdc) 5 caution: high-voltage transformer. Only qualified persons may open this case. S/n: connecting the op7100 to a host pc 1. Unplug any pow...

  • Page 21

    Op7100 getting started s 21 marked conductor to pin 1 pin 1 j4 prgm port figure 2-4. Sib programming connection figure 2-5. Direct programming connection option 2 uses an rs-232 serial port to program the op7100. If this serial port is needed in your application, use the sib as described in option 1...

  • Page 22: Running Dynamic C

    Op7100 22 s getting started running dynamic c double-click the dynamic c icon to start the software. Note that the pc attempts to communicate with the op7100 each time dynamic c is started. No error messages are displayed once communication is established. The communication rate, port, and protocol ...

  • Page 23: Ardware

    Op7100 hardware s 23 c hapter 3: h ardware chapter 3 describes how to use the op7100. Sections are included to describe the following features. • subsystems overview • power management • liquid crystal display • keyboard interface • digital i/o • serial communication.

  • Page 24: Op7100 Subsystems Overview

    Op7100 24 s hardware op7100 subsystems overview the op7100 consists of several subsystems, including a computing module, serial communication channels, lquid crystal display (lcd), a buzzer, and a keypad interface. Figure 3-1 provides a block diagram of the op7100. Figure 3-1. Op7100 block diagram c...

  • Page 25: Power Management

    Op7100 hardware s 25 power management the op7100 was designed to operate from a 12 v to 30 v dc source, and consumes about 4.5 w with the backlight on, 1.5 w with the backlight off. To allow for a surge current when the op7100 is first turned on, the power supply used must be able to handle at least...

  • Page 26: Adm691 Supervisor Chip

    Op7100 26 s hardware adm691 supervisor chip a voltage divider consisting of r29 and r30 across the dc input provides a pfi signal to the adm691 watchdog supervisor. The adm691 chip performs the following services. • watchdog timer resets the microprocessor if software “hangs.” • power-failure shutdo...

  • Page 27

    Op7100 hardware s 27 main(){ ... } ... Char dummy[24]; ... #define nmi_bit 0 ; bit 0 #jump_vec nmi_vec myint #asm myint:: ld sp,dummy+24 ; force stack pointer ; to top of dummy vector ; to prevent overwriting ; code or data do whatever service, within allowable execution time loop: call hitwd ; make...

  • Page 28

    Op7100 28 s hardware watchdog timer is hitwd . To hold the watchdog timer at bay, make a call to hitwd in a routine that runs periodically at the lowest software priority level. A program can read the state of the wdo line with a call to wderror . This makes it possible to determine whether a watchd...

  • Page 29: System Reset

    Op7100 hardware s 29 figure 3-3. Op7100 power-failure detection circuit since r34 >> rn2, the difference between v h and v l , the hysteresis voltage, would be 5 v × (r30/r34). For a nominal hysteresis voltage of 1.25 v, r 30 = 0.25 × r34. Memory protection when /reset is active, the adm691 supervis...

  • Page 30: Liquid Crystal Display (Lcd)

    Op7100 30 s hardware liquid crystal display (lcd) the 240 × 320 ¼ vga lcd supports both graphics and text. Automatic contrast control is built in so that the contrast, once set, does not drift as the op7100 warms up or is moved. Figure 3-4 provides a block diagram of the lcd control and ram circuits...

  • Page 31: Background

    Op7100 hardware s 31 figure 3-6 shows the jumper settings for the contrast control options. Figure 3-6. Contrast control jumper configurations background the op7100 comes factory-configured to display blue characters on a white (positive) background. The jumpers on header jp1 may be rear- ranged as ...

  • Page 32: Coordinate Systems

    Op7100 32 s hardware coordinate systems figure 3-8 shows the coordinate systems for the touchscreen and the lcd. Figure 3-8. Coordinate systems (row, column) landscape 0,7 7,0 7,7 0,0 landscape 320,240 0,0 320,0 0,240 portrait 7,7 0,7 7,0 0,0 portrait 240,0 0,320 0,0 240,320 touchscreen lcd.

  • Page 33: Keypad Interface

    Op7100 hardware s 33 keypad interface the op7100 has a touchscreen, which is connected to the circuit board at header j5. Header j6 is available for a customer-supplied keypad for the op7110. Table 3-1 lists the pinouts for headers j5 and j6. The pinout for header j5 is identical to the pinout for h...

  • Page 34: Digital I/o

    Op7100 34 s hardware digital i/o the op7100 has eight cmos/ttl-level digital inputs and eight cmos/ ttl-level digital outputs. The digital inputs are provided with pullup resistors, shown in figure 3-11, to provide a known state before a digital input is applied.. Figure 3-11. Op7100 digital inputs ...

  • Page 35: Serial Communication

    Op7100 hardware s 35 serial communication two serial channels support asynchronous communication at baud rates from 300 bps to 57,600 bps. Serial communication provides a simple and robust means for networking controllers and other devices. Figure 3-13 illustrates the configuration of the op7100 ser...

  • Page 36

    Op7100 36 s hardware the jumpers on header jp4 may be reconfigured so that header j11 carries the z180 port 1 tx1 and rx1 rs-232 signals on pins 2 and 3 instead of the factory-default rs-485+ and rs-485– signals. Figure 3-15 shows the header jp4 jumper configurations and the location of headers jp3 ...

  • Page 37: Rs-232 Communication

    Op7100 hardware s 37 j8 gnd cts/rx1 r ts/tx1 rx0 gnd r ts/tx1 cts/rx1 j10 tx0 1 2 3 4 5 6 7 8 9 10 2 4 6 8 1 3 5 7 9 rs-232 communication figure 3-16 shows the rs-232 signals on header j8 and header j10 (the de-9 connector). Figure 3-16. Rs-232 signals pin 9 on header j10, the de-9 connector, may be...

  • Page 38

    Op7100 38 s hardware rx tx gnd rts cts dtr rx tx gnd rts cts modem side op7100 side figure 3-17. Connections between controller and modem a program sends data by writing characters into the transmit buffer. If the serial port is not already transmitting, the write functions will automatically initia...

  • Page 39: Rs-485 Communication

    Op7100 hardware s 39 rs-485 communication figure 3-18 shows the rs-485 sig- nals on header j11. Developing an rs-485 network the 2-wire rs-485 serial-commu- nication port and dynamic c net- work software are used to develop an rs-485 network. The op7100 can be linked together with other z-world cont...

  • Page 40

    Op7100 40 s hardware any z-world controller or the op7100 can be a master or a slave. A network can have up to 255 slaves, but only one master. A multidrop network requires termination/bias resistors to minimize reflec- tions (echoing) and to keep the network line active during an idle state. The op...

  • Page 41: Use of The Serial Ports

    Op7100 hardware s 41 table 3-2. Z180 serial port registers address name description 00 cntla0 control register a, serial channel 0 01 cntla1 control register a, serial channel 1 02 cntlb0 control register b, serial channel 0 03 cntlb1 control register b, serial channel 1 04 stat0 status register, se...

  • Page 42

    Op7100 42 s hardware z180 serial ports the z180 ’s two independent, full-duplex asynchronous serial channels have a separate baud-rate generator for each channel. The baud rate can be divided down from the microprocessor clock, or from an external clock for either or both channels. The serial ports ...

  • Page 43

    Op7100 hardware s 43 the serial ports can be polled or interrupt-driven. A polling driver tests the ready flags (tdre and rdrf) until a ready condition appears (transmitter data register empty or receiver data register full). If an error condition occurs on receive, the routine must clear the error ...

  • Page 44: Asci Status Registers

    Op7100 44 s hardware asynchronous serial communication interface the z180 incorporates an asynchronous serial communication interface (acsi) that supports two independent full-duplex channels. Asci status registers a status register for each channel provides information about the state of each chann...

  • Page 45

    Op7100 hardware s 45 cts1e (cts enable, channel 1) the signals rxs and cts1 are multiplexed on the same pin. A 1 stored in this bit makes the pin serve the cts1 function. A 0 selects the rxs function. (the pin rxs is the csi/o data receive pin.) when rxs is selected, the cts line has no effect. Rie ...

  • Page 46: Asci Control Register A

    Op7100 46 s hardware asci control register a control register a affects various aspects of the asynchronous channel operation. Cntla0 (00h) 7 6 5 4 3 2 1 0 mpe re te /rts0 mpbr/ efr mod2 mod1 mod0 r / w r / w r / w r / w r / w r / w r / w r / w cntla1 (01h) 7 6 5 4 3 2 1 0 mpe re te cka1d mpbr/ efr ...

  • Page 47: Asci Control Register B

    Op7100 hardware s 47 re (receiver enable) this bit controls the receiver: 1 Þ enabled, 0 Þ disabled. When this bit is cleared, the processor aborts the operation in progress, but does not disturb rdrf or the error flags. Mpe (multiprocessor enable) this bit (1 Þ enabled, 0 Þ disabled) controls multi...

  • Page 48

    Op7100 48 s hardware prescaler ( ps ) ÷10 or ÷30 processor clock divider 1 2 ... 64 divide ratio ( dr ) 16 or 64 external clock the prescaler (ps), the divide ratio (dr), and the ss bits form a baud-rate generator, as shown in figure 3-22. Figure 3-22. Z180 baud-rate generator dr (divide ratio) this...

  • Page 49

    Op7100 hardware s 49 table 3-5. Baud rates for asci control register b asci b value baud rate at 9.216 mhz (bps) baud rate at 18.432 mhz (bps) asci b value baud rate at 9.216 mhz (bps) baud rate at 18.432 mhz (bps) 00 57,600 115,200 20 19,200 38,400 01 28,800 57,600 21 9600 19,200 02 or 08 14,400 28...

  • Page 50

    Op7100 50 s hardware.

  • Page 51: Oftware

    Op7100 software s 51 c hapter 4: s oftware chapter 4 describes the dynamic c functions used with the op7100..

  • Page 52: Supplied Software

    Op7100 52 s software supplied software software drivers for controlling the op7100 are provided with dynamic c. Depending on the version of dynamic c you are using, the op71l.Lib / op71p.Lib or the ezioop71.Lib libraries provide drivers specific to the op7100. In order to usethe op71l.Lib / op71p.Li...

  • Page 53: Digital I/o

    Op7100 software s 53 digital i/o no specific drivers have been written for the op7100 digital i/o. The inport and outport functions in the dynamic c bios.Lib library can be used to read the inputs and write the outputs. The eight digital inputs (din0–din7) are bitmapped bits 0 through 7 of the input...

  • Page 54: Real-Time Clock (Rtc)

    Op7100 54 s software ! $ the sample program op71.C below cycles through through the outputs with one bit high at a time while it displays the state of the digital inputs. Real-time clock (rtc) the op7100 has an epson 72423 chip. The chip stores time and date, and accounts for the number of days in a...

  • Page 55: Display

    Op7100 software s 55 display flash eprom the writeflash function in the dynamic c drivers.Lib library is used to write data to the program flash eprom. • int writeflash( unsigned long physical_addr, char *buf, int count ) writes count number of bytes pointed to by buf to the program flash eprom abso...

  • Page 56: Dynamic C 32 Libraries

    Op7100 56 s software dynamic c 32 libraries when you are using dynamic c 32, you must first #use op71l.Lib or #use op71p.Lib before the #use op71hw.Lib line as shown below. #use op71l.Lib or #use op71p.Lib #use op71hw.Lib call the #use op71p.Lib line to use your op7100 in a portrait orienta- tion, o...

  • Page 57

    Op7100 software s 57 • void op71brdoff485( void ); disables the op7100's rs-485 driver. • void op71brdon485( void ); enables the op7100's rs-485 driver. • void op71beep( int onoff ); controls the op7100's beeper. Parameter: onoff is non-zero to beep, zero to stop beep. • void op71bufflock( void ); i...

  • Page 58

    Op7100 58 s software • void op71left1( int left, int top, int cols, int rows ); scrolls byte-aligned window left one pixel, right column is filled by current pixel type (color). Parameters: left is the left edge of the window, must be evenly divisible by 8. Top is the top edge of the window. Cols is...

  • Page 59

    Op7100 software s 59 • void op71down1( int left, int top, int cols, int rows ); scrolls byte-aligned window down one pixel, top column is filled by current pixel type (color). Parameters: left is the left edge of the window, must be evenly divisible by 8. Top is the top edge of the window. Cols is t...

  • Page 60

    Op7100 60 s software • void op71xputbitmap( int left, int top, int width, int height, unsigned long bitmap ); draws bitmap in the specified space. The data for the bitmap are stored in xmem . Automatically calls op71xputfastmap if bitmap is byte- aligned (left-edge and width each evenly divisible by...

  • Page 61

    Op7100 software s 61 • void op71xgetfastmap( int x, int y, int bmwidth, int bmheight, unsigned long xbm ); gets a bitmap from the lcd page buffer and stores it in xmem ram. This function is like op71xgetbitmap , except that it is faster. The restriction is that the bitmap must be byte-aligned. Param...

  • Page 62

    Op7100 62 s software • void op71plotcircle( int xc, int yc, int rad ); draws a circle in the lcd page buffer, and on the lcd if the buffer is unlocked. Parameters: x is the x-coordinate of the center. Y is the y-coordinate of the center. Rad is the radius of the circle (in pixels). • void op71fillci...

  • Page 63

    Op7100 software s 63 • void op71fillpolygon( int n, int x1, int y1, int x2, int y2, ... ); fills a polygon in the lcd page buffer, and on the lcd if the buffer is unlocked. Parameters: n is the number of vertices. ( x1 , y1 ) are the (x,y) coordinates of the first vertex. ( x2 , y2 ) are the (x,y) c...

  • Page 64: Keypad Programming

    Op7100 64 s software • int op71getpfstep( void ); gets the current op71printf printing step direction. Each step direction is independent of the other, and is treated as an 8-bit signed value. The actual step increments depend on the height and width of the font being displayed, which are multiplied...

  • Page 65: Using Dynamic C V. 5.Xx

    Op7100 software s 65 using dynamic c v. 5.Xx ezioop71.Lib • void op71backlight( int onoff ) turns the backlight of the op7100 on or off. Parameter: onoff is non-zero to turn the backlight on, zero to turn the backlight off. • void op71setcontrast( unsigned contrast ) controls the contrast of the lcd...

  • Page 66

    Op7100 66 s software • glxfontinit( struct _fontinfo *pinfo, char pixwidth, char pixheight, unsigned startchar, unsigned endchar, unsigned long xmembuffer ) initializes a font descriptor that has the bitmap defined in xmem . For bitmaps defined in root memory, use glfontinit . Parameters: pinfo is a...

  • Page 67

    Op7100 software s 67 • int glinit() initializes the lcd module (software and hardware). Return value: the status of the lcd. If the initialization was successful, this function returns 0. Otherwise, the returned value indicates the lcd status. • int glplotdot( int x, int y ) plots one pixel on the s...

  • Page 68

    Op7100 68 s software • void glplotvpolygon( int n, int *pfirstcoord ) plots a filled-in polygon. Parameters: n is the number of vertices. *pfirstcoord is an array of vertex coordinates (x 1 ,y 1 ), (x 2 ,y 2 ), • void glplotpolygon( int n, int x1, int y1, int x2, int y2,... ) plots the outline of a ...

  • Page 69: Kp_Op71.Lib

    Op7100 software s 69 • void glxputbitmap( int x, int y, int bmwidth, int bmheight, unsigned long bmptr ) displays a bitmap stored in xmem on the lcd. For bitmaps stored in root memory, use glputbitmap . Parameters: x is the x coordinate of the bitmap left edge. Y is the y coordinate of the bitmap to...

  • Page 70

    Op7100 70 s software • int kpdefstchgfn( char *curstate, char *changed ) this is the default state change function for the default get key function kpdefgetkey . This function is called back by kpscanstate when there is a change in the keypad state. If the current key is not read by kpdefgetkey , th...

  • Page 71: Sys.Lib

    Op7100 software s 71 sys.Lib • int syschk2ndflash( struct _flashinfo *pinfo ) checks for the existence and configuration of the second flash eprom mapped to memory space. Parameter: pinfo is a pointer to struct _flashinfo , which stores the configuration of the flash. Return value: 0 is returned if ...

  • Page 72

    Op7100 72 s software.

  • Page 73: Raphics

    Op7100 graphics programming s 73 c hapter 5: g raphics p rogramming chapter 5 provides helpful guidelines for drawing graphics on the op7100..

  • Page 74: Initialization

    Op7100 74 s graphics programming initialization the op7100, unlike most other z-world controllers, uses the maximum i/o and memory wait states when main() gets control. The wait states can be reduced to improve performance. The following statement sets up the proper wait states for the standard op71...

  • Page 75: Plot A Line

    Op7100 graphics programming s 75 plot a line • void op71plotline(int x1, int y1, int x2, int y2); ( x1 , y1 ) and ( x2 , y2 ) are the endpoints of the line. Plot a circle • void op71plotcircle(int xc, int yc, int rad); ( xc , yc ) is the center of the circle, rad is the radius. Plot a polygon • void...

  • Page 76: Font and Bitmap Conversion

    Op7100 76 s graphics programming font and bitmap conversion customers are encouraged to design their own fonts and bitmaps. These restrictions must be followed. • save bitmaps as windows bitmaps ( .Bmp ), not os/2 bitmaps. • the bitmap can only have two colors. Color 0 is the background, and color 1...

  • Page 77

    Op7100 graphics programming s 77 last character is for code 0xff. Make call to glfontinit(&fi, 6, 8, 32, 127, fontbitmap) to initialize table*/ char fontbitmap[] = { /* char 0x20 of width 6 at 0x5da */ '\x0', '\x0', '\x0', '\x0', '\x0', '\x0', ... '\x0' }; the first task is to rename the array so th...

  • Page 78: Printing Text

    Op7100 78 s graphics programming to initialize a font information structure (of type struct _fontinfo ), you can call op71xfontinit for a font stored in xmem . To display a bitmap, call op71xputbitmap to display a bitmap stored in xmem . Printing text printing text involves setting the font informat...

  • Page 79: Keypad Programming

    Op7100 graphics programming s 79 keypad programming the sample program kpdeflt.C in the dynamic c samples\qvga subdi- rectory demonstrates how to read the keypad. Add the following directives at the top of the program to make it possible to use the keypad routines. #use op71l.Lib (landscape orientat...

  • Page 80

    Op7100 80 s graphics programming.

  • Page 81: Nstallation

    Op7100 installation s 81 c hapter 6: i nstallation chapter 6 provides installation and protective grounding guidelines for the op7100..

  • Page 82: Grounding

    Op7100 82 s installation grounding many of the op7100 ics are sensitive to static. Use extra caution when handling units in high-static areas. To meet electromagnetic compatibility requirements, and in particular to prevent misoperation or damage from electrostatic discharges, the bezel must be conn...

  • Page 83: Installation Guidelines

    Op7100 installation s 83 fd jp5 1 2 0 v/gnd fgnd jp5 1 2 0 v/gnd fgnd bezel/casing to power supply gnd bezel/casing to external ground external ground external ground jp4 jp5 jp3 figure 6-1 shows the location of header jp5. Figure 6-1. Location of header jp5 installation guidelines when possible, fo...

  • Page 84: Mounting

    Op7100 84 s installation mounting a bezel and a gasket are included with the op7100. When properly mount- ed in a panel, the bezel of the op7100 is designed to meet nema 4 speci- fications for water resistance. Since the op7100 employs an lcd display, the viewing angle must be considered when mounti...

  • Page 85

    Op7100 installation s 85 3. Fasten the unit with the eight 4-40 hex nuts that were removed in step 2. Carefully tighten the nuts equally until the gasket is compressed to approximately 75% of its uncompressed thickness of 0.125" (3.2 mm). Do not tighten each nut fully before moving on to the next nu...

  • Page 86

    Op7100 86 s installation.

  • Page 87: Roubleshooting

    Op7100 troubleshooting s 87 a ppendix a: t roubleshooting appendix a provides procedures for troubleshooting system hardware and software. The sections include the following topics. • out of the box • dynamic c will not start • dynamic c loses serial link • op7100 repeatedly resets • common programm...

  • Page 88: Out of The Box

    Op7100 88 s troubleshooting out of the box check the items mentioned in this section before starting development. • verify that the op7100 runs in standalone mode before connecting any devices. • verify that the entire host system has good, low-impedance, separate grounds for analog and digital sign...

  • Page 89: Dynamic C Will Not Start

    Op7100 troubleshooting s 89 dynamic c will not start in most situations, when dynamic c will not start, an error message announcing a communication failure will be displayed. The following list describes situations causing an error message and possible resolutions. • wrong communication mode — both ...

  • Page 90: Common Programming Errors

    Op7100 90 s troubleshooting common programming errors • values for constants or variables out of range. Table a-1 lists accept- able ranges for variables and constants. • mismatched “types.” for example, the literal constant 3293 is of type int (16-bit integer). However, the literal constant 3293.0 ...

  • Page 91: Pecifications

    Op7100 specifications s 91 a ppendix b: s pecifications appendix b provides comprehensive physical, electronic, and environ- mental specifications for the op7100..

  • Page 92: Lcd Dimensions

    Op7100 92 s specifications electrical and mechanical specifications lcd dimensions figure b-1. Op7100 lcd dimensions bezel dimensions figure b-2. Op7100 bezel dimensions 0.250 (6.4) 0.712 (18 .1) 0.909 (23. 1) 1.500 (38. 1) 0.13 (3.2) lcd aperture is 122 x 92 mm pixel matrix (320 x 240) is 115.17 x ...

  • Page 93: General Specifications

    Op7100 specifications s 93 general specifications table b-1 presents the physical, electronic and environmental specifications. Table b-1. Op7100 general specifications parameter specification module size 6.63" × 4.40" × 1.36" (168 mm × 112 mm × 35 mm) bezel size 8.00" × 5.4" × 0.156" (203 mm × 137 ...

  • Page 94

    Op7100 94 s specifications header and jumper configurations figure b-3 shows the locations of the configurable headers on the op7100. Table b-2 lists the headers that carry signals. Table b-2. Op7100 signal headers header description j1 lcd (hard-wired) j2 backlight j3 lcd (ribbon cable) j4 programm...

  • Page 95

    Op7100 specifications s 95 table b-3 lists the jumper configurations. Fd fd table b-3. Op7100 jumper settings header pins connected function factory default 1–2 5–6 7–8 11–12 positive lcd background (blue characters on white background) jp1 1–3 4–6 7–9 10–12 negative lcd background (white characters...

  • Page 96

    Op7100 96 s specifications.

  • Page 97: Emory

    Op7100 memory, i/o map, and interrupt vectors s 97 a ppendix c: m emory , i/o m ap , and i nterrupt v ectors appendix c provides detailed information on memory and an i/o map. The interrupt vectors are also listed..

  • Page 98: Op7100 Memory

    Op7100 98 s memory, i/o map, and interrupt vectors op7100 memory figure c-1 shows the memory map of the 1m address space. Figure c-1. Memory map of 1m address space figure c-2 shows the memory map within the 64k virtual space. Figure c-2. Memory map of 64k virtual space the various registers in the ...

  • Page 99: Execution Timing

    Op7100 memory, i/o map, and interrupt vectors s 99 table c-1. Cm7000 execution times for dynamic c operation execution time (µs) dma copy (per byte) 0.73 integer assignment ( i=j; ) 3.4 integer add ( j+k ;) 4.4 integer multiply ( j*k; ) 18 integer divide ( j/k; ) 90 floating add ( p+q; ) (typical) 8...

  • Page 100: Memory Map

    Op7100 100 s memory, i/o map, and interrupt vectors table c-2. Z180 internal i/o registers addresses 0x00–0x3f address name description 0x00 cntla0 serial channel 0, control register a 0x01 cntla1 serial channel 1, control register a 0x02 cntlb0 serial channel 0, control register b 0x03 cntlb1 seria...

  • Page 101

    Op7100 memory, i/o map, and interrupt vectors s 101 table c-2. Z180 internal i/o registers addresses 0x00–0x3f (concluded) address name description 0x18 frc free-running counter 0x19–0x1f — reserved 0x20 sar0l dma source address channel 0, least 0x21 sar0h dma source address channel 0, most 0x22 sar...

  • Page 102

    Op7100 102 s memory, i/o map, and interrupt vectors table c-3. Epson 72423 timer registers 0x4180–0x418f address name data bits description 0x4180 sec1 d7–d0 seconds 0x4181 sec10 d7–d0 10 seconds 0x4182 min1 d7–d0 minutes 0x4183 min10 d7–d0 10 minutes 0x4184 hour1 d7–d0 hours 0x4185 hour10 d7–d0 10 ...

  • Page 103: Other Registers

    Op7100 memory, i/o map, and interrupt vectors s 103 table c-4. Other i/o addresses address name data bits description 4000–403f cs1 chip select 1 4040–407f cs2 chip select 2 4080–40bf cs3 chip select 3 40c0–40ff cs4 chip select 4 4100–413f column chip select 5 4140–417f i/o chip select 6 41c0–41ff w...

  • Page 104: Interrupt Vectors

    Op7100 104 s memory, i/o map, and interrupt vectors table c-5. Interrupt vectors for z180 internal devices address name description — nmi_vec used for power-failure detection — int0 available for use. 0x00 int1_vec available for use as expansion bus attention int1 vector 0x02 int2_vec reserved for d...

  • Page 105: Nonmaskable Interrupts

    Op7100 memory, i/o map, and interrupt vectors s 105 nonmaskable interrupts the /nmi line normally connects to the power-failure output of the adm691 supervisor. A nonmaskable interrupt (nmi) occurs when pfi falls to 1.25 v ± 0.05 v. This advanced warning allows the program to perform some emergency ...

  • Page 106: Interrupt Priorities

    Op7100 106 s memory, i/o map, and interrupt vectors table c-6. Interrupt priorities interrupt priorities (highest priority) trap (illegal instruction) nmi (nonmaskable interrupt) int 0 (maskable interrupts, level 0; three modes) int 1 (maskable interrupts, level 1; plcbus attention line interrupt) i...

  • Page 107: Erial

    Op7100 serial interface board 2 s 107 a ppendix d: s erial i nterface b oard appendix d provides technical details and baud rate configuration data for z-world’s serial interface board (sib)..

  • Page 108: Introduction

    108 s serial interface board 2 op7100 introduction the sib is an interface adapter used to program the op7100. The sib is contained in an abs plastic enclosure, making it rugged and reliable. The sib enables the op7100 to communicate with dynamic c via the z180’s clocked serial i/o (csi/o) port, fre...

  • Page 109: External Dimensions

    Op7100 serial interface board 2 s 109 top view side view 2.25 (57.2) 12.0 (305) 3.60 (91.4) 0.8 (20) 1.525 (38.7) 1.625 (41.3) figure d-1. Sib external dimensions external dimensions figure d-1 illustrates the external dimensions for the sib..

  • Page 110

    110 s serial interface board 2 op7100

  • Page 111: Ackup

    Op7100 backup battery s 111 a ppendix e: b ackup b attery.

  • Page 112

    Op7100 112 s backup battery battery life and storage conditions the battery on the op7100 will provide approximately 9,000 hours of backup time for the onboard real-time clock and static ram. However, backup time longevity is affected by many factors including the amount of time the op7100 is unpowe...

  • Page 113: Battery Cautions

    Op7100 backup battery s 113 battery cautions w caution (english) there is a danger of explosion if battery is incorrectly replaced. Replace only with the same or equivalent type recommended by the manufacturer. Dispose of used batteries according to the manufacturer’s instructions. W warnung (german...

  • Page 114

    Op7100 114 s backup battery.

  • Page 115: Ndex

    Op7100 index s 115 i ndex symbols #int_vec ................................ 104 #jump_vec .............................. 105 #use directive ........................... 52 /cs1 /cs6 ............................... 103 /cts ............................. 43, 44, 48 /cts/ps ................................

  • Page 116

    Op7100 116 s index common problems programming errors ............... 90 communication dynamic c ........................... 105 rs-232 ............... 13, 35, 37–39 rs-485 ..................... 13, 35, 39 serial ................. 13, 35, 37–39, 41–43, 44, 46, 47, 49, 100 interrupts ...................

  • Page 117

    Op7100 index s 117 h handshaking rs-232 ................................... 37 hayes smart modem ................. 38 headers ....................................... 94 j1 ........................................... 94 j10 ......................................... 94 j11................................

  • Page 118

    Op7100 118 s index lcd controller ........................... 24 libraries ...................................... 52 literal (c term) use .......................................... 90 lithium battery .......................... 112 m memory ............................... 12, 13 application program ....

  • Page 119

    Op7100 index s 119 programming directly through serial port 0 . 20 r ram battery-backed ....................... 13 static ......................... 26, 29, 30 rdr ........................................... 45 rdrf ........................... 43, 45, 47 re ..............................................

  • Page 120

    Op7100 120 s index software (continued) glcd.Lib glfillcircle ................. 67 glfillpolygon ............... 68 glfillvpolygon ............. 68 glfontinit ..................... 65 glinit .............................. 67 glplotcircle ................. 67 glplotdot ........................ 67 glp...

  • Page 121

    Op7100 index s 121 software (continued) read/write flash eprom. 55, 71 writeflash ..................... 55 real-time clock ....................... 54 sys.Lib syschk2ndflash ............. 71 sysroot2fxmem ............... 71 time/date clock tm_rd ................................ 54 tm_wr ................

  • Page 122

    Op7100 122 s index.