OP7100
Serial Graphic Display
User’s Manual
019–0065 • 070831–O
OP7100 User’s Manual
Part Number 019-0065 • 070831-O • Printed in U.S.A.
© 1999–2007 Rabbit Semiconductor Inc. • All rights reserved.
Rabbit Semiconductor reserves the right to make changes and
improvements to its products without providing notice.
No part of the contents of this manual may be reproduced or transmitted in any form or by any
means without the express written permission of Rabbit Semiconductor.
Permission is granted to make one or more copies as long as the copyright page contained
therein is included. These copies of the manuals may not be let or sold for any reason without
the express written permission of Rabbit Semiconductor.
Trademarks
•
Dynamic C
®
is a registered trademark of Rabbit Semiconductor Inc.
•
Windows
®
is a registered trademark of Microsoft Corporation
•
PLCBus
™
is a trademark of Rabbit Semiconductor Inc.
The latest revision of this manual is available on the Rabbit Semiconductor Web site,
www.rabbit.com,
for free, unregistered download.
Rabbit Semiconductor Inc.
www.rabbit.com
T
ABLE OF
C
ONTENTS
About This Manual
Chapter 1: Overview
vii
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
LCD Controller Chip ...................................................................... 32
Keypad Interface .................................................................................. 34
OP7100
Table of Contents
iii
Digital I/O ............................................................................................ 35
Serial Communication .......................................................................... 36
RS-232 Communication .................................................................. 38
Receive and Transmit Buffers ....................................................... 38
CTS/RTS Control ......................................................................... 39
Modem Communication ............................................................... 39
RS-485 Communication .................................................................. 40
Developing an RS-485 Network ................................................... 40
Use of the Serial Ports ..................................................................... 42
Z180 Serial Ports .......................................................................... 43
Asynchronous Serial Communication Interface ................................... 45
ASCI Status Registers ..................................................................... 45
/DCD0 (Data Carrier Detect) ........................................................ 45
TIE (Transmitter Interrupt Enable) ............................................... 45
TDRE (Transmitter Data Register Empty) ................................... 45
CTS1E (CTS Enable, Channel 1) ................................................. 46
RIE (Receiver Interrupt Enable) ................................................... 46
FE (Framing Error) ....................................................................... 46
PE (Parity Error) ........................................................................... 46
OVRN (Overrun Error) ................................................................ 46
RDRF (Receiver Data Register Full) ............................................ 46
ASCI Control Register A ................................................................ 47
MOD0–MOD2 (Data Format Mode Bits) .................................... 47
MPBR/EFR (Multiprocessor Bit Receive/Error Flag Reset) ........ 47
/RTS0 (Request to Send, Channel 0) ............................................ 47
CKA1D (CKA1 Disable) .............................................................. 47
TE (Transmitter Enable) ............................................................... 47
RE (Receiver Enable) ................................................................... 48
MPE (Multiprocessor Enable) ...................................................... 48
ASCI Control Register B ................................................................ 48
SS (Source/Speed Select) ............................................................. 48
DR (Divide Ratio) ........................................................................ 49
PEO (Parity Even/Odd) ................................................................ 49
/CTS/PS (Clear to Send/Prescaler) ............................................... 49
MP (Multiprocessor Mode) .......................................................... 49
MPBT (Multiprocessor Bit Transmit) .......................................... 49
Chapter 4: Software
51
Supplied Software ................................................................................ 52
Digital I/O ............................................................................................ 53
Real-Time Clock (RTC) ....................................................................... 54
Display ................................................................................................. 55
Flash EPROM ................................................................................. 55
iv
Table of Contents
OP7100
Dynamic C 32 Libraries ....................................................................... 56
OP71HW.LIB .................................................................................. 56
Keypad Programming ..................................................................... 65
Using Dynamic C v. 5.xx ..................................................................... 66
EZIOOP71.LIB ............................................................................... 66
GLCD.LIB ...................................................................................... 66
KP_OP71.LIB ................................................................................. 70
SYS.LIB .......................................................................................... 72
Upgrading Dynamic C ......................................................................... 73
New LCD Controller Chip .............................................................. 73
Chapter 5: Graphics Programming
75
Initialization ......................................................................................... 76
Drawing Primitives .............................................................................. 76
Plot a Pixel ...................................................................................... 76
Plot a Line ....................................................................................... 77
Plot a Circle .................................................................................... 77
Plot a Polygon ................................................................................. 77
Fill a Circle ..................................................................................... 77
Fill a Polygon .................................................................................. 77
Draw a Bitmap ................................................................................ 77
Font and Bitmap Conversion ............................................................... 78
Using the Font/Bitmap In Your Program ........................................ 79
Printing Text ......................................................................................... 80
Keypad Programming .......................................................................... 81
Initialization .................................................................................... 81
Scanning the Keypad ....................................................................... 81
Reading Keypad Activities .............................................................. 81
Chapter 6: Installation
83
Grounding ............................................................................................ 84
Installation Guidelines ......................................................................... 85
Mounting .............................................................................................. 86
Bezel-Mount Installation ................................................................. 86
General Mounting Recommendations ............................................. 87
Appendix A: Troubleshooting
89
Out of the Box ...................................................................................... 90
Dynamic C Will Not Start .................................................................... 91
Dynamic C Loses Serial Link .............................................................. 91
OP7100 Repeatedly Resets .................................................................. 91
Common Programming Errors ............................................................. 92
OP7100
Table of Contents
v