Z-World OP7100 Manuel utilisateur

OP7100
Serial Graphic Display
Users Manual
0190065 020418J

OP7100 Users Manual
Part Number 019-0065
020418-J Printed in U.S.A.
© 19992002 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
COMPONENTS IN LIFE-SUPPORT DEVICES OR SYSTEMS UNLESS A SPE-
CIFIC WRITTEN AGREEMENT REGARDING SUCH INTENDED USE IS EN-
TERED INTO BETWEEN THE CUSTOMER AND Z-WORLD PRIOR TO USE.
Life-support devices or systems are devices or systems intended for surgical im-
plantation into the body or to sustain life, and whose failure to perform, when
properly used in accordance with instructions for use provided in the labeling and
users manual, can be reasonably expected to result in significant injury.
No complex software or hardware system is perfect. Bugs are always present in a
system of any size. In order to prevent danger to life or property, it is the responsi-
bility of the system designer to incorporate redundant protective mechanisms ap-
propriate to the risk involved.
All Z-World products are 100 percent functionally tested. Additional testing may
include visual quality control inspections or mechanical defects analyzer inspections.
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. This strategy is believed to be more economical and effective. Additional
testing or burn-in of an individual unit is available by special arrangement.
Trademarks
Dynamic C®is a registered trademark of Z-World
Windows® is a registered trademark of Microsoft Corporation
PLCBusis a trademark of Z-World
Z-World, Inc.
2900 Spafford Street
Davis, California 95616-6800
USA
Telephone:
Facsimile:
Web Site:
E-Mail:
(530) 757-3737
(530) 753-5141
http://www.z world.com
zworld@zworld.com

Table of Contents siiiOP7100
TABLE OF CONTENTS
About This Manual vii
Chapter 1: Overview 11
Introduction..........................................................................................12
Features ................................................................................................13
Options ............................................................................................13
Development and Evaluation Tools ..................................................... 14
Software ..........................................................................................14
CE Compliance .................................................................................... 15
Chapter 2: Getting Started 17
Initial OP7100 Setup............................................................................18
Parts Required ................................................................................. 18
Setting Up the OP7100 ...................................................................18
Connecting the OP7100 to a Host PC..................................................20
Running Dynamic C .............................................................................22
Chapter 3: Hardware 23
OP7100 Subsystems Overview ............................................................24
Computing Module .........................................................................24
Power Management .............................................................................25
ADM691 Supervisor Chip .............................................................. 26
Handling Power Fluctuations........................................................26
Watchdog Timer ........................................................................... 27
Power Shutdown and Reset ..........................................................28
PFI Early Warning ..................................................................... 28
Memory Protection ....................................................................... 29
Battery Backup ............................................................................. 29
System Reset ...................................................................................29
Liquid Crystal Display (LCD) .............................................................30
Contrast Adjustment ........................................................................30
Background .....................................................................................31
Coordinate Systems.........................................................................32
Keypad Interface .................................................................................. 33

iv sTable of Contents OP7100
Digital I/O ............................................................................................34
Serial Communication..........................................................................35
RS-232 Communication .................................................................. 37
Receive and Transmit Buffers....................................................... 37
CTS/RTS Control .........................................................................38
Modem Communication ............................................................... 38
RS-485 Communication .................................................................. 39
Developing an RS-485 Network ................................................... 39
Use of the Serial Ports.....................................................................41
Z180 Serial Ports .......................................................................... 42
Asynchronous Serial Communication Interface...................................44
ASCI Status Registers ..................................................................... 44
/DCD0 (Data Carrier Detect)........................................................44
TIE (Transmitter Interrupt Enable) ............................................... 44
TDRE (Transmitter Data Register Empty) ...................................44
CTS1E (CTS Enable, Channel 1) .................................................45
RIE (Receiver Interrupt Enable) ...................................................45
FE (Framing Error) .......................................................................45
PE (Parity Error) ........................................................................... 45
OVRN (Overrun Error) ................................................................45
RDRF (Receiver Data Register Full) ............................................ 45
ASCI Control Register A ................................................................46
MOD0MOD2 (Data Format Mode Bits) .................................... 46
MPBR/EFR (Multiprocessor Bit Receive/Error Flag Reset)........46
/RTS0 (Request to Send, Channel 0) ............................................46
CKA1D (CKA1 Disable)..............................................................46
TE (Transmitter Enable) ............................................................... 46
RE (Receiver Enable) ...................................................................47
MPE (Multiprocessor Enable) ......................................................47
ASCI Control Register B ................................................................ 47
SS (Source/Speed Select) .............................................................47
DR (Divide Ratio) ........................................................................48
PEO (Parity Even/Odd) ................................................................48
/CTS/PS (Clear to Send/Prescaler) ............................................... 48
MP (Multiprocessor Mode) ..........................................................48
MPBT (Multiprocessor Bit Transmit) .......................................... 48
Chapter 4: Software 51
Supplied Software ................................................................................ 52
Digital I/O ............................................................................................53
Real-Time Clock (RTC) ....................................................................... 54
Display .................................................................................................55
Flash EPROM ................................................................................. 55

Table of Contents svOP7100
Dynamic C 32 Libraries .......................................................................56
OP71HW.LIB.................................................................................. 56
Keypad Programming ..................................................................... 64
Using Dynamic C v. 5.xx ..................................................................... 65
EZIOOP71.LIB ...............................................................................65
GLCD.LIB ......................................................................................65
KP_OP71.LIB ................................................................................. 69
SYS.LIB ..........................................................................................71
Chapter 5: Graphics Programming 73
Initialization .........................................................................................74
Drawing Primitives ..............................................................................74
Plot a Pixel ......................................................................................74
Plot a Line .......................................................................................75
Plot a Circle .................................................................................... 75
Plot a Polygon .................................................................................75
Fill a Circle ..................................................................................... 75
Fill a Polygon ..................................................................................75
Draw a Bitmap ................................................................................ 75
Font and Bitmap Conversion ............................................................... 76
Using the Font/Bitmap In Your Program ........................................ 77
Printing Text......................................................................................... 78
Keypad Programming .......................................................................... 79
Initialization ....................................................................................79
Scanning the Keypad.......................................................................79
Reading Keypad Activities .............................................................. 79
Chapter 6: Installation 81
Grounding ............................................................................................82
Installation Guidelines .........................................................................83
Mounting ..............................................................................................84
Bezel-Mount Installation.................................................................84
General Mounting Recommendations ............................................. 85
Appendix A: Troubleshooting 87
Out of the Box......................................................................................88
Dynamic C Will Not Start .................................................................... 89
Dynamic C Loses Serial Link ..............................................................89
OP7100 Repeatedly Resets .................................................................. 89
Common Programming Errors .............................................................90

vi sTable of Contents OP7100
Appendix B: Specifications 91
Electrical and Mechanical Specifications ............................................92
LCD Dimensions .............................................................................92
Bezel Dimensions ........................................................................... 92
General Specifications ....................................................................93
Header and Jumper Configurations ..................................................... 94
Appendix C: Memory, I/O Map, and Interrupt Vectors 97
OP7100 Memory ................................................................................. 98
Execution Timing ............................................................................99
Memory Map .....................................................................................100
Input/Output Select Map ............................................................... 100
Z180 Internal Input/Output Registers Addresses 00-3F ................100
Epson 72423 Timer Registers 0x41800x418F ............................ 102
Other Registers .............................................................................. 103
Interrupt Vectors ................................................................................104
Nonmaskable Interrupts ................................................................105
Jump Vectors .................................................................................105
Interrupt Priorities ......................................................................... 106
Appendix D: Serial Interface Board 107
Introduction........................................................................................108
External Dimensions ..........................................................................109
Appendix E: Backup Battery 111
Battery Life and Storage Conditions .................................................. 112
Replacing the Lithium Battery ........................................................... 112
Battery Cautions ................................................................................ 113
Index 115

OP7100 About This Manual svii
ABOUT THIS MANUAL
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 the user's knowledge and experience in
the following areas.
Ability to design and engineer the target system that interfaces with the
OP7100.
Understanding the basics of operating a software program and editing
files under Windows on a PC.
Knowledge of the basics of C programming.
For a full treatment of C, refer to the following texts.
The C Programming Language by Kernighan and Ritchie
and/or
C: A Reference Manual by Harbison and Steel
Knowledge of basic assembly language and architecture for the Z180
microprocessor.
For documentation from Zilog, refer to the following texts.
Z180 MPU User's Manual
Z180 Serial Communication Controllers
Z80 Microprocessor Family User's Manual
$
$

OP7100viii sAbout 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 Programmable Read-Only Memory
LCD Liquid Crystal Display
LED Light-Emitting Diode
NMI Nonmaskable Interrupt
PIO Parallel Input/Output Circuit
(Individually Programmable Input/Output)
PRT Programmable Reload Timer
RAM Random Access Memory
RTC Real-Time Clock
SIB Serial Interface Board
SRAM Static Random Access Memory
UART Universal Asynchronous Receiver Transmitter
Table 2. Icons
Icon Meaning Icon Meaning
$
Refer to or see
!Note
(
Please contact 7L
S
Tip
Caution
High Voltage
)'
Factory Default

OP7100 About This Manual six
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 parenthesis.
J1
Pin 1
Table 3. Typographical Conventions
Example Description
while Courier font (bold) indicates a program, a fragment of a
program, or a Dynamic C keyword or phrase.
// IN-01… Program comments are written in Courier font, plain face.
Italics Indicates that something should be typed instead of the
italicized words (e.g., in place of filename, type a file’s
name).
Edit Sans serif font (bold) signifies a menu or menu selection.
. . . An ellipsis indicates that (1) irrelevant program text is
omitted for brevity or that (2) preceding program text may
be repeated indefinitely.
[ ] Brackets in a C function’s definition or program segment
indicate that the enclosed directive is optional.
< > 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.

OP7100xsAbout This Manual
Autres manuels pour OP7100
1
Table des matières
Autres manuels Z-World Moniteur


















