Rabbit OP7100 User Manual Page 1

Browse online or download User Manual for TVs & monitors Rabbit OP7100. Rabbit OP7100 User`s manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 126
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - User’s Manual

OP7100Serial Graphic DisplayUser’s Manual019–0065 • 070831–O

Page 2 - Trademarks

OP7100x  About This Manual

Page 3 - TABLE OF CONTENTS

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

Page 4 - Chapter 4: Software 51

OP7100 Memory, I/O Map, and Interrupt Vectors  101Table C-1. CM7000 Execution Times for Dynamic COperationExecution Time(µs)DMA copy (per byte

Page 5 - Chapter 6: Installation 83

OP7100102  Memory, I/O Map, and Interrupt VectorsTable C-2. Z180 Internal I/O Registers Addresses 0x00–0x3FAddress Name Description0x00 CNTLA0 S

Page 6 -  Table of Contents OP7100

OP7100 Memory, I/O Map, and Interrupt Vectors  103Table C-2. Z180 Internal I/O Registers Addresses 0x00–0x3F (concluded)Address Name Descripti

Page 7 - ABOUT THIS MANUAL

OP7100104  Memory, I/O Map, and Interrupt VectorsTable C-3. Epson 72423 Timer Registers 0x4180–0x418FAddress Name Data Bits Description0x4180 SE

Page 8 - Acronyms

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

Page 9 - Conventions

OP7100106  Memory, I/O Map, and Interrupt VectorsTable C-5. Interrupt Vectors for Z180 Internal Devices Address Name Description — INT0 Avai

Page 10 -  About This Manual

OP7100 Memory, I/O Map, and Interrupt Vectors  107Power-Failure InterruptsThe INT1 line is connected to the power-failure output of the ADM691s

Page 11 - OVERVIEW

OP7100108  Memory, I/O Map, and Interrupt Vectors

Page 12

OP7100 Serial Interface Board 2  109APPENDIX D:SERIAL INTERFACE BOARDAppendix D provides technical details and baud rate configuration data forR

Page 13 - Features

OP7100 Overview  11CHAPTER 1: OVERVIEWChapter 1 provides an overview and a brief description of the OP7100features.

Page 14 - Software

110  Serial Interface Board 2 OP7100IntroductionThe SIB is an interface adapter used to program the OP7100. The SIB iscontained in an ABS plastic

Page 15 - CE Compliance

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

Page 16 -  Overview

112  Serial Interface Board 2 OP7100

Page 17 - GETTING STARTED

OP7100 Backup Battery  113APPENDIX E: BACKUP BATTERY

Page 18 - Initial OP7100 Setup

OP7100114  Backup BatteryBattery Life and Storage ConditionsThe battery on the OP7100 will provide approximately 9,000 hours ofbackup time for th

Page 19 - 23 : 59 : 59

OP7100 Backup Battery  115Battery Cautions Caution (English)There is a danger of explosion if battery is incorrectly replaced.Replace only wit

Page 20 -  Getting Started

OP7100116  Backup Battery

Page 21 - Conductor

OP7100 Index  117INDEXSymbols#INT_VEC ... 106#use directive ... 52/CS1–/CS6 ...

Page 22 - Running Dynamic C

OP7100118  Indexcommon problemsprogramming errors ... 92communicationRS-232 ... 13, 36, 38–40RS-485 ...

Page 23 - HARDWARE

OP7100 Index  119HhandshakingRS-232 ... 38Hayes Smart Modem ... 39headers ...

Page 24 - OP7100 Subsystems Overview

OP710012  OverviewIntroductionThe OP7100 is a serial graphic display in a compact, easy to integratemodule. The OP7100 features an LCD that has a

Page 25 - Power Management

OP7100120  Indexlibraries ... 52literal (C term)use... 92lithium batter

Page 26 - ADM691 Supervisor Chip

OP7100 Index  121RDR ... 46RDRF ... 44, 46, 48RE ...

Page 27 - OP7100 Hardware

OP7100122  Indexsoftware (continued)KP_OP71.LIBkpDefGetKey... 71, 81kpDefInit ... 71, 81kpDefStChgFn ... 71k

Page 28 -  Hardware

OP7100 Index  123TTDR... 44, 47TDRE ... 44, 45, 47TE ...

Page 29 - System Reset

OP7100124  Index

Page 30 - Liquid Crystal Display (LCD)

OP7100 SchematicsSCHEMATICS090-0071 OP7100 Schematicwww.rabbit.com/documentation/schemat/090-0071.pdfYou may use the URL information provided above

Page 31 - Background

XX0000Schematics

Page 32 - LCD Controller Chip

OP7100 Overview  13FeaturesThe OP7100 includes the following features.• 240 × 320 ¼ VGA LCD (with touchscreen on OP7100 only)• jumper-selecta

Page 33 - PRE-2006

OP710014  OverviewDevelopment and Evaluation ToolsThe OP7100 is supported by a Tool Kit that include everything you needto start development wit

Page 34 - Keypad Interface

OP7100 Overview  15CE ComplianceThe OP7100 has been tested and was found to be inconformity with applicable EN immunity and emissionstandards.

Page 35 - Digital I/O

OP710016  Overview

Page 36 - Serial Communication

OP7100 Getting Started  17CHAPTER 2: GETTING STARTEDChapter 2 provides instructions for connecting the OP7100 to a host PCand running a sample

Page 37 - RS-232 on

OP710018  Getting StartedInitial OP7100 SetupParts Required• 24 V unregulated DC power supply capable of delivering up to 1.1 A• Serial cableThe

Page 38 - RS-232 Communication

OP7100 Getting Started  19OP7100 SERIESDISPLAY/CONTROLLERMenuFEATREXITSUPRTDEMOClockEXITBklitCtrstBeepExitDisplay Bitmaps+YrExit+Day+MonHrSec

Page 39

OP7100 User’s ManualPart Number 019-0065 • 070831-O • Printed in U.S.A.© 1999–2007 Rabbit Semiconductor Inc. • All rights reserved.Rabbit Semiconducto

Page 40 - RS-485 Communication

OP710020  Getting Started54321CONTRASTRS232485+GNDn.c.485GND43219876232_RX1/ CT232_TX1/ RTPWR_DE9TXARXAn.c.GNDn.c.DCIN (1230 VDC)5 CAUTION

Page 41

OP7100 Getting Started  21MarkedConductorto Pin 1Pin 1J4PRGMPORTFigure 2-4. SIB Programming ConnectionFigure 2-5. Direct Programming Connecti

Page 42 - Use of the Serial Ports

OP710022  Getting StartedRunning Dynamic CDouble-click the Dynamic C icon to start the software. Note that the PCattempts to communicate with th

Page 43 - Z180s can be programmed to

OP7100 Hardware  23CHAPTER 3: HARDWAREChapter 3 describes how to use the OP7100. Sections are included todescribe the following features.• Subs

Page 44

OP710024  HardwareOP7100 Subsystems OverviewThe OP7100 consists of several subsystems, including a computing module,serial communication channels

Page 45 - ASCI Status Registers

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

Page 46 - /DCD0 (Channel 0 only)

OP710026  HardwareADM691 Supervisor ChipA voltage divider consisting of R29 and R30 across the DC input providesa PFI signal to the ADM691 watchd

Page 47 - ASCI Control Register A

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

Page 48 - ASCI Control Register B

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

Page 49

OP7100 Hardware  29Figure 3-3. OP7100 Power-Failure Detection CircuitSince R34 >> RN2, the difference between VH and VL, the hysteresisvol

Page 50 - OP710050

Table of Contents  iiiOP7100TABLE OF CONTENTSAbout This Manual viiChapter 1: Overview 11Introduction...

Page 51 - SOFTWARE

OP710030  HardwareLiquid Crystal Display (LCD)The 240 × 320 ¼ VGA LCD supports both graphics and text. Automaticcontrast control is built in so t

Page 52 - Supplied Software

OP7100 Hardware  31Figure 3-6 shows the jumper settings for the contrast control options.Figure 3-6. Contrast Control Jumper ConfigurationsBackg

Page 53

OP710032  HardwareCoordinate SystemsFigure 3-8 shows the coordinate systems for the touchscreen and the LCD.Figure 3-8. Coordinate Systems(row,

Page 54 - Real-Time Clock (RTC)

OP7100 Hardware  33J3C104C106C101C95C96R62R61C102JP1Y1C4C7U4R2C51J1LCDU1R1C12R51R52U6U2RT1R33C49J2C1T1Q3DANGER! HIGH VOLTAGEQ2C8C10R56R4Trans-for

Page 55 - Flash EPROM

OP710034  HardwareKeypad InterfaceThe OP7100 has a touchscreen, which is connected to the circuit board atheader J5. Header J6 is available for a

Page 56 - Dynamic C 32 Libraries

OP7100 Hardware  35Digital I/OThe OP7100 has eight CMOS/TTL-level digital inputs and eight CMOS/TTL-level digital outputs. The digital inputs are

Page 57 - OP7100 Software

OP710036  HardwareSerial CommunicationTwo serial channels support asynchronous communication at baud ratesfrom 300 bps to 57,600 bps. Serial comm

Page 58 -  Software

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

Page 59

OP710038  Hardware J8GNDCTS/RX1RTS/TX1RX0GNDRTS/TX1CTS/RX1J10TX012345678910246813579RS-232 CommunicationFigure 3-17 shows the RS-232 signals on

Page 60 - OP710060

OP7100 Hardware  39RXTXGNDRTSCTSDTRRXTXGNDRTSCTSModemSideOP7100SideFigure 3-18. Connections BetweenController and ModemA program sends data by w

Page 61

iv  Table of Contents OP7100Digital I/O ...35Serial Co

Page 62 - OP710062

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

Page 63

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

Page 64 - OP710064

OP710042  HardwareTable 3-2. Z180 Serial Port RegistersAddress Name Description00 CNTLA0 Control Register A, Serial Channel 001 CNTLA1 Control R

Page 65 - Keypad Programming

OP7100 Hardware  43Z180 Serial PortsThe Z180’s two independent, full-duplex asynchronous serial channelshave a separate baud-rate generator for e

Page 66 - Using Dynamic C v. 5.xx

OP710044  HardwareThe serial ports can be polled or interrupt-driven.A polling driver tests the ready flags (TDRE and RDRF) until a readyconditio

Page 67 - Macro Description Effect

OP7100 Hardware  45Asynchronous Serial Communication InterfaceThe Z180 incorporates an asynchronous serial communication interface(ACSI) that sup

Page 68 - OP710068

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

Page 69

OP7100 Hardware  47ASCI Control Register AControl Register A affects various aspects of the asynchronous channeloperation.CNTLA0 (00H)76543210MPE

Page 70 - OP71.LIB

OP710048  HardwareRE (Receiver Enable)This bit controls the receiver: 1 ⇒ enabled, 0 ⇒ disabled. When this bit iscleared, the processor aborts th

Page 71

OP7100 Hardware  49Prescaler(PS)÷10or÷30ProcessorClockDivider12...64DivideRatio(DR)16or64ExternalClockThe prescaler (PS), the divide ratio (DR),

Page 72 - OP710072

Table of Contents  vOP7100Dynamic C 32 Libraries...56OP71HW.LIB...

Page 73 - Upgrading Dynamic C

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

Page 74 - OP710074

OP7100 Software  51CHAPTER 4: SOFTWAREChapter 4 describes the Dynamic C functions used with the OP7100.

Page 75 - GRAPHICS PROGRAMMING

OP710052  SoftwareSupplied SoftwareSoftware drivers for controlling the OP7100 are provided with Dynamic C.Depending on the version of Dynamic C

Page 76 - Initialization

OP7100 Software  53Digital I/ONo specific drivers have been written for the OP7100 digital I/O. Theinport and outport functions in the Dynamic

Page 77

OP710054  SoftwareThe sample program OP71.C below cycles through through the outputswith one bit high at a time while it displays the state of

Page 78 - Font and Bitmap Conversion

OP7100 Software  55DisplayFlash EPROMThe WriteFlash function in the Dynamic C DRIVERS.LIB library isused to write data to the program flash EPR

Page 79

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

Page 80 - Printing Text

OP7100 Software  57• void op71BrdOff485( void ); Disables the OP7100's RS-485 driver.• void op71BrdOn485( void );Enables the OP7100's

Page 81

OP710058  Software• void op71Left1( int left, int top, int cols, int rows );Scrolls byte-aligned window left one pixel, right colu

Page 82 -  Graphics Programming

OP7100 Software  59• void op71Down1( int left, int top, int cols, int rows );Scrolls byte-aligned window down one pixel, top col

Page 83 - INSTALLATION

vi  Table of Contents OP7100Appendix B: Specifications 93Electrical and Mechanical Specifications ...

Page 84 - Grounding

OP710060  Software• void op71XPutBitmap( int left, int top, int width, int height, unsigned long bitmap );Draws bitmap in the specified space. Th

Page 85 - Installation Guidelines

OP7100 Software  61• void op71XGetFastmap( int x, int y, int bmWidth, int bmHeight, unsigned long xBm );Gets a bitmap from the LCD page buff

Page 86 - Mounting

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

Page 87 - OP7100 Bezel/Gasket

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

Page 88 -  Installation

OP710064  Software• void op71PutFont( int x, int y, struct _fontInfo *pInfo, char code );Puts an entry from the font table to the page buffer,

Page 89 - TROUBLESHOOTING

OP7100 Software  65• void op71Printf( int x, int y, struct _fontInfo*pInfo, char *fmt, ... );Prints a formatted string (much like printf) on th

Page 90 - Out of the Box

OP710066  SoftwareUsing Dynamic C v. 5.xxEZIOOP71.LIB• void op71BackLight( int onOff )Turns the backlight of the OP7100 on or off.PARAMETER: onO

Page 91 - OP7100 Repeatedly Resets

OP7100 Software  67• glXFontInit( struct _fontInfo *pInfo,char pixWidth, char pixHeight,unsigned startChar, unsigned endChar,unsigned long xmem

Page 92 - Common Programming Errors

OP710068  Software• int glInit()Initializes the LCD module (software and hardware).RETURN VALUE: the status of the LCD. If the initialization wa

Page 93 - SPECIFICATIONS

OP7100 Software  69• void glPlotVPolygon( int n, int *pFirstCoord )Plots a filled-in polygon.PARAMETERS: n is the number of vertices.*pFirstCo

Page 94 - LCD aperture is 122 x 92 mm

OP7100 About This Manual  viiABOUT THIS MANUALThis manual provides instructions for installing, testing, configuring, andinterconnecting the Rabb

Page 95 - General Specifications

OP710070  Software• void glXPutBitmap( int x, int y, int bmWidth,int bmHeight, unsigned long bmPtr )Displays a bitmap stored in xmem on the LCD.

Page 96 - Header Description

OP7100 Software  71• int kpDefStChgFn( char *curState, char *changed )This is the default state change function for the default get key functio

Page 97 - OP7100 Specifications

OP710072  SoftwareSYS.LIB• int sysChk2ndFlash( struct _flashInfo *pInfo )Checks for the existence and configuration of the second flash EPROMmapp

Page 98 -  Specifications

OP7100 Software  73Upgrading Dynamic CDynamic C patches that focus on bug fixes are available from time to time.Check the Web site• www.rabbit.

Page 99 - APPENDIX C: MEMORY

OP710074  Software

Page 100 - OP7100 Memory

OP7100 Graphics Programming  75CHAPTER 5: GRAPHICS PROGRAMMINGChapter 5 provides helpful guidelines for drawing graphics on the OP7100.

Page 101 - Execution Time

OP710076  Graphics ProgrammingInitializationThe OP7100, unlike most other Rabbit Semiconductor controllers, uses themaximum I/O and memory wait s

Page 102 - Memory Map

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

Page 103 - Address Name Description

OP710078  Graphics ProgrammingFont and Bitmap ConversionCustomers are encouraged to design their own fonts and bitmaps. Theserestrictions must b

Page 104 - OP7100104

OP7100 Graphics Programming  79last character is for code 0xff.make call to glFontInit(&fi, 6, 8, 32, 127, fontBitMap)to initialize table*/

Page 105 - Other Registers

OP7100viii  About This ManualAcronymsTable 1 lists and defines the acronyms that may be used in this manual.IconsTable 2 displays and defines ico

Page 106 - Interrupt Vectors

OP710080  Graphics ProgrammingTo initialize a font information structure (of type struct _fontInfo),you can call op71XFontInit for a font stored

Page 107 - Interrupt Priorities

OP7100 Graphics Programming  81Keypad ProgrammingThe sample program KPDEFLT.C in the Dynamic C SAMPLES\QVGA subdi-rectory demonstrates how to r

Page 108 - OP7100108

OP710082  Graphics Programming

Page 109 - SERIAL INTERFACE BOARD

OP7100 Installation  83CHAPTER 6: INSTALLATIONChapter 6 provides installation and protective grounding guidelines for theOP7100.

Page 110 - Introduction

OP710084  InstallationGroundingMany of the OP7100 ICs are sensitive to static. Use extracaution when handling units in high-static areas.To meet

Page 111 - External Dimensions

OP7100 Installation  85FD JP5120 V/GNDFGND JP5120 V/GNDFGNDBezel/Casing to Power Supply GNDBezel/Casing to External GroundExternalGroundExt

Page 112

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

Page 113 - BACKUP BATTERY

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

Page 114 - Replacing the Lithium Battery

OP710088  Installation

Page 115 - Battery Cautions

OP7100 Troubleshooting  89APPENDIX A: TROUBLESHOOTINGAppendix A provides procedures for troubleshooting system hardware andsoftware. The sect

Page 116 -  Backup Battery

OP7100 About This Manual  ixConventionsTable 3 lists and defines the typographical conventions that may be used inthis manual.Pin Number 1A black

Page 117 - OP7100 Index

OP710090  TroubleshootingOut of the BoxCheck the items mentioned in this section before starting development.• Verify that the OP7100 runs in sta

Page 118 - OP7100118

OP7100 Troubleshooting  91Dynamic C Will Not StartIn most situations, when Dynamic C will not start, an error messageannouncing a communication

Page 119

OP710092  TroubleshootingCommon Programming Errors• Values for constants or variables out of range. Table A-1 lists accept-able ranges for varia

Page 120 - OP7100120

OP7100 Specifications  93APPENDIX B: SPECIFICATIONSAppendix B provides comprehensive physical, electronic, and environ-mental specifications f

Page 121

OP710094  SpecificationsElectrical and Mechanical SpecificationsLCD DimensionsFigure B-1. OP7100 LCD DimensionsBezel DimensionsFigure B-2. OP71

Page 122 - OP7100122

OP7100 Specifications  95General SpecificationsTable B-1 presents the physical, electronic and environmental specifications.Table B-1. OP7100

Page 123

OP710096  SpecificationsHeader and Jumper ConfigurationsFigure B-3 shows the locations of the configurable headers on the OP7100.Table B-2 lists

Page 124 - OP7100124

OP7100 Specifications  97Table B-3 lists the jumper configurations.FDFDTable B-3. OP7100 Jumper SettingsHeaderPinsConnectedFunctionFactoryDefa

Page 125 - SCHEMATICS

OP710098  Specifications

Page 126 - XX0000Schematics

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

No comments