background image

eDisplay (OP7200)

¼ VGA Operator Control Panel

User’s Manual

019–0116

021001–A

Содержание eDisplay OP7200

Страница 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 021001 A ...

Страница 2: ...world com OP7200 User s Manual Part Number 019 0116 021001 A Printed in U S A 2002 Z World Inc All rights reserved Z World reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit 2000 is a trademark of Rabbit Semiconductor Dynamic C is a registered trademark of Z World Inc ...

Страница 3: ...s and Screw Terminals 14 3 2 Indicators 15 3 2 1 LEDs 15 3 2 2 Buzzer 15 3 3 Digital I O 16 3 3 1 Digital Inputs 16 3 3 2 Digital Outputs 18 3 4 Analog Features OP7200 only 20 3 4 1 A D Converter Inputs 20 3 4 2 Analog Current Measurements 23 3 4 3 Calibrating the A D Converter Chip 24 3 4 4 Touchscreen 27 3 4 5 Analog Supply Voltage 27 3 4 6 A D Converter Reference Voltage V 27 3 5 Serial Communi...

Страница 4: ...8 4 7 4 A D Converter Inputs 98 4 7 5 Graphic Display 99 4 7 6 Keypad 99 4 7 7 Touchscreen OP7200 only 99 4 7 8 Using System Information from the RabbitCore Module 100 Chapter 5 Using the TCP IP Features 101 5 1 TCP IP Connections 101 5 2 TCP IP Sample Programs 103 5 2 1 How to Set IP Addresses in the Sample Programs 103 5 2 2 How to Set Up your Computer s IP Address for a Direct Connection 104 5 ...

Страница 5: ...ections 125 B 2 1 Replacing the Backup Battery 125 B 2 2 External Battery 126 B 2 3 Battery Backup Circuit 127 B 2 4 Power to VRAM Switch 128 B 2 5 Reset Generator 128 B 3 Chip Select Circuit 129 Appendix C Demonstration Board Connections 131 C 1 Connecting Demonstration Board 131 Appendix D Programming Cable 135 Notice to Users 139 Index 141 Schematics 145 ...

Страница 6: ...eDisplay OP7200 ...

Страница 7: ...ional A D converter inputs and touchscreen 1 1 Features Small size 4 4 5 7 1 7 112 mm 144 mm 43 mm VGA LCM display 320 240 pixels with white LED backlight Software controlled LCD contrast and backlight on off 9 key keypad LCD controller and SRAM compatible with OP7100 4 status LEDs 24 digital I O 16 filtered digital inputs with an input range of 36 V DC and a switch ing point of 2 4 V and 8 sourci...

Страница 8: ... standard features are summarized in Table 1 Appendix A provides detailed specifications Visit Z World s Web site for up to date information about additional add ons and features as they become available The Web site also has the latest revision of this user s manual Table 1 OP7200 Models Feature OP7200 OP7210 Microprocessor Rabbit 2000 running at 22 1 MHz Static RAM 128K Flash Memory 256K RJ 45 E...

Страница 9: ...r own power supply it must pro vide 9 to 40 V DC or 24 V AC Demonstration Board with pushbutton switches and LEDs The Demonstration Board can be hooked up to the OP7200 to demonstrate the I O Wire assembly to connect Demonstration Board to OP7200 Screwdriver Rabbit 2000 Processor Easy Reference poster Registration card Figure 1 OP7200 Tool Kit PROG DIAG Programming Cable Screwdriver User s Manual ...

Страница 10: ...M Z World also offers Dynamic C Premier which includes unique libraries the software drivers for all of Z World s Rabbit based embedded control systems and features one year of telephone based technical support at no additional charge Visit our Web site at www zworld com or contact your Z World sales representative or authorized distributor for further information ...

Страница 11: ...User s Manual 5 2 GETTING STARTED Chapter 2 explains how to connect the programming cable and power supply to the OP7200 ...

Страница 12: ...vertent shorts or power spikes D23 D20 PWR PWR K OUT0 OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 GND IN12 IN13 IN14 IN15 RST TXC RXC TXD RXD 485 485 GND J10 Q31 JP9 J15 R44 R41 R42 R40 R31 R29 R43 R46 R45 C33 JP4 R19 R26 R27 R30 R28 R25 R20 C2 R17 R16 IN16 IN17 IN18 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND R18 C4 R15 R1 R2 C1 JP1 D13 D12 D14 D15 C5 Y1 C60 C61 Q5 U2 1 60 C57 D11 R79 R78 R77 R76 R75 R74...

Страница 13: ... diamond shaped keypad button in the middle row to enter the menu choice that is highlighted or press the up and down keys above and below the diamond shaped key pad button to move around the menu Note that the programming cable should not be connected for this demonstration This demonstration will be replaced by a new program when the programming cable is attached and the new program is compiled ...

Страница 14: ...5 GN D J1 0 Q31 JP 9 J15 R44 R41 R4 2 R4 0 R31 R29 R4 3 R46 R4 5 C3 3 JP 4 R1 9R 26 R2 7 R3 0 R28 R25 R20 C2 R1 7 R1 6 IN 16 IN 17 IN 18 AI N0 AI N1 AI N2 AI N3 AI N4 AI N5 AI N6 AI N7 AG ND R1 8 C4 R1 5 R1 R2 C1 JP 1 D13 D12 D14 D15 C5 Y1 C6 0 C6 1 Q5 U2 1 60 C5 7 D11 R7 9 R7 8 R7 7 R7 6 R7 5 R7 4 C3 6 JP 2 JP 7 IN 0 IN 1 IN 2 IN 3 IN 4 IN 5 IN 6 IN 7 IN 8 IN 9 IN 10 IN 11 C43 C44 R8 2 R8 3 R8 4 ...

Страница 15: ...ion is installed along with Dynamic C and an icon for the docu mentation menu is placed on the workstation s desktop Double click this icon to reach the menu If the icon is missing create a new desktop icon that points to default htm in the docs folder found in the Dynamic C installation folder The latest versions of all documents are always available for free unregistered download from our web si...

Страница 16: ...change the serial port used by Dynamic C with the OPTIONS menu then try to get Dynamic C to recognize the OP7200 by selecting Reset Target Compile BIOS on the Compile menu or by pressing Ctrl Y Try the dif ferent COM ports in the OPTIONS menu until you find the one you are connected to If you still can t get Dynamic C to recognize the target on any port then the hookup may be wrong or the COM port...

Страница 17: ...open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The STDIO window will open on the PC and will display a small square bouncing around in a box This program shows that the CPU is working The sample program described in Section 5 2 3 Run the PINGME C Demo tests the TCP IP portion of the board ...

Страница 18: ...00 fea tures and develop your own applications The following sample programs illustrate the features and operation of the OP7200 These sample programs can be used as templates for applications you may wish to develop Chapter 3 Subsystems provides a description of the OP7200 s features Chapter 4 Software describes the Dynamic C software libraries and introduces some sample pro grams Chapter 5 Using...

Страница 19: ... one OP7200 or other Z World prod ucts built around RabbitCore modules take care not to swap the RabbitCore modules since they contain system ID block information and calibration constants that are unique to the board they were originally installed on It is a good idea to save the calibration con stants should you need to replace a RabbitCore module in the future See Section 4 7 8 Using System Inf...

Страница 20: ... The RabbitNet jack does not support Ethernet connections Be careful to connect your Ethernet cable to the jack labeled Ethernet GND OUT7 OUT6 OUT5 OUT4 OUT3 OUT2 OUT1 OUT0 K PWR PWR GND 485 485 RXD CTS TXD RTS RXC TXC RST IN15 IN14 IN13 IN12 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7 IN8 IN9 IN10 IN11 IN16 IN17 IN18 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND J3 Analog Inputs Digital Inputs Digital Inputs ...

Страница 21: ...the OP7200 Following reset DS1 will be ON and will remain ON until turned OFF by Dynamic C Once the microprocessor comes out of reset and finishes all its internal checks and initializes the system it should turn DS1 OFF The operation of DS1 may be redefined in any manner desired with the caveat that DS1 comes ON after reset The USR label on the dust cover refers to the LED at DS1 and reflects its...

Страница 22: ...IN0 IN7 the actual switching point between a zero and a one is 1 5 V max and 3 5 V min respectively The range between 1 5 and 3 5 V is undefined For IN8 IN15 the actual switching point between a zero and a one is 0 8 V max and 2 0 V min respectively The range between 0 8 and 2 0 V is undefined For IN16 IN17 which are available only on the OP7200 model the actual switching point between a zero and ...

Страница 23: ...inputs are each fully protected over a range of 36 V to 36 V and can handle short spikes of 40 V Figure 7 OP7200 Digital Input Protected Range 40 V 36 V 3 3 V 40 V Normal Switching Levels Spikes Digital Input Voltage Spikes Spikes ...

Страница 24: ...s as sinking or sourcing and thereby serves as a hard ware block to prevent both sinking and sourcing drivers from being activated at the same time in a given channel Although the components are not installed there is provision on the circuit board for the dig ital outputs to be pulled as a group to Vcc K or to GND through 27 kΩ resistors In spe cial circumstances you may need to pull sinking outp...

Страница 25: ...is supply backwards When you are using the same DC power supply as the main power supply for the OP7200 and as the K power supply Z World recommends that you tie the PWR connection to ground Since this step will bypass the reverse polarity protection afforded by the full wave bridge rectifier ensure that the positive leads from the power supply are connected correctly to prevent damage to the OP72...

Страница 26: ... header J2 The fourth digital input serves as a board status bit and is controlled by a 0 Ω surface mount resistor R159 The factory default is for R159 to not be installed which leaves this fourth input pulled up to Vcc 3 4 1 A D Converter Inputs Figure 10 shows a pair of A D converter input circuits Each A D converter input consists of resistors and a capacitor The resistors form a10 1 attenuator...

Страница 27: ...e A D converter Adjacent input channels are paired so that moving a particular jumper changes both of the paired channels At the present time Z World does not offer the software drivers to work with single ended negative voltages but the differential mode described below may be used to measure negative voltages Differential measurements require two channels As the name differential implies the dif...

Страница 28: ...ge at one of the inputs AIN1 which will almost cer tainly lead to inaccurate A D conversions To make such dif ferential measurements move the 0 Ω resistor jumper see Figure 10 associated with the A D converter inputs JP4 JP5 JP6 or JP7 from analog ground to the 2 048 V reference voltage This allows input voltages that are negative with respect to analog ground Table 3 provides the differential vol...

Страница 29: ...vides the bipolar voltage ranges for this setup 3 4 2 Analog Current Measurements The A D converter inputs can also be used with 4 20 mA current sources by measuring the resulting analog volt age drop across a 100 Ω 1 precision resistor placed between the analog input and analog ground as shown in Figure 12 The single ended scale of 0 2 56 V with a gain of 8 is used to get an A D current conversio...

Страница 30: ...to adjust for the slope of the line and the offset from 0 0 The calibration routines typically use input voltage points that are 10 less then the maximum and 10 more than the mini mum readings possible for the A D converter on any given range Quality calibration procedures are extremely important in obtaining good A D converter results No matter how high a resolution the A D converter has it canno...

Страница 31: ...2 sets of calibration constants When a calibration is performed it fills in one of the squares in the table with a set of cal ibration constants representing the corresponding mode channel and gain These con stants are stored in flash memory and are thus maintained even when power is been removed from the OP7200 Note that calibration constants are stored for each of the modes Since A D converter r...

Страница 32: ...librations the factory performs only a rudimen tary calibration on the unit By default all four of the attenuator reference selection jump ers are in the analog ground position The factory performs a single ended calibration on each of the eight channels with a gain of 1 0 20 V range The remaining single ended calibration constants for the other seven gains are approximated and are filled in based...

Страница 33: ...way of a low pass filter composed of L2 C31 and C32 as shown in the left side of Figure 13 The V analog power supply powers the A D converter chip Figure 13 Analog Supply and Voltage Reference Circuits 3 4 6 A D Converter Reference Voltage V A reference voltage of 2 048 V is generated by the A D converter chip The reference volt age is used by the touchscreen controller chip and may also be used t...

Страница 34: ...peed The OP7200 boards use all four serial ports Serial Port A is used in the clocked serial mode to provide cold boot download and emulation functions Serial Port B is used for RS 485 communication and Serial Ports C and D are used for RS 232 communication The OP7200 uses an 11 0592 MHz crystal which is doubled to 22 1184 MHz At this fre quency the OP7200 supports standard asynchronous baud rates...

Страница 35: ...heme a strict master slave relationship must exist between devices to insure that no two devices attempt to drive the bus simultaneously The OP7200 can be used in an RS 485 multidrop network spanning up to 1200 m 4000 ft and there can be as many as 32 attached devices Connect the 485 to 485 and 485 to 485 using single twisted pair wires as shown in Figure 14 Note that a common ground is recommende...

Страница 36: ...6 R27 R30 R28 R25 R20 C2 R17 R16 IN16 IN17 IN18 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND R18 C4 R15 R1 R2 C1 JP1 D13 D12 D14 D15 C5 Y1 C60 C61 Q5 U2 1 60 C57 D11 R79 R78 R77 R76 R75 R74 C36 JP2 JP7 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7 IN8 IN9 IN10 IN11 C43 C44 R82 R83 R84 J9 R85 R86 R165 R164 R162 R89 R87 R88 C51 C50 R90 C48 JP3 J12 R71 R72 R59 R60 R66 C40 C66 JP6 JP5 R108 C65 JP8 R61 R159 R147 Q12...

Страница 37: ... 2000 startup mode pins SMODE0 SMODE1 are presented to the program ming port so that an externally connected device can force the OP7200 to start up in an external bootstrap mode The OP7200 can be reset by Dynamic C via the RST line on the programming port The green Power Good LED goes off momentarily during a reset The Rabbit 2000 status pin is also presented to the programming port The status pi...

Страница 38: ...to the way shown in Figure 16 Two LEDs are placed next to the RJ 45 Ethernet jack one to indicate a live Ethernet link LNK and one to indicate Ethernet activity ACT The transformer connector assembly ground is connected to the OP7200 s RabbitCore module printed circuit board digital ground via a 0 Ω resistor jumper R29 as shown in Figure 17 Figure 17 Isolation Resistor R29 The factory default is f...

Страница 39: ...of the flash memory since it may be necessary to change the sector size in the future A Flash Memory Bank Select jumper configuration option based on 0 Ω surface mounted resistors exists at header JP2 on the RabbitCore module This option used in conjunction with some configuration macros allows Dynamic C to compile two different co resident programs for the upper and lower halves of the 256K flash...

Страница 40: ...med I O bit VA16 Pins 1 2 on header JP9 are normally connected by a 0 Ω surface mounted resis tor but pins 2 3 should be connected instead for video SRAM paging with I O bit VA16 The third interface to the controller chip is to support the LCD module This interface is unidirectional Data flow from the controller chip to the LCD module A number of con trol lines are provided for this function but n...

Страница 41: ... circuits help to eliminate EMI from being radiated from the keypad or its flex cable R149 R151 R152 and C82 C84 perform a similar function for the keypad data lines The tri state receiver chip U13 connects the key data to the microprocessor data bus at the appropriate time when directed by the control signals IORD and PE5 IO CS1 Note that only the low order three bits of the data bus are connecte...

Страница 42: ... If either the SINK or SOURCE output is asserted and the software tries to set the other the operation is ignored and the bit will not be set The pur pose of this interlock is to prevent damage to the driver circuit by not allowing both cur rent sourcing and sinking to be enabled simultaneously Table 6 CPLD Parameters PE5 PE4 A3 0 D0 Signal Function 1 0 0000 1 SINK0 Enable Sink Output 0 1 0 0000 0...

Страница 43: ... Scan Line S2 0 1 0010 0 KB S2 Deassert Keypad Scan Line S2 0 1 0011 1 KB S3 Assert Keypad Scan Line S3 0 1 0011 0 KB S3 Deassert Keypad Scan Line S3 0 1 0100 1 BKLT ON Turn On the LCDM Backlight 0 1 0100 0 BKLT ON Turn Off the LCDM Backlight 0 1 0101 1 RS485 EN Enable the 485 Transmitter 0 1 0101 0 RS485 EN Disable the 485 Transmitter 0 1 0110 1 ALARM Turn On the Buzzer 0 1 0110 0 ALARM Turn Off ...

Страница 44: ...38 eDisplay OP7200 ...

Страница 45: ...amming cable is disconnected Standalone applications can only run from flash memory The disadvantage of using flash memory for debug is that interrupts must be disabled for approximately 5 ms whenever a break point is set in the program This can crash fast inter rupt routines that are running while you stop at a break point or single step the program Flash memory or RAM is selected on the Options ...

Страница 46: ...patch Do not simply copy over an entire file since you may overwrite a bug fix of course you may copy over any programs you have written Once you are sure the new patch works entirely to your satisfaction you may retire the existing installation but keep it available to handle legacy applications 4 1 1 2 Upgrades Dynamic C SE Special Edition versions are designed for use with the board they are in...

Страница 47: ... J10 to GND The OP7200 is now ready to operate in the Run Mode 4 2 3 Detailed Instructions Changing from Run Mode to Program Mode 1 Attach the programming cable to header J1 of the OP7200 RabbitCore module 2 Reset the OP7200 by unplugging the AC adapter then plugging it back in or by momentarily shorting pin 5 on screw terminal header J10 to GND Alternatively you may press Ctrl Y on your PC if Dyn...

Страница 48: ...tions for the OP7200 OP7200 libraries associated with features specific to the OP7200 The functions in the OP72xx LIB library are described in Section 4 4 OP7200 Function APIs DISPLAYS libraries associated with the LCD display KEYPADS libraries associated with the keypad TOUCHSCREENS libraries associated with the touchscreen Other generic functions applicable to all devices based on the Rabbit 200...

Страница 49: ...is function initializes the system I O ports and loads all the A D converter calibration constants from flash memory into SRAM for use by your pro gram This function will turn off LED DS1 Microprocessor Bad to indicate that the initialization was successful The ports are initialized according to Table A 3 void brdInit void ...

Страница 50: ...e of a digital output OUT0 OUT7 The output channel is set to the state that is specified If the output is configured as sinking set to 0 for the driver to be sinking or set to 1 for the driver to be OFF high impedance state If the output is con figured as sourcing set to 0 for the driver to be OFF high impedance state or set to 1 for the driver to be sourcing Remember to call brdInit and digOutCon...

Страница 51: ...not executed before executing digTriStateConfig PARAMETER triState is an 8 bit parameter where each bit corresponds to a high current output Bit 7 OUT7 Bit 6 OUT6 Bit 5 OUT5 Bit 4 OUT4 Bit 3 OUT3 Bit 2 OUT2 Bit 1 OUT1 Bit 0 OUT0 To set the outputs set the corresponding bit to one of the following states 0 tristate operation disabled 1 tristate operation enabled EXAMPLE digTriStateConfig 0x02 OUT1 ...

Страница 52: ...cuting digOutTriState 3 Your tried to use a channel that is not configured as a tristate output PARAMETERS channel is the output channel number 0 7 state is set to one of the following output states 0 Active Low 1 Active High 2 High Impedance state SEE ALSO brdInit digIn digOutConfig digOut triStateConfig Reads the state of an input channel IN0 IN18 for OP7200 IN0 IN15 for OP7210 A run time error ...

Страница 53: ...it function executes then the Microprocessor Bad indicator is available for other use in the application PARAMETERS led is the LED to control 0 LED DS1 Microprocessor Bad indicator value is used to control whether the LED is on or off 0 OFF 1 ON SEE ALSO brdInit void ledOut int led int value ...

Страница 54: ... C Premier Function Reference Manual and Technical Note 213 Rabbit 2000 Serial Port Software Use the following function calls with the OP7200 User interface to set up OP7200 serial communication lines Call this function after serXOpen Whether you are opening one or multiple serial ports this function must be executed after executing the last serXOpen function AND before you start using any of the ...

Страница 55: ...itted is detected in the receive data buffer Block data mode disable the transmitter after the same number of bytes transmitted is detected in the receive data buffer serMode must be executed before running this function SEE ALSO serMode ser485Rx Disables the RS 485 transmitter This puts the OP7200 in listen mode which allows it to receive data from the RS 485 interface serMode must be executed be...

Страница 56: ...s the gain code of 0 to 7 RETURN VALUE A value corresponding to the voltage on the analog input channel which will be 0 2047 for 11 bit A D conversions signed 12th bit SEE ALSO anaInVolts anaInCalib brdInit int anaIn int channel int opmode int gaincode channel SINGLE DIFF 0 AIN0 AIN0 AIN1 1 AIN1 2 AIN2 AIN2 AIN3 3 AIN3 4 AIN4 AIN4 AIN5 5 AIN5 6 AIN6 AIN6 AIN7 7 AIN7 Gain Code Multiplier Voltage Ra...

Страница 57: ...o set voltage range defaults to the calculation gain code PARAMETERS channel is the analog input channel number 0 to 7 corresponding to AIN0 AIN7 opmode is the mode of operation SINGLE single ended input line DIFF differential input line gaincode is the gain code of 0 to 7 int anaInCalib int channel int opmode int gaincode int value1 float volts1 int value2 float volts2 channel SINGLE DIFF 0 AIN0 ...

Страница 58: ...t corresponding to the first A D converter channel value value2 is the second A D converter channel value 0 2047 volts2 is the voltage or current corresponding to the first A D converter channel value RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaIn anaInVolts brdInit ...

Страница 59: ...ine DIFF differential input line gaincode is the gain code of 0 to 7 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel SEE ALSO anaInCalib anaIn brdInit float anaInVolts int channel int opmode int gaincode channel SINGLE DIFF 0 AIN0 AIN0 AIN1 1 AIN1 2 AIN2 AIN2 AIN3 3 AIN3 4 AIN4 AIN4 AIN5 5 AIN5 6 AIN6 AIN6 AIN7 7 AIN7 Gain Code Multiplier Voltage Range 0 1 0 2...

Страница 60: ...o current PARAMETER channel is 0 7 RETURN VALUE A current value between 4 20 mA 0 004 and 0 020 A corresponding to the current on the analog input channel SEE ALSO brdInit anaInCalib anaIn anaInVolts anaInDiff int anaInmAmps unsigned int channel Channel 4 20 mA Input Lines 0 AIN0 1 AIN1 2 AIN2 3 AIN3 4 AIN4 5 AIN5 6 AIN6 7 AIN7 ...

Страница 61: ...e of 0 to 7 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel SEE ALSO brdInit anaInCalib anaIn anaInVolts anaInmAmps float anaInDiff unsigned int channel unsigned int gaincode Channel Differential Input Lines 0 AIN0 AIN1 2 AIN2 AIN3 4 AIN4 AIN5 6 AIN6 AIN7 Gain Code Actual Gain Voltage Range 0 1 0 20 V 1 2 0 10 V 2 4 0 5 V 3 5 0 4 V 4 8 0 2 5 V 5 10 0 2 V 6 16 ...

Страница 62: ... and the addresses available for use by your applica tion program NOTE This function cannot be run in RAM PARAMETERS channel is the analog input channel number corresponding to AIN0 AIN7 opmode is the mode of operation SINGLE single ended input line DIFF differential input line int anaInEERd unsigned int channel int opmode unsigned int gaincode 0x00 AIN0 0x01 AIN1 0x02 AIN2 0x03 AIN3 0x04 AIN4 0x0...

Страница 63: ...n code of 0 to 7 RETURN VALUE 0 if successful 1 if address is invalid or out of range SEE ALSO anaInEEWr brdInit Gain Code Multiplier Voltage Range 0 1 0 20 V 1 2 0 10 V 2 4 0 5 V 3 5 0 4 V 4 8 0 2 5 V 5 10 0 2 V 6 16 0 1 25 V 7 20 0 1 V ...

Страница 64: ...s and the addresses available for use by your application program NOTE This function cannot be run in RAM PARAMETERS channel is the analog input channel number corresponding to AIN0 AIN7 opmode is the mode of operation SINGLE single ended input line DIFF differential input line int anaInEEWr unsigned int channel int opmode unsigned int gaincode 0x00 AIN0 0x01 AIN1 0x02 AIN2 0x03 AIN3 0x04 AIN4 0x0...

Страница 65: ...n code of 0 to 7 RETURN VALUE 0 if successful 1 if address is invalid or out of range SEE ALSO anaInEERd brdInit Gain Code Multiplier Voltage Range 0 1 0 20 V 1 2 0 10 V 2 4 0 5 V 3 5 0 4 V 4 8 0 2 5 V 5 10 0 2 V 6 16 0 1 25 V 7 20 0 1 V ...

Страница 66: ...UBLE_LINE a double line border around the text menu shadow describes the menu shadow options 0 NO_SHADOW no shadowing provided 1 SHADOWING shadowing is provided on the menu menu_options is a pointer to the list of menu options title is the menu title ASCII string title null string no title maxOptDisplayed indicates the maximum number of options to be displayed by the menu 1 forces all options to b...

Страница 67: ...hanges to menu or highlightbar 2 MENU_REFRESH display the last image of the menu including the location of the highlight bar x is the x coordinate of where the text menu is to start y is the y coordinate of where the text menu is to start RETRUN VALUE 0 no option is selected 0 option the user has selected 1 menu has exceeded LCD screen width 2 menu has exceeded LCD screen height SEE ALSO glMenuIni...

Страница 68: ...lay OP7200 Clears the menu indicated by the WindowMenu descriptor pointer PARAMETER mPtr is a windowMenu descriptor pointer RETURN VALUE None SEE ALSO glRefreshMenu glMenu glMenuInit glMenuClear windowMenu mPtr ...

Страница 69: ...corded in the LCD memory buffer and are not transferred to the LCD if the counter is non zero NOTE Functions glBuffLock and glBuffUnlock can be nested up to a level of 255 but be sure to balance the calls It is not a requirement to use these procedures but a set of glBuffLock and glBuffUnlock bracketing a set of related graphics calls significantly speeds up the rendering SEE ALSO glBuffUnlock glS...

Страница 70: ...CD display screen SEE ALSO glFillScreen glBlock glPlotPolygon glPlotCircle Sets the drawing method or color of pixels drawn by subsequent graphics calls PARAMETER type is the value can be one of the following macros PIXBLACK draws black pixels PIXWHITE draws white pixels PIXXOR draws old pixel XOR ed with the new pixel SEE ALSO glGetBrushType void glFillScreen int pattern void glBlankScreen void v...

Страница 71: ...ate of the dot SEE ALSO glPlotline glPlotPolygon glPlotCircle Draws a line in the LCD buffer and on the LCD if the buffer is unlocked Any portion of the line that is beyond the LCD display area will be clipped PARAMETERS x0 is the x coordinate of one endpoint of the line y0 is the y coordinate of one endpoint of the line x1 is the x coordinate of the other endpoint of the line y1 is the y coordina...

Страница 72: ... the outline of a polygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped The function will also return doing nothing if there are less than 3 vertices PARAMETERS n is the number of vertices x1 is the x coordinate of the first vertex y1 is the y coordinate of the first vertex x2 is the x coordinate of t...

Страница 73: ...ion of the polygon that is outside the LCD display area will be clipped The function will also return doing nothing if there are less than 3 vertices PARAMETERS n is the number of vertices pFirstCoord is a pointer to an array of vertex coordinates x1 y1 x2 y2 x3 y3 SEE ALSO glPlotPolygon glFillPolygon glFillVPolygon Draws a filled polygon in the LCD page buffer and on the LCD if the buffer is unlo...

Страница 74: ... circle rad is the radius of the circle in pixels SEE ALSO glPlotCircle glPlotPolygon glFillPolygon Initializse the font descriptor structure where the font is stored in xmem Each font character s bitmap is column major and byte aligned PARAMETERS pInfo is a pointer to the font descriptor to be initialized pixWidth is the width of each font item in pixels pixHeight is the height of each font item ...

Страница 75: ...nit Sets the glPrintf printing step direction The x and y step directions are independent signed val ues The actual step increments depend on the height and width of the font being displayed which are multiplied by the step values Use glGetPfStep to examine the current x and y printing step direction PARAMETERS stepX is the glPrintf x step value stepY is the glPrintf y step value SEE ALSO glGetPfS...

Страница 76: ...fo is a pointer to the window frame descriptor code is the ASCII character to display SEE ALSO glFontCharAddr glPrintf Provides an interface between the STDIO string handling functions and the graphic library The STDIO string formatting function will call this function one character at a time until the entire format ted string has been parsed Any portion of the bitmap character that is outside the...

Страница 77: ...ame winHeight is the height of the text window frame RETURN VALUE 0 window frame was successfully created 1 x coordinate width has exceeded the display boundary 2 y coordinate height has exceeded the display boundary SEE ALSO TextPutChar TextPrintf TextCursorLocation TextGotoXY Sets the cursor location on the display of where to display the next character The d isplay location is based on the heig...

Страница 78: ...on SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextPutChar Displays a character on the display where the cursor is currently pointing If any portion of the bitmap character is outside the LCD display area the character will not to be displayed NOTE Be sure to execute the TextWindowFrame function before using any of the text only functions TextGotoXY TextPutChar TextPrintf TextCursorLocation PAR...

Страница 79: ...nt SEE ALSO TextGotoXY TextPutChar TextWindowFrame TextCursorLocation Scrolls byte aligned window left one pixel right column filled by current pixel type color PARAMETERS left is the upper left corner of bitmap must be evenly divisible by 8 top is the left top corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 rows is the number of rows in the window SE...

Страница 80: ... window nPix is the number of pixels to scroll within the defined window negative value to scroll left SEE ALSO glVScroll Scrolls byte aligned window up one pixel bottom row filled by current pixel type color PARAMETERS left is the upper left corner of bitmap must be evenly divisible by 8 top is the left top corner of the bitmap cols is the number of columns in the window must be evenly divisible ...

Страница 81: ... window must be evenly divisible by 8 rows is the number of rows in the window nPix is the number of pixels to scroll within the defined window negative value to scroll up SEE ALSO glHScroll Draws bitmap in the specified space The data for the bitmap are stored in xmem This function auto matically calls glXPutFastmap if the bitmap is byte aligned left edge and width are each evenly divisible by 8 ...

Страница 82: ...dress of the bitmap in xmem SEE ALSO glXPutBitmap glPrintf Gets a bitmap from the LCD page buffer and stores it in xmem RAM This function automatically calls glXGetFastmap if the bitmap is byte aligned left edge and width are each evenly divisible by 8 PARAMETERS x is the x coordinate of the left edge of the bitmap in pixels y is the y coordinate of the top edge of the bitmap in pixels bmWidth is ...

Страница 83: ...E_LINE single line border around the text window DOUBLE_LINE double line border around the text window title is a pointer to the title 1 If a NULL string is detected then no title is written to the text menu 2 If a string is detected then it will be written to the top of the text menu box as the centered title SEE ALSO TextBorder TextGotoXY TextPutChar TextWindowFrame TextCursorLocation Displays t...

Страница 84: ...mber of characters that can be displayed within the text window The Tex tWindowFrame function must be executed before running this function PARAMETER wPtr is a pointer to the window frame descriptor RETURN VALUE The maximum number of characters that can be displayed within the text window SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation void TextWinClear windowFrame wPtr int TextM...

Страница 85: ...special effects only Raster lines may appear in your display image when this mode is turned on PARAMETER 0 animation mode disabled 1 animation mode enabled SEE ALSO GRAPHIC LIB Enables disables the real time mode for the glPlotDot function The glPlotDot real time mode is defaulted OFF when the graphic driver is executed PARAMETER 0 real time mode disabled 1 real time mode enabled SEE ALSO glPlotDo...

Страница 86: ...rast PARAMETER contrast represents the contrast level 0 to 31 for low to high contrast with a typical setting of 20 SEE ALSO glBacklight This function is not supported at the present time void glSetContrast int contrast void glDispOnOff int onOff ...

Страница 87: ... Keypad Interface cPress is a key press code An 8 bit value is returned when a key is pressed 0 Unused See keypadDef for default press codes cRelease is a key release code An 8 bit value is returned when a key is pressed 0 Unused cCntHold is a hold tick How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick How many times to repeat 0 None cCntLo is a low speed hold tick Ho...

Страница 88: ...eypadDef Scans and processes keypad data for key assignment debouncing press and release and repeat NOTE This function is also able to process an 8 8 matrix keypad RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef Get next keypress RETURN VALUE The next keypress or 0 if none SEE ALSO keyConfig keyProcess keypadDef void keyProcess void char keyGet void ...

Страница 89: ...y codes keyConfig 6 E 0 0 0 0 0 keyConfig 3 0 0 0 0 0 keyConfig 1 0 0 0 0 0 keyConfig 8 D 0 0 0 0 0 keyConfig 2 U 0 0 0 0 0 keyConfig 5 L 0 0 0 0 0 keyConfig 7 R 0 0 0 0 0 keyConfig 0 B 0 0 0 0 0 keyConfig 4 S 0 0 0 0 0 Characters are returned upon keypress with no repeat RETURN VALUE None SEE ALSO keyConfig keyGet keyProcess Writes 1 to each row and reads the value The position of a keypress is i...

Страница 90: ...xButtons is the number of buttons to initialize RETURN VALUE The unsigned long memory location of the BtnData area SEE ALSO btnCreateText btnCreateBitmap btnRecall btnStore btnDisplay btnDisplayLevel btnClear btnClearLevel btnAttributes btnMsgBox btnDisplayText btnClearRegion Stores the btnData structure in xmem SRAM This function is normally called by btnCreateText or by btnCreateBmp PARAMETERS x...

Страница 91: ...alled by the other functions as needed PARAMETERS xmemPtr is the unsigned long value assigned by btnInit BtnID is the button ID number to retrieve from xmem RETURN VALUE 1 when completed SEE ALSO btnStore btnInit btnDisplay btnDisplayLevel btnClear btnClearLevel int btnRecall unsigned long xmemPtr int BtnID ...

Страница 92: ... is the level to associate the button with buttons with the same level can be displayed together using the function btnDisplayLevel or they can be removed together using the function btnClearLevel bFont is a pointer to the font descriptor Text is a pointer to the text to display centered in the button RETURN VALUE 1 when completed EXAMPLE The text displayed can be multiline by inserting n within t...

Страница 93: ...buttons with the same level can be displayed together using the function btnDisplayLevel or they can be removed together using the function btnClearLevel bmp is a pointer to the bitmap to use bmpWidth is the horizontal size of the bitmap bmpHeight is the vertical size of the bitmap RETURN VALUE 1 when completed NOTE The button will be the bitmap size 16 pixels and will be centered with 8 pixels on...

Страница 94: ...ALUE 1 when completed SEE ALSO btnMsgBox btnDisplay Blanks a region of the LCD Do not use this function call to remove buttons if you use this function to remove a button from the LCD the button will still be enabled Instead use btnClear or btnClearLevel to remove buttons from the LCD PARAMETERS xStart is the pixel coordinate of the starting horizontal pixel yStart is the pixel coordinate of the s...

Страница 95: ...yed Frame is the frame type 1 oval 0 square Invert inverts the selection 0 normal display 1 inverted display RETURN VALUE 1 when completed SEE ALSO btnDisplayText Displays a predefined button on the LCD The attributes and text bitmap displayed and the location of the button are predefined by either btnCreateText or btnCreateBmp Once the button is dis played the touchscreen will monitor it for pres...

Страница 96: ...played on the LCD PARAMETERS xmemPtr is the unsigned long value assigned by btnInit BtnID is the button ID number of the button to remove RETURN VALUE 1 when completed SEE ALSO btnDisplayLevel btnDisplay btnClearLevel Removes a group of buttons having the same level PARAMETERS xmemPtr is the unsigned long value assigned by btnInit Level is the button level to remove use BTN_ALL_L to remove all the...

Страница 97: ... 0 buzzer off 1 buzzer on RETURN VALUE 1 when completed Searches the list of buttons in use for a button that matches the x y coordinates from the touchscreen PARAMETERS xmemPtr is the command code for the button assigned by btnInit x is the x coordinate of the location on the touchscreen y is the y coordinate of the location on the touchscreen RETURN VALUE The command code of the button correspon...

Страница 98: ...the cor rect button the function returns a negative number SEE ALSO btnSearchXY btnGet Checks the touchscreen x y coordinates against a given set of buttons being displayed to look for a match If a match is found then the button ID code for the button will be returned PARAMETERS xmemPtr is the command code for the button assigned by btnInit RETURN VALUE The button ID code of the button correspondi...

Страница 99: ...n and offset from the simulated EEPROM in flash The constants are stored in the the top 1K of the reserved user block memory area Use the sample program USERBLOCKINFOR C in SAMPLES OP7200 to get the addresses reserved for the calibration data constants and the addresses available for use by your application program RETURN VALUE 0 if sucessful 1 if invalid address or range SEE ALSO TsCalib TsCalibE...

Страница 100: ...TURN VALUE 0 touchscreen is not being pressed 1 touchscreen is being pressed SEE ALSO TsXYvector TsScanState TsXYBuffer brdInit This function processes the current state of the touchscreen The results can then be read with the TsXYBuffer function which will return one of the following 1 The current x y location of where the touchscreen is being pressed 2 A value indicating that the touchscreen pre...

Страница 101: ...touchscreen BTN_RELEASE status code that was processed by the TsScanState function RETURN VALUE The x coordinate is returned in the MSB and the y coordinate is returned in the LSB of the long integer value SEE ALSO TsXYvector TsActive TsScanState brdInit long TsXYBuffer void ...

Страница 102: ...ith the statement use LIBRARYFILENAME LIB or by cutting and pasting from the library file directly into the application Remember to enter LIBRARYFILENAME LIB into LIB DIR which is located in the Dynamic C directory if you use LIBRARYFILE NAME LIB To start the Font and Bitmap Converter use the Windows Start Run menu or Windows Explorer to launch fbmcnvtr exe from the root folder where Dynamci C is ...

Страница 103: ...in the STDIO window FUN C Demonstrates the features of the OP7200 A variable customer supplied 0 10 V DC power supply is recommended to demonstrate the analog input section USERBLOCKINFOR C Displays the addresses reserved for the analog calibration data constants and the addresses available for use by your application program 4 7 2 Digital I O The following sample programs are found in the IO subd...

Страница 104: ...el being used for a differential input with the input attenuator tied to the 2 V reference voltage AD_CAL_DIFF_GND C Demonstrates how to recalibrate an A D input channel being used for a differential input with the input attenuator tied to analog ground ADCAL_MA_CH C Demonstrates how to recalibrate an A D input channel being used to convert analog current measurements to generate the calibration c...

Страница 105: ...ey keypad instead of touchscreen to control vir tual keypad KP_ANALOG C Demonstrates using 9 key keypad instead of touchscreen to control virtual keypad KP_BASIC C Demonstrates the keypad functions KP_MENU C Demonstrates how to implement a menu system using the GLMENU LIB library 4 7 7 Touchscreen OP7200 only The following sample program is found in the LCD_TOUCHSCREEN subdirectory in SAMPLES OP72...

Страница 106: ... that particular RabbitCore module on another OP7200 and the previously saved calibration data would no longer apply SAVECALIB C This program demonstrates how to save your analog calibration coef ficients using a serial port and a PC serial utility such as Tera Term NOTE Use the sample program GETCALIB C to retrieve the data and rewrite it to the single board computer GETCALIB C This program demon...

Страница 107: ... kit More information is available at www zworld com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections If you do not have access to an Ethernet network use a crossover Ethernet cable to con nect the OP7200 to a PC that at least has a 10Base T Ethernet card If you have an Ethernet connection use a straight through Ethernet cable to estab...

Страница 108: ...the board reset input at pin 5 on screw terminal header J10 When the PROG connector of the programming cable connects the OP7200 to your PC and Dynamic C is running a RESET occurs when you press Ctrl Y The green LNK light on the OP7200 RabbitCore module is on when the OP7200 is prop erly connected either to an Ethernet hub or to an active Ethernet card The orange ACT light flashes each time a pack...

Страница 109: ...Dynamic C 7 30 we have taken steps to make it easier to run many of our sample programs Instead of the MY_IP_ADDRESS and other macros you will see a TCPCONFIG macro This macro tells Dynamic C to select your configuration from a list of default configurations You will have three choices when you encounter a sample program with the TCPCONFIG macro 1 You can replace the TCPCONFIG macro with individua...

Страница 110: ...orm TCP IP Ethernet adapter name Double click on this line to bring up the TCP IP properties dialog box You can edit the IP address directly and the subnet mask Disable obtain an IP address automatically You may want to write down the existing values in case you have to restore them later It is not necessary to edit the gateway address since the gateway is not used with direct connect The method o...

Страница 111: ...n the OP7200 should be on to indicate an Ethernet connection is made Note If the LNK light does not light you may not have a crossover cable or if you are using a hub perhaps the power is off on the hub The next step is to ping the board from your PC This can be done by bringing up the MS DOS window and running the ping program ping 10 1 1 2 or by Start Run and typing the command ping 10 1 1 2 Not...

Страница 112: ...t it executing Then bring up your Web browser and enter the following server address http 10 1 1 2 This should bring up the Web page served by the sample program The sample program TELNET C SAMPLES OP7200 TCPIP allows you to communi cate with the OP7200 using the Telnet protocol To run this program edit the IP address compile the program and start it running Run the Telnet program on your PC Start...

Страница 113: ... high power resistors 3 Leave at least 8 20 cm distance from electric power lines and even more from high voltage devices 4 When installing the OP7200 near devices with strong electrical or magnetic fields such as solenoids allow a least 3 8 cm more if necessary The OP7200 has strong environmental resistance and high reliability but you can maxi mize system reliability by avoiding or eliminating t...

Страница 114: ...ected by the software controlled contrast Install the OP7200 at a height and angle that makes it easy for the operator to see the screen 6 2 1 Bezel Mount Installation This section describes and illustrates how to bezel mount the OP7200 Follow these steps for bezel mount installation 1 Cut a mounting hole in the mounting panel in accordance with the recommended dimen sions in Figure 21 then use th...

Страница 115: ...rew Apply only one or two turns to each screw in sequence until all are tightened manually as far as they can be so that the gasket is compressed by the bezel faceplate OP7200 Bezel Gasket D23 D20 PWR PWR K OUT0 OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 GND IN12 IN13 IN14 IN15 RST TXC RXC TXD RXD 485 485 GND J10 J15 IN16 IN17 IN18 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND IN0 IN1 IN2 IN3 IN4 IN5 IN6 I...

Страница 116: ...er spots Do not use abrasives which will scratch the hard coating on the overlay Fresh paint splashes grease and smeared glazing compounds can be removed by rubbing gently with a grade of VM P naphta Windex or isopropyl alcohol Never use gasoline acetone carbon tetrachloride or highly alkaline cleaners Rinse afterwards with lukewarm water as described above Cleaning is not recommended when the OP7...

Страница 117: ...User s Manual 111 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the OP7200 ...

Страница 118: ...s Figure A 1 shows the mechanical dimensions for the OP7200 Figure A 1 OP7200 Dimensions NOTE All measurements are in inches followed by millimeters enclosed in parentheses 5 67 144 4 41 112 4 33 110 0 45 11 0 91 23 1 0 67 17 0 63 16 1 93 49 0 67 17 1 70 43 1 38 35 ...

Страница 119: ...to 250 mA each 40 V DC max Analog Inputs 8 single ended or 4 differential 200 kΩ input impedance 1 5 ksamples s sampling rate software controlled ranges 0 1 V 2 V 5 V 10 V 20 V DC 11 bit single ended 12 bit dif ferential None Connectors Four 12 position screw terminal headers 0 1 pitch Three 12 position screw terminal headers 0 1 pitch Serial Ports 4 serial ports two RS 232 or one RS 232 with CTS ...

Страница 120: ... C43 C44 R82 R83 R84 J9 R85 R86 R165 R164 R162 R89 R87 R88 C51 C50 R90 C48 JP3 J12 R71 R72 R59 R60 R66 C40 C66 JP6 JP5 R108 C65 JP8 R61 R159 R147 Q12 J7 Q13 C39 C49 C13 L9 D24 LS1 JP10 1 3 2 4 MSTR SLAVE D1 D3 D2 D5 D4 Q2 R24 Q4 R23 Q3 R22 Q8 R38 Q7 R37 Q6 R39 Q11 R55 Q10 R56 D6 D8 D9 R64 R62 R65 C86 C29 C30 C16 C17 C18 C6 C8 C7 R91 R14 DS1 DS2 TVS1 C82 J8 R152 R151 C85 C84 R149 J13 J16 J2 J6 J3 R...

Страница 121: ...2 OUT3 OUT4 OUT5 OUT6 OUT7 GND IN12 IN13 IN14 IN15 RST TXC RXC TXD RXD 485 485 GND J10 Q31 JP9 J15 R44 R41 R42 R40 R31 R29 R43 R46 R45 C33 JP4 R19 R26 R27 R30 R28 R25 R20 C2 R17 R16 IN16 IN17 IN18 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND R18 C4 R15 R1 R2 C1 JP1 D13 D12 D14 D15 C5 Y1 C60 C61 Q5 U2 1 60 C57 D11 R79 R78 R77 R76 R75 R74 C36 JP2 JP7 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7 IN8 IN9 IN10 IN11...

Страница 122: ...hown Table A 2 lists the configuration options 0 Ω surface mount resistors are used for all the positions except JP10 and J8 which use standard pluggable jumpers Table A 2 OP7200 Jumper Configurations Header Description Pins Connected Factory Default JP1 IN16 IN18 1 2 Pulled up to Vcc 2 3 Pulled down JP2 IN00 IN07 1 2 Pulled up to Vcc 2 3 Pulled down JP1 JP4 JP5 JP6 JP7 JP2 JP3 JP9 J8 JP10 JP8 R62...

Страница 123: ...reference JP9 LCD Controller I O bit VA16 1 2 VA16 not used 2 3 VA16 used additional 64K video SRAM JP10 Serial Master Slave Control 1 2 Reserved for future use 3 4 OP7200 in slave role n c Reserved for future use J8 RS 485 Bias and Termination Resistors 1 2 4 6 Bias and termination resistors connected 1 3 5 6 Bias and termination resistors not connected parking position for jumpers OUT0 OUT7 R64 ...

Страница 124: ...cc PA6 Input IN06 Pulled up to Vcc PA7 Input IN07 Pulled up to Vcc PB0 Input SS_CLK Pulled up to Vcc PB1 Input Programming Port Clock Pulled up to Vcc PB2 Input SS_CS Pulled up to Vcc PB3 Input SS_Mode Pulled up to Vcc RABBIT 2000 Port A Port B synch Serial Port B Port D Serial Port B Port E PA0 PA7 PB0 PB2 PB4 PB5 PB7 PD0 PD1 PD5 A0 A3 IORD IOWR D0 D7 RESET Data Lines Address Lines I O Control Wa...

Страница 125: ...0 Input Realtek CLK Initialized by sock_init PD1 Input Realtek SD0 Initialized by sock_init PD2 Output Not Used High PD3 Output ADC and Touchscreen Chip Select High PD4 Output ATXB RS 485 Serial Port B Inactive high PD5 Input ARXB RS 485 Inactive high PD6 Output Not Used High PD7 Output Not Used High PE0 Output ADC and Touchscreen Serial Clock High PE1 Output ADC and Touchscreen Data In High PE2 O...

Страница 126: ... converter or touchscreen PBDR Read PB4 0 touchscreen active 1 touchscreen not active PB4_TSC_PIRQ Touchscreen status PADR Read PA0 PA7 port pins IN0 IN7 Digital inpus IN0 IN7 0x8000 Read D0 D7 data lines IN8 IN15 Digital inpus IN8 IN15 0x8000 0x8007 Write 0 driver enabled 1 driver disabled SINK0 SINK7 Sinking driver control lines 0x8008 0x800F Write 0 driver enabled 1 driver disabled SOURCE0 SOUR...

Страница 127: ...rt LCD address A16 0 deassert LCD address A16 VA16 LCD address line A16 0xA008 Write 1 assert X9013 chip select 0 deassert X9013 chip select CS Contrast control chip select 0xA009 Write 1 set X9013 to count up 0 set X9013 to count down U_D Contrast control count mode 0xA00A Write increment X9013 counter when accessed data don t care INC Contrast control CLK line 0xA00B 0xA00F Reserved Not used 0xE...

Страница 128: ...122 eDisplay OP7200 ...

Страница 129: ...ew terminal header J10 The OP7200 can alternatively be powered by 24 V AC In this case the full wave bridge rectifier produces approximately 30 V DC at the input of the switching regulator Although a significant drop will be measured at the input to the switching regulator the voltage will never drop below 9 V DC As long as the minimum input level is maintained at the input to the regulator Vcc wi...

Страница 130: ...d on screw terminal headers J3 pin 12 and J10 pin 12 and an analog ground on screw terminal header J2 pin 12 The digital and ana log grounds share a single split ground plane on the printed circuit board Keeping the grounds separate isolates the noise of the digital section from the analog circuits provid ing for improved performance of the A D converter chip and the touchscreen controller The ana...

Страница 131: ...plied to the OP7200 and so the expected shelf life of the battery is The drain on the battery is typically less than 4 µA when external power is applied and so the expected battery in service life is B 2 1 Replacing the Backup Battery The battery is user replaceable and is fitted in a battery holder To replace the battery lift up on the spring clip and slide out the old battery Use only a Panasoni...

Страница 132: ... or pin 3 of header J7 The onboard battery does not have to be removed as it is protected against overvoltage by resistors R80 R81 By having both batteries connected either can be replaced from time to time without losing the data stored in the SRAM and the real time clock The external battery should be no more than 6 3 V Figure B 2 OP7200 External Battery Connections J3 J10 J2 J6 J7 Battery J1 R2...

Страница 133: ...lock thereby limiting the current consumed by the real time clock and lengthening the battery life It ensures that current can flow only out of the battery to prevent charging the battery A voltage VOSC is supplied to U6 which keeps the 32 768 kHz oscillator working when the voltage begins to drop VRAM and Vcc are nearly equal 100 mV typically 10 mV when power is supplied to the OP7200 R38 10 kW V...

Страница 134: ...powered by Vcc will not have a significantly different voltage than VRAM When the OP7200 is not in reset the RES_OUT line will be high This turns on Q2 caus ing its collector to go low This turns on Q5 allowing VRAM to nearly equal Vcc When the OP7200 is in reset the RES_OUT line will go low This turns off Q2 and Q5 providing an isolation between Vcc and VRAM B 2 5 Reset Generator The OP7200 s Rab...

Страница 135: ...1 to control the SRAM s CS signal CSRAM So with power applied CSRAM must be the same signal as CS1 and with power removed CSRAM must be held high but only needs to be battery voltage high Q3 and Q4 are MOSFET transistors with com plementary polarity They are both turned on when power is applied to the circuit They allow the CS signal to pass from the processor to the SRAM so that the processor can...

Страница 136: ...130 eDisplay OP7200 ...

Страница 137: ...0 Tool Kit to the OP7200 board Proceed as follows 1 Use the wires included in the OP7200 Tool Kit to connect header J1 on the Demonstra tion Board to the OP7200 The connections are shown in Figure C 1 for sample program DIGIN C in Figure C 2 for sample program DIGOUT C and in Figure C 3 for the OP7200 TCPIP TCP IP sample programs 2 Make sure that your OP7200 is connected to your PC and that the po...

Страница 138: ...72 R59 R60 R66 C40 C66 JP6 JP5 R108 C65 JP8 R61 R159 R147 Q12 J7 Q13 C39 C49 C13 L9 D24 LS1 JP10 1 3 2 4 MSTR SLAVE D1 D3 D2 D5 D4 Q2 R24 Q4 R23 Q3 R22 Q8 R38 Q7 R37 Q6 R39 Q11 R55 Q10 R56 D6 D8 D9 R64 R62 R65 C86 C29 C30 C16 C17 C18 C6 C8 C7 R91 R14 DS1 DS2 TVS1 C82 J8 R152 R151 C85 C84 R149 J13 J16 J2 J6 J3 GND R36 R169 R80 R81 D10 C32 C31 L2 J14 J1 Battery CAUTION Disconnect power before making...

Страница 139: ...6 C40 C66 JP6 JP5 R108 C65 JP8 R61 R159 R147 Q12 J7 Q13 C39 C49 C13 L9 D24 LS1 JP10 1 3 2 4 MSTR SLAVE D1 D3 D2 D5 D4 Q2 R24 Q4 R23 Q3 R22 Q8 R38 Q7 R37 Q6 R39 Q11 R55 Q10 R56 D6 D8 D9 R64 R62 R65 C86 C29 C30 C16 C17 C18 C6 C8 C7 R91 R14 DS1 DS2 TVS1 C82 J8 R152 R151 C85 C84 R149 J13 J16 J2 J6 J3 GND R36 R169 R80 R81 D10 C32 C31 L2 J14 J1 Battery CAUTION Disconnect power before making or removing ...

Страница 140: ... R147 Q12 J7 Q13 C39 C49 C13 L9 D24 LS1 JP10 1 3 2 4 MSTR SLAVE D1 D3 D2 D5 D4 Q2 R24 Q4 R23 Q3 R22 Q8 R38 Q7 R37 Q6 R39 Q11 R55 Q10 R56 D6 D8 D9 R64 R62 R65 C86 C29 C30 C16 C17 C18 C6 C8 C7 R91 R14 DS1 DS2 TVS1 C82 J8 R152 R151 C85 C84 R149 J13 J16 J2 J6 J3 GND R36 R169 R80 R81 D10 C32 C31 L2 J14 J1 Battery CAUTION Disconnect power before making or removing terminal connections J2 J6 J3 J10 PROG ...

Страница 141: ...ble The PROG connector is used only when the programming cable is attached to the pro gramming connector header J3 while a new application is being developed Otherwise the DIAG connector on the pro gramming cable allows the programming cable to be used as an RS 232 to CMOS level converter for serial communication which is appropriate for monitoring or debugging an OP7200 system while it is running...

Страница 142: ...nnected to this connector The programming port is then enabled as a diagnostic port by polling the port periodically to see if communication needs to begin or to enable the port and wait for interrupts The pull up resistors on RXA and CLKA prevent spurious data reception that might take place if the pins floated If the clocked serial mode is used the serial port can be driven by having two togglin...

Страница 143: ...ternate configuration Table D 1 OP7200 Programming Port Configurations Pin Pin Name Default Use Alternate Use Notes 1 RXA Serial Port A PC7 Input 2 GND 3 CLKA PB1 Bitwise or parallel programmable input 4 VCC 5 RESET Connected to reset genera tor U1 on OP7200 s RabbitCore module 6 TXA Serial Port A PC6 Output 8 STATUS Output 9 SMODE0 Input Must be low when OP7200 boots up 10 SMODE1 Input Must be lo...

Страница 144: ...138 eDisplay OP7200 ...

Страница 145: ...perfect Bugs are always present in a system of any size In order to prevent danger to life or property it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk involved All Z World products are 100 percent functionally tested Additional testing may include visual quality con trol inspections or mechanical defects analyzer inspections Sp...

Страница 146: ...140 eDisplay OP7200 ...

Страница 147: ... 40 E Ethernet cables 101 Ethernet connections 101 steps 101 Ethernet port 32 handling EMI and noise 32 pinout 32 F features 1 flash memory liefetime write cycles 39 flash memory bank select 33 H headers JP1 30 I I O address assignments 120 installation guidelines 107 introduction 1 IP addresses 104 how to set 103 how to set PC IP address 104 J jumper configurations 116 digital inputs 116 117 JP1 ...

Страница 148: ...PLE3WIRE C 98 SIMPLE485MASTER C 98 SIMPLE485SLAVE C 98 TCP IP 103 FLASH_XML C 106 PINGME C 105 SSI C 106 TELNET C 106 TCPIP 131 134 touchscreen BTN_16KEY C 99 BTN_BASICS C 99 BTN_KEYBOARD C 99 CAL_TOUCHSCREEN C 99 RD_TOUCHSCREEN C 99 TSCUST16KEY LIB 99 TSCUSTKEYBOARD LIB 99 USERBLOCKINFOR C 97 serial communication programming port 31 RS 232 description 28 RS 485 network 29 RS 485 termination and b...

Страница 149: ...tributes 91 btnClear 90 btnClearLevel 90 btnClearRegion 88 btnCreateBitmap 87 btnCreateText 86 btnDisplay 89 btnDisplayLevel 90 btnDisplayText 88 btnGet 92 btnInit 84 btnMsgBox 89 btnRecall 85 btnSearchXY 91 btnStore 84 btnVerifyXY 92 TsActive 94 TsCalib 93 TsCalibEERd 93 TsCalibEEWr 93 TsScanState 94 TsXYBuffer 95 TsXYvector 94 specifications header footprint 114 OP7200 dimensions 112 electrical ...

Страница 150: ...144 eDisplay OP7200 ...

Страница 151: ...m documentation schemat 090 0042 pdf 090 0128 Programming Cable Schematic www zworld com documentation schemat 090 0128 pdf The schematics included with the printed manual were the latest revisions available at the time the manual was last revised The online versions of the manual contain links to the latest revised schematic on the Web site You may also use the URL information provided above to a...

Страница 152: ......

Отзывы: