Specifications are based on characterization of tested sample units rather than testing over temperature and voltage of each unit. Z-World may qualify components to operate within a range of parameters that is different from the manufacturers recommended range.
Page 3
ABLE OF ONTENTS About This Manual Chapter 1: Overview Chapter 2: Getting Started Chapter 3: Hardware OP7100 Table of Contents s iii...
Page 4
Chapter 4: Software iv s Table of Contents OP7100...
Page 5
Chapter 5: Graphics Programming Chapter 6: Installation Appendix A: Troubleshooting OP7100 Table of Contents s v...
Page 6
Appendix B: Specifications Appendix C: Memory, I/O Map, and Interrupt Vectors Appendix D: Serial Interface Board Appendix E: Backup Battery Index vi s Table of Contents OP7100...
Page 7
BOUT ANUAL Assumptions The C Programming Language C: A Reference Manual Z180 MPU User's Manual Z180 Serial Communication Controllers Z80 Microprocessor Family User's Manual OP7100 About This Manual s vii...
Page 8
Real-Time Clock Serial Interface Board SRAM Static Random Access Memory UART Universal Asynchronous Receiver Transmitter Icons Table 2. Icons Icon Meaning Icon Meaning Note Refer to or see Please contact Caution High Voltage Factory Default viii s About This Manual OP7100...
< > Angle brackets occasionally enclose classes of terms. a | b | c A vertical bar indicates that a choice should be made from among the items listed. Pin Number 1 Pin 1 Measurements OP7100 About This Manual s ix...
Page 12
Trans- former Contrast Adjustment DANGER! HIGH VOLTAGE RS485 TERM. R24 R25 EPLD SRAM RS-232 C40 C41 Flash Flash Control RS232 Z180 DCIN Power, 485+ RS-485 485 R51R52 PRGM PORT DIGITAL I/O Figure 1-1. OP7100 Board Layout 12 s Overview OP7100...
Page 13
Features Options Table 1-1. OP7100 Series Features Model Features Serial graphic display, touchscreen, blue and white screen, OP7100 ¼VGA LCD with bezel mount, software contrast control OP7110 OP7100 with no touchscreen, manual contrast control OP7100 Overview s 13...
Development and Evaluation Tools Software 14 s Overview OP7100...
Page 15
Additional shielding or filtering may be required for a heavy industrial environment. The OP7100 has been tested to meet the EN55022 Class A emissions standard with ferrite RFI suppressors on the I/O cables. Additional shielding or filtering may be needed to meet Class B emissions standards.
Initial OP7100 Setup Parts Required Setting Up the OP7100 DCIN (1230 VDC) DCIN 485 + to power 485 supply 485+ 485 Figure 2-1. OP7100 Power Supply Connections wrong 18 s Getting Started OP7100...
Page 19
SUPPORT Figure 2-2. OP7100 Demo Screens OP7100 Getting Started s 19...
Connecting the OP7100 to a Host PC CAUTION: High-Voltage Transformer. Only qualified persons may open this case. CONTRAST RS232 n.c. n.c. 232_RX1/ CT 232_TX1/ RT n.c. PWR_DE9 DCIN (1230 VDC) 485 + 485 S/N: Figure 2-3. OP7100 Back Cover Option 1...
Page 21
Pin 1 PRGM PORT Marked Conductor to Pin 1 Figure 2-4. SIB Programming Connection To PC J4 SIB2 Figure 2-5. Direct Programming Connection OP7100 Getting Started s 21...
Running Dynamic C Serial Options OPTIONS OPTIONS Target Not Responding Communication Error <Ctrl Y> DEFDEMOL.C SAMPLES\QVGA 22 s Getting Started OP7100...
Sw Reg 2951 Lin Power J11:5 1230 V DC 7662 7662 Sw Reg Sw Reg 300 V rms, 32.7 kHz, Backlight to CCFL backlight Power from EPLD Figure 3-2. Block Diagram of OP7100 Internal Power Regulators OP7100 Hardware s 25...
ADM691 Supervisor Chip Handling Power Fluctuations NMI. 1.3 V 26 s Hardware OP7100...
Page 27
NMI_BIT, a ; check for status of /PFO z,loop ; wait until the brownout ; clears timeout: ; then...a tight loop to ; force a watchdog timeout, timeout ; resetting the Z180 #endasm hitwd Watchdog Timer OP7100 Hardware s 27...
Page 28
) wd _ cleanup(); hitwd(); Power Shutdown and Reset /RESET PFI Early Warning /NMI /RESET 28 s Hardware OP7100...
TX1/RTS RTS0 to J10 (DE9) T2IN T2OUT RXA0 RXA0 and J8 R1OUT R1IN RX1/CTS CTS0 R2OUT R2IN 232A Figure 3-13. Serial Channels 5-wire RS-232, 3-wire RS-232, RS-485 3-wire RS-232 RS-485 Figure 3-14. Serial Communication Jumper Configurations OP7100 Hardware s 35...
Page 36
RS-485 on RS-232 on header J11 header J11 Figure 3-15. Serial Communication Options for External Plug Connector (Header J11) 36 s Hardware OP7100...
Page 37
RS-232 Communication Figure 3-16. RS-232 Signals Receive and Transmit Buffers OP7100 Hardware s 37...
Status Register, Serial Channel 0 STAT1 Status Register, Serial Channel 1 TDR0 Transmit Data Register, Serial Channel 0 TDR1 Transmit Data Register, Serial Channel 1 RDR0 Receive Data Register, Serial Channel 0 RDR1 Receive Data Register, Serial Channel 1 OP7100 Hardware s 41...
Page 42
Z180 Serial Ports Z180 Z180 /RTS /DCD Microprocessor Internal Bus RDR0 TDR0 RXA0 RSR0 TSR0 TXA0 Shift Register In Shift Register Out /RTS0 CKA0 CNTLA0 Baud-Rate /CTS0 Generator CNTLB0 /DCD0 STAT0 Figure 3-21. Z180 Serial Channel 0 42 s Hardware OP7100...
Page 43
/CTS /CTS /CTS interrupt-driven /DCD0 /DCD0 Table 3-3. Serial Port Interrupt Vectors Address Name Description Z180 Serial Port 0 (higher priority) SER0_VEC Z180 Serial Port 1 SER1_VEC OP7100 Hardware s 43...
/DCD0 TDRE R / W R / W (05H) STAT1 RDRF OVRN CTS1E TDRE R / W R / W /DCD0 (Data Carrier Detect) /DCD0 /DCD0 TIE (Transmitter Interrupt Enable) TDRE (Transmitter Data Register Empty) /CTS 44 s Hardware OP7100...
Page 45
CTS1E (CTS Enable, Channel 1) RIE (Receiver Interrupt Enable) /DCD0 FE (Framing Error) PE (Parity Error) OVRN (Overrun Error) RDRF (Receiver Data Register Full) /DCD0 OP7100 Hardware s 45...
R / W MOD0MOD2 (Data Format Mode Bits) Þ Þ Þ Þ Þ Þ MPBR/EFR (Multiprocessor Bit Receive/Error Flag Reset) /RTS0 (Request to Send, Channel 0) CKA1D (CKA1 Disable) Þ Þ TE (Transmitter Enable) Þ Þ 46 s Hardware OP7100...
SS (Source/Speed Select) Table 3-4. Baud Rate Divide Ratios for Source/Speed Select Bits Divide Ratio ÷ 1 ÷ 2 ÷ 4 ÷ 8 ÷ 16 ÷ 32 ÷ 64 external clock* May not exceed system clock ÷ 40 OP7100 Hardware s 47...
Page 48
Divide Processor Ratio External ÷10 Clock Clock ÷30 Figure 3-22. Z180 Baud-Rate Generator DR (Divide Ratio) PEO (Parity Even/Odd) Þ Þ /CTS/PS (Clear to Send/Prescaler) Þ /CTS Þ /CTS MP (Multiprocessor Mode) MPBT (Multiprocessor Bit Transmit) 48 s Hardware OP7100...
Page 49
03 or 09 7200 14,400 23 or 29 2400 4800 04 or 0A 3600 7200 24 or 2A 1200 2400 05 or 0B 1800 3600 25 or 2B 1200 06 or 0C 1800 26 or 2C OP7100 Hardware s 49...
Supplied Software OP71L.LIB OP71P.LIB EZIOOP71.LIB OP71L.LIB OP71P.LIB Table 4-1. OP7100 Software Libraries Library Application AASCZ0.LIB Serial communication applications Z180 Serial Port 0 AASCZ1.LIB Serial communication applications Z180 Serial Port 1 BIOS.LIB BIOS routines DRIVERS.LIB General drivers OP71L.LIB Select one of these DC 32 libraries to #use first, OP71P.LIB...
Page 56
void op71Init( void ); void op71BackLight( int isOn ); isOn void op71Power( int isOn ); isOn void op71SetContrast( unsigned level ); level void op71BlankScreen( void ); void op71FillScreen( char pattern ); 56 s Software OP7100...
Page 57
void op71BuffUnlock( void ); void op71SetBrushType( int type ); type GL _ SET OP71BLACK GL _ CLEAR OP71WHITE GL _ XOR OP71XOR oldPixel xor newPixel GL _ BLOCK OP71BLACK int op71GetBrushType( void ); OP7100 Software s 57...
Page 58
void op71Right1( int left, int top, int cols, int rows ); left cols rows void op71Up1( int left, int top, int cols, int rows ); left cols rows op71Left1 op71Right1 op71Up1 op71Down1 58 s Software OP7100...
Page 59
void op71HScroll( int left, int top, int cols, int rows, int nPix ); left cols rows nPix void op71VScroll( int left, int top, int cols, int rows, int nPix ); left cols rows nPix OP7100 Software s 59...
Page 60
void op71XPutFastmap( int left, int top, int width, int height, unsigned long bitmap ); xmem op71XPutBitmap left width height bitmap xmem void op71XGetBitmap( int x, int y, int bmWidth, int bmHeight, unsigned long xBm ); xmem op71XGetFastmap bmWidth bmHeight xmem 60 s Software OP7100...
Page 61
void op71PlotDot( int x, int y ); void op71PlotLine( int x0, int y0, int x1, int y1 ); x0 y0 x1 y1 void op71Block( int x, int y, int bmWidth, int bmHeight ); bmWidth bmHeight OP7100 Software s 61...
Page 62
void op71PlotVPolygon( int n, int *pFirstCoord ); pFirstCoord void op71FillVPolygon( int n, int *pFirstCoord ); pFirstCoord void op71PlotPolygon( int n, int x1, int y1, int x2, int y2, ... ); x1 y1 x2 y2 62 s Software OP7100...
Page 63
unsigned long op71FontChar( unsigned long font, char letter ); font xmem letter xmem void op71PutFont( int x, int y, struct _fontInfo *pInfo, char code ); pInfo code OP7100 Software s 63...
Page 64
void op71SetPfStep( int stepX, int stepY ); op71Printf op71GetPfStep stepX op71Printf stepY op71Printf void op71Printf( int x, int y, struct _ fontInfo *pInfo, char *fmt, ... ); printf op71SetPfStep op71GetPfStep pInfo Keypad Programming KP _ OP71.LIB 64 s Software OP7100...
Page 66
Pixels specified by subsequent gl LCDPix = GL_XOR functions will toggle the LCD pixels LCDPix ^ newPix Pixels specified by subsequent gl functions will be displayed on the LCDPix = newPix GL_BLOCK LCD as is GL _ BLOCK glPlot glFill 66 s Software OP7100...
Page 67
void glPrintf( int x, int y, struct _fontInfo *pInfo, char *fmt,... ) printf *pInfo *fmt void glPlotCircle( int xc, int yc, int rad ) void glFillCircle( int xc, int yc, int rad ) OP7100 Software s 67...
Page 68
void glFillVPolygon( int n, int *pFirstCoord ) *pFirstCoord void glFillPolygon( int n, int x1, int y1, int x2, int y2,... ) void glPutBitmap( int x, int y, int bmWidth, int bmHeight, char *bm ) xmem glXPutBitmap bmWidth bmHeight 68 s Software OP7100...
Page 69
void glXPutBitmap( int x, int y, int bmWidth, int bmHeight, unsigned long bmPtr ) glPutBitmap bmWidth bmHeight bmPtr KP _ OP71.LIB void kpInit( int (*changeFn)() ) kpDefInit changeFn kpScanState kpScanState int kpScanState() kpInit OP7100 Software s 69...
Initialization Drawing Primitives Plot a Pixel int op71PlotDot(int x, int y); 74 s Graphics Programming OP7100...
Page 75
void op71FillCircle(int xc, int yc, int rad); Fill a Polygon void op71FillPolygon(int n, int x1, int y1,...); Draw a Bitmap void op71XPutBitmap( int left, int top, int width, int height, unsigned long bitmap ); OP7100 Graphics Programming s 75...
Dynamic C Will Not Start Wrong Communication Mode Wrong COM Port Wrong Operating Mode Dynamic C Loses Serial Link OP7100 Repeatedly Resets hitwd OP7100 Troubleshooting s 89...
Type Range –32,768 (–2 ) to +32,767 (2 – 1) −2,147,483,648 (−2 long int ) to +2147483647 (2 – 1) float 1.18 × 10 3.40 × 10 char 0 to 255 3293 3293.0 float && & 90 s Troubleshooting OP7100...
Page 91
PECIFICATIONS PPENDIX OP7100 Specifications s 91...
Timer Data Register Channel 1, least 0x15 TMDR1H Timer Data Register Channel 1, most 0x16 RLDR1L Timer Reload Register Channel 1, least 0x17 RLDR1H Timer Reload Register Channel 1, most continued… 100 s Memory, I/O Map, and Interrupt Vectors OP7100...
Page 101
Reserved 0x38 MMU Common Base Register 0x39 MMU Bank Base Register 0x3A CBAR MMU Common/ Bank Area Register 0x3B–0x3D — Reserved 0x3E OMCR Operation Mode Control Register 0x3F I/O Control Register OP7100 Memory, I/O Map, and Interrupt Vectors s 101...
Page 102
10 months 0x418A YEAR1 D7–D0 years 0x418B YEAR10 D7–D0 10 years 0x418C WEEK D7–D0 day of week 0x418D TREGD D7–D0 Register D 0x418E TREGE D7–D0 Register E 0x418F TREGF D7–D0 Register F 102 s Memory, I/O Map, and Interrupt Vectors OP7100...
Available for programming (CM7200), not CSI/O_VEC available for use on CM7100 0x0E Asynchronous Serial Port Channel 0 SER0_VEC 0x10 Asynchronous Serial Port Channel 1 SER1_VEC #INT _ VEC 0x10 myfunction myfunction() interrupt interrupt myfunction() { 104 s Memory, I/O Map, and Interrupt Vectors OP7100...
Page 105
// input voltage is still below the threshold // that triggered the NMI return; // if just a power glitch, return Jump Vectors #JUMP_VEC NMI_VEC name OP7100 Memory, I/O Map, and Interrupt Vectors s 105...
Need help?
Do you have a question about the OP7100 and is the answer not in the manual?
Questions and answers