OP7100Serial Graphic DisplayUser’s Manual019–0065 • 070831–O
OP7100x About This Manual
OP7100100 Memory, I/O Map, and Interrupt VectorsOP7100 MemoryFigure C-1 shows the memory map of the 1M address space.Figure C-1. Memory Map of
OP7100 Memory, I/O Map, and Interrupt Vectors 101Table C-1. CM7000 Execution Times for Dynamic COperationExecution Time(µs)DMA copy (per byte
OP7100102 Memory, I/O Map, and Interrupt VectorsTable C-2. Z180 Internal I/O Registers Addresses 0x00–0x3FAddress Name Description0x00 CNTLA0 S
OP7100 Memory, I/O Map, and Interrupt Vectors 103Table C-2. Z180 Internal I/O Registers Addresses 0x00–0x3F (concluded)Address Name Descripti
OP7100104 Memory, I/O Map, and Interrupt VectorsTable C-3. Epson 72423 Timer Registers 0x4180–0x418FAddress Name Data Bits Description0x4180 SE
OP7100 Memory, I/O Map, and Interrupt Vectors 105Other RegistersTable C-4 lists the other registers.Table C-4. Other I/O Addresses Address N
OP7100106 Memory, I/O Map, and Interrupt VectorsTable C-5. Interrupt Vectors for Z180 Internal Devices Address Name Description — INT0 Avai
OP7100 Memory, I/O Map, and Interrupt Vectors 107Power-Failure InterruptsThe INT1 line is connected to the power-failure output of the ADM691s
OP7100108 Memory, I/O Map, and Interrupt Vectors
OP7100 Serial Interface Board 2 109APPENDIX D:SERIAL INTERFACE BOARDAppendix D provides technical details and baud rate configuration data forR
OP7100 Overview 11CHAPTER 1: OVERVIEWChapter 1 provides an overview and a brief description of the OP7100features.
110 Serial Interface Board 2 OP7100IntroductionThe SIB is an interface adapter used to program the OP7100. The SIB iscontained in an ABS plastic
OP7100 Serial Interface Board 2 111Top ViewSide View2.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 Dimensi
112 Serial Interface Board 2 OP7100
OP7100 Backup Battery 113APPENDIX E: BACKUP BATTERY
OP7100114 Backup BatteryBattery Life and Storage ConditionsThe battery on the OP7100 will provide approximately 9,000 hours ofbackup time for th
OP7100 Backup Battery 115Battery Cautions Caution (English)There is a danger of explosion if battery is incorrectly replaced.Replace only wit
OP7100116 Backup Battery
OP7100 Index 117INDEXSymbols#INT_VEC ... 106#use directive ... 52/CS1–/CS6 ...
OP7100118 Indexcommon problemsprogramming errors ... 92communicationRS-232 ... 13, 36, 38–40RS-485 ...
OP7100 Index 119HhandshakingRS-232 ... 38Hayes Smart Modem ... 39headers ...
OP710012 OverviewIntroductionThe OP7100 is a serial graphic display in a compact, easy to integratemodule. The OP7100 features an LCD that has a
OP7100120 Indexlibraries ... 52literal (C term)use... 92lithium batter
OP7100 Index 121RDR ... 46RDRF ... 44, 46, 48RE ...
OP7100122 Indexsoftware (continued)KP_OP71.LIBkpDefGetKey... 71, 81kpDefInit ... 71, 81kpDefStChgFn ... 71k
OP7100 Index 123TTDR... 44, 47TDRE ... 44, 45, 47TE ...
OP7100124 Index
OP7100 SchematicsSCHEMATICS090-0071 OP7100 Schematicwww.rabbit.com/documentation/schemat/090-0071.pdfYou may use the URL information provided above
XX0000Schematics
OP7100 Overview 13FeaturesThe OP7100 includes the following features.• 240 × 320 ¼ VGA LCD (with touchscreen on OP7100 only)• jumper-selecta
OP710014 OverviewDevelopment and Evaluation ToolsThe OP7100 is supported by a Tool Kit that include everything you needto start development wit
OP7100 Overview 15CE ComplianceThe OP7100 has been tested and was found to be inconformity with applicable EN immunity and emissionstandards.
OP710016 Overview
OP7100 Getting Started 17CHAPTER 2: GETTING STARTEDChapter 2 provides instructions for connecting the OP7100 to a host PCand running a sample
OP710018 Getting StartedInitial OP7100 SetupParts Required• 24 V unregulated DC power supply capable of delivering up to 1.1 A• Serial cableThe
OP7100 Getting Started 19OP7100 SERIESDISPLAY/CONTROLLERMenuFEATREXITSUPRTDEMOClockEXITBklitCtrstBeepExitDisplay Bitmaps+YrExit+Day+MonHrSec
OP7100 User’s ManualPart Number 019-0065 • 070831-O • Printed in U.S.A.© 1999–2007 Rabbit Semiconductor Inc. • All rights reserved.Rabbit Semiconducto
OP710020 Getting Started54321CONTRASTRS232485+GNDn.c.485GND43219876232_RX1/ CT232_TX1/ RTPWR_DE9TXARXAn.c.GNDn.c.DCIN (1230 VDC)5 CAUTION
OP7100 Getting Started 21MarkedConductorto Pin 1Pin 1J4PRGMPORTFigure 2-4. SIB Programming ConnectionFigure 2-5. Direct Programming Connecti
OP710022 Getting StartedRunning Dynamic CDouble-click the Dynamic C icon to start the software. Note that the PCattempts to communicate with th
OP7100 Hardware 23CHAPTER 3: HARDWAREChapter 3 describes how to use the OP7100. Sections are included todescribe the following features.• Subs
OP710024 HardwareOP7100 Subsystems OverviewThe OP7100 consists of several subsystems, including a computing module,serial communication channels
OP7100 Hardware 25Power ManagementThe OP7100 was designed to operate from a 12 V to 30 V DC source, andconsumes about 4.5 W with the backlight o
OP710026 HardwareADM691 Supervisor ChipA voltage divider consisting of R29 and R30 across the DC input providesa PFI signal to the ADM691 watchd
OP7100 Hardware 27main(){...}...char dummy[24];...#define INT1_BIT 0 ; bit 0#INT_VEC INT1_VEC power_fail_isr#asmpower_fail_isr::ld sp,dummy+24
OP710028 Hardwarewatchdog timer is hitwd. To hold the watchdog timer at bay, make a call tohitwd in a routine that runs periodically at the lowe
OP7100 Hardware 29Figure 3-3. OP7100 Power-Failure Detection CircuitSince R34 >> RN2, the difference between VH and VL, the hysteresisvol
Table of Contents iiiOP7100TABLE OF CONTENTSAbout This Manual viiChapter 1: Overview 11Introduction...
OP710030 HardwareLiquid Crystal Display (LCD)The 240 × 320 ¼ VGA LCD supports both graphics and text. Automaticcontrast control is built in so t
OP7100 Hardware 31Figure 3-6 shows the jumper settings for the contrast control options.Figure 3-6. Contrast Control Jumper ConfigurationsBackg
OP710032 HardwareCoordinate SystemsFigure 3-8 shows the coordinate systems for the touchscreen and the LCD.Figure 3-8. Coordinate Systems(row,
OP7100 Hardware 33J3C104C106C101C95C96R62R61C102JP1Y1C4C7U4R2C51J1LCDU1R1C12R51R52U6U2RT1R33C49J2C1T1Q3DANGER! HIGH VOLTAGEQ2C8C10R56R4Trans-for
OP710034 HardwareKeypad InterfaceThe OP7100 has a touchscreen, which is connected to the circuit board atheader J5. Header J6 is available for a
OP7100 Hardware 35Digital I/OThe OP7100 has eight CMOS/TTL-level digital inputs and eight CMOS/TTL-level digital outputs. The digital inputs are
OP710036 HardwareSerial CommunicationTwo serial channels support asynchronous communication at baud ratesfrom 300 bps to 57,600 bps. Serial comm
OP7100 Hardware 37The jumpers on header JP4 may be reconfigured so that header J11 carriesthe Z180 Port 1 TX1 and RX1 RS-232 signals on pins 2 a
OP710038 Hardware J8GNDCTS/RX1RTS/TX1RX0GNDRTS/TX1CTS/RX1J10TX012345678910246813579RS-232 CommunicationFigure 3-17 shows the RS-232 signals on
OP7100 Hardware 39RXTXGNDRTSCTSDTRRXTXGNDRTSCTSModemSideOP7100SideFigure 3-18. Connections BetweenController and ModemA program sends data by w
iv Table of Contents OP7100Digital I/O ...35Serial Co
OP710040 HardwareRS-485 CommunicationFigure 3-19 shows the RS-485 sig-nals on header J11.Developing an RS-485NetworkThe 2-wire RS-485 serial-com
OP7100 Hardware 41Any Rabbit Semiconductor controller or the OP7100 can be a master or aslave. A network can have up to 255 slaves, but only one
OP710042 HardwareTable 3-2. Z180 Serial Port RegistersAddress Name Description00 CNTLA0 Control Register A, Serial Channel 001 CNTLA1 Control R
OP7100 Hardware 43Z180 Serial PortsThe Z180’s two independent, full-duplex asynchronous serial channelshave a separate baud-rate generator for e
OP710044 HardwareThe serial ports can be polled or interrupt-driven.A polling driver tests the ready flags (TDRE and RDRF) until a readyconditio
OP7100 Hardware 45Asynchronous Serial Communication InterfaceThe Z180 incorporates an asynchronous serial communication interface(ACSI) that sup
OP710046 HardwareCTS1E (CTS Enable, Channel 1)The signals RXS and CTS1 are multiplexed on the same pin. A 1 stored inthis bit makes the pin serv
OP7100 Hardware 47ASCI Control Register AControl Register A affects various aspects of the asynchronous channeloperation.CNTLA0 (00H)76543210MPE
OP710048 HardwareRE (Receiver Enable)This bit controls the receiver: 1 ⇒ enabled, 0 ⇒ disabled. When this bit iscleared, the processor aborts th
OP7100 Hardware 49Prescaler(PS)÷10or÷30ProcessorClockDivider12...64DivideRatio(DR)16or64ExternalClockThe prescaler (PS), the divide ratio (DR),
Table of Contents vOP7100Dynamic C 32 Libraries...56OP71HW.LIB...
OP710050 HardwareTable 3-5. Baud Rates for ASCI Control Register BASCIB ValueBaud Rate at9.216 MHz(bps)Baud Rate at18.432 MHz(bps)ASCIB ValueBa
OP7100 Software 51CHAPTER 4: SOFTWAREChapter 4 describes the Dynamic C functions used with the OP7100.
OP710052 SoftwareSupplied SoftwareSoftware drivers for controlling the OP7100 are provided with Dynamic C.Depending on the version of Dynamic C
OP7100 Software 53Digital I/ONo specific drivers have been written for the OP7100 digital I/O. Theinport and outport functions in the Dynamic
OP710054 SoftwareThe sample program OP71.C below cycles through through the outputswith one bit high at a time while it displays the state of
OP7100 Software 55DisplayFlash EPROMThe WriteFlash function in the Dynamic C DRIVERS.LIB library isused to write data to the program flash EPR
OP710056 SoftwareDynamic C 32 LibrariesWhen you are using Dynamic C 32, you must first #use op71l.lib or#use op71p.lib before the #use op71hw.li
OP7100 Software 57• void op71BrdOff485( void ); Disables the OP7100's RS-485 driver.• void op71BrdOn485( void );Enables the OP7100's
OP710058 Software• void op71Left1( int left, int top, int cols, int rows );Scrolls byte-aligned window left one pixel, right colu
OP7100 Software 59• void op71Down1( int left, int top, int cols, int rows );Scrolls byte-aligned window down one pixel, top col
vi Table of Contents OP7100Appendix B: Specifications 93Electrical and Mechanical Specifications ...
OP710060 Software• void op71XPutBitmap( int left, int top, int width, int height, unsigned long bitmap );Draws bitmap in the specified space. Th
OP7100 Software 61• void op71XGetFastmap( int x, int y, int bmWidth, int bmHeight, unsigned long xBm );Gets a bitmap from the LCD page buff
OP710062 Software• void op71PlotCircle( int xc, int yc, int rad );Draws a circle in the LCD page buffer, and on the LCD if the buffer isunlocked
OP7100 Software 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 i
OP710064 Software• void op71PutFont( int x, int y, struct _fontInfo *pInfo, char code );Puts an entry from the font table to the page buffer,
OP7100 Software 65• void op71Printf( int x, int y, struct _fontInfo*pInfo, char *fmt, ... );Prints a formatted string (much like printf) on th
OP710066 SoftwareUsing Dynamic C v. 5.xxEZIOOP71.LIB• void op71BackLight( int onOff )Turns the backlight of the OP7100 on or off.PARAMETER: onO
OP7100 Software 67• glXFontInit( struct _fontInfo *pInfo,char pixWidth, char pixHeight,unsigned startChar, unsigned endChar,unsigned long xmem
OP710068 Software• int glInit()Initializes the LCD module (software and hardware).RETURN VALUE: the status of the LCD. If the initialization wa
OP7100 Software 69• void glPlotVPolygon( int n, int *pFirstCoord )Plots a filled-in polygon.PARAMETERS: n is the number of vertices.*pFirstCo
OP7100 About This Manual viiABOUT THIS MANUALThis manual provides instructions for installing, testing, configuring, andinterconnecting the Rabb
OP710070 Software• void glXPutBitmap( int x, int y, int bmWidth,int bmHeight, unsigned long bmPtr )Displays a bitmap stored in xmem on the LCD.
OP7100 Software 71• int kpDefStChgFn( char *curState, char *changed )This is the default state change function for the default get key functio
OP710072 SoftwareSYS.LIB• int sysChk2ndFlash( struct _flashInfo *pInfo )Checks for the existence and configuration of the second flash EPROMmapp
OP7100 Software 73Upgrading Dynamic CDynamic C patches that focus on bug fixes are available from time to time.Check the Web site• www.rabbit.
OP710074 Software
OP7100 Graphics Programming 75CHAPTER 5: GRAPHICS PROGRAMMINGChapter 5 provides helpful guidelines for drawing graphics on the OP7100.
OP710076 Graphics ProgrammingInitializationThe OP7100, unlike most other Rabbit Semiconductor controllers, uses themaximum I/O and memory wait s
OP7100 Graphics Programming 77Plot a Line• void op71PlotLine(int x1, int y1, int x2, int y2);(x1,y1) and (x2,y2) are the endpoints of the line
OP710078 Graphics ProgrammingFont and Bitmap ConversionCustomers are encouraged to design their own fonts and bitmaps. Theserestrictions must b
OP7100 Graphics Programming 79last character is for code 0xff.make call to glFontInit(&fi, 6, 8, 32, 127, fontBitMap)to initialize table*/
OP7100viii About This ManualAcronymsTable 1 lists and defines the acronyms that may be used in this manual.IconsTable 2 displays and defines ico
OP710080 Graphics ProgrammingTo initialize a font information structure (of type struct _fontInfo),you can call op71XFontInit for a font stored
OP7100 Graphics Programming 81Keypad ProgrammingThe sample program KPDEFLT.C in the Dynamic C SAMPLES\QVGA subdi-rectory demonstrates how to r
OP710082 Graphics Programming
OP7100 Installation 83CHAPTER 6: INSTALLATIONChapter 6 provides installation and protective grounding guidelines for theOP7100.
OP710084 InstallationGroundingMany of the OP7100 ICs are sensitive to static. Use extracaution when handling units in high-static areas.To meet
OP7100 Installation 85FD JP5120 V/GNDFGND JP5120 V/GNDFGNDBezel/Casing to Power Supply GNDBezel/Casing to External GroundExternalGroundExt
OP710086 InstallationMountingA bezel and a gasket are included with the OP7100. When properly mount-ed in a panel, the bezel of the OP7100 is de
OP7100 Installation 873. Fasten the unit with the eight 4-40 hex nuts that were removed in Step 2.Carefully tighten the nuts equally until the
OP710088 Installation
OP7100 Troubleshooting 89APPENDIX A: TROUBLESHOOTINGAppendix A provides procedures for troubleshooting system hardware andsoftware. The sect
OP7100 About This Manual ixConventionsTable 3 lists and defines the typographical conventions that may be used inthis manual.Pin Number 1A black
OP710090 TroubleshootingOut of the BoxCheck the items mentioned in this section before starting development.• Verify that the OP7100 runs in sta
OP7100 Troubleshooting 91Dynamic C Will Not StartIn most situations, when Dynamic C will not start, an error messageannouncing a communication
OP710092 TroubleshootingCommon Programming Errors• Values for constants or variables out of range. Table A-1 lists accept-able ranges for varia
OP7100 Specifications 93APPENDIX B: SPECIFICATIONSAppendix B provides comprehensive physical, electronic, and environ-mental specifications f
OP710094 SpecificationsElectrical and Mechanical SpecificationsLCD DimensionsFigure B-1. OP7100 LCD DimensionsBezel DimensionsFigure B-2. OP71
OP7100 Specifications 95General SpecificationsTable B-1 presents the physical, electronic and environmental specifications.Table B-1. OP7100
OP710096 SpecificationsHeader and Jumper ConfigurationsFigure B-3 shows the locations of the configurable headers on the OP7100.Table B-2 lists
OP7100 Specifications 97Table B-3 lists the jumper configurations.FDFDTable B-3. OP7100 Jumper SettingsHeaderPinsConnectedFunctionFactoryDefa
OP710098 Specifications
OP7100 Memory, I/O Map, and Interrupt Vectors 99APPENDIX C: MEMORY,I/O MAP, AND INTERRUPT VECTORSAppendix C provides detailed information on
Comments to this Manuals