RabbitCore eDisplay OP7200 User Manual

¼ vga operator control panel
Table of Contents

Advertisement

Quick Links

eDisplay (OP7200)
¼ VGA Operator Control Panel
User's Manual
019–0116 • 060831–J

Advertisement

Table of Contents
loading

Summary of Contents for RabbitCore eDisplay OP7200

  • Page 1 eDisplay (OP7200) ¼ VGA Operator Control Panel User’s Manual 019–0116 • 060831–J...
  • Page 2 Trademarks Rabbit and Dynamic C are registered trademarks of Rabbit Semiconductor Inc. Rabbit 2000, RabbitCore, and RabbitNet are trademarks of Rabbit Semiconductor Inc. The latest revision of this manual is available on the Rabbit Semiconductor Web site, www.rabbit.com, for free, unregistered download.
  • Page 3: Table Of Contents

    ABLE OF ONTENTS Chapter 1. Introduction 1.1 Features ..............................1 1.2 Development and Evaluation Tools......................3 1.2.1 Tool Kit ............................3 1.2.2 Software ............................4 1.3 RabbitNet Peripheral Cards ........................5 1.4 CE Compliance .............................6 1.4.1 Design Guidelines .........................7 1.4.2 Interfacing the OP7200 to Other Devices ..................7 Chapter 2.
  • Page 4 4.3.4 A/D Converter Inputs ......................... 54 4.3.5 Graphic Display.......................... 55 4.3.6 Keypad............................55 4.3.7 Touchscreen (OP7200 only)....................... 55 4.3.8 Using System Information from the RabbitCore Module ............56 4.4 OP7200 Libraries ..........................57 4.5 OP7200 Function APIs........................58 4.5.1 Board Initialization ........................58 4.5.2 Digital I/O...........................
  • Page 5 Appendix B. Power Supply B.1 Power Supplies..........................139 B.1.1 Power for Analog Circuits......................140 B.1.2 Grounds ............................140 B.1.3 RabbitNet Power Supplies......................140 B.2 Batteries and External Battery Connections ..................141 B.2.1 Replacing the Backup Battery ....................141 B.2.2 External Battery........................142 B.2.3 Battery-Backup Circuit......................143 B.2.4 Power to VRAM Switch......................144 B.2.5 Reset Generator ........................144 B.3 Chip Select Circuit ...........................145 Appendix C.
  • Page 6 eDisplay (OP7200)
  • Page 7: Chapter 1. Introduction

    1. I NTRODUCTION The OP7200 intelligent operator interface is a small, high- performance, C-programmable data acquisition and display unit that offers built-in I/O, Ethernet connectivity, and an optional touchscreen. The OP7200 can be used in a control system with RabbitNet™ expansion I/O cards. A Rabbit 2000 microprocessor ®...
  • Page 8 128K Flash Memory 256K RJ-45 Ethernet Connector and Filter Capacitors RabbitCore Module Used RCM2200 A/D Converter Inputs 4096 × 4096 Touchscreen Additional 512K flash/512K SRAM memory options are available for custom orders involving nominal lead times. Contact your Rabbit Semiconductor sales representative or authorized distributor for more information.
  • Page 9: Development And Evaluation Tools

    1.2 Development and Evaluation Tools 1.2.1 Tool Kit A Tool Kit contains the hardware essentials you will need to use your OP7200. The items in the Tool Kit and their use are as follows. • OP7200 Getting Started instructions. • Dynamic C CD-ROM, with complete product documentation on disk. •...
  • Page 10: Software

    1.2.2 Software The OP7200 is programmed using version 7.30 or later of Rabbit Semiconductor’s Dynamic C. Web-based technical A compatible version is included on the Tool Kit CD-ROM. support is included at no extra charge. Rabbit Semiconductor also offers add-on Dynamic C modules and source code. In addi- tion to the Web-based technical support included at no extra charge, a one-year telephone- based technical support module is also available for purchase.
  • Page 11: Rabbitnet Peripheral Cards

    1.3 RabbitNet Peripheral Cards RabbitNet™ is an SPI serial protocol that uses a robust RS-422 differential signalling inter- face (twisted-pair differential signaling) to run at a fast 1 Megabit per second serial rate. The OP7200 has one RabbitNet port, which can support one peripheral card. Distances between a master processor unit and peripheral cards can be up to 10 m or 33 ft.
  • Page 12: Ce Compliance

    1.4 CE Compliance Equipment is generally divided into two classes. CLASS A CLASS B Digital equipment meant for light industrial use Digital equipment meant for home use Less restrictive emissions requirement: More restrictive emissions requirement: less than 40 dB µV/m at 10 m 30 dB µV/m at 10 m or 100 µV/m (40 dB relative to 1 µV/m) or 300 µV/m These limits apply over the range of 30–230 MHz.
  • Page 13: Design Guidelines

    1.4.1 Design Guidelines Note the following requirements for incorporating the OP7200 operator control panels into your application to comply with CE requirements. General • The power supply provided with the Tool Kit is for development purposes only. It is the customer’s responsibility to provide a CE-compliant power supply for the end-product application.
  • Page 14 eDisplay (OP7200)
  • Page 15: Chapter 2. Getting Started

    2. G ETTING TARTED Chapter 2 explains how to connect the programming cable and power supply to the OP7200. User’s Manual...
  • Page 16: Power Supply Connections

    2.1 Power Supply Connections 1. Connect the bare ends of the power supply to the +PWR -PWR positions on pins 1 and 2 of screw terminal header J3 as shown in Figure 2. The polarity of your connec- tions is not important because the power-supply circuit has a full-wave bridge rectifier. R159 CAUTION: Disconnect power MSTR...
  • Page 17: Demonstration Program On Power-Up

    2.2 Demonstration Program on Power-Up A repeating sequence of graphics and menus will be displayed on the LCD when power is first applied to the OP7200. Press any of the five keypad buttons immediately below the LCD to select the corresponding demonstration. When you are in a menu demo screen, press the 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.
  • Page 18: Programming Cable Connections

    J1 on the PROG OP7200’s RabbitCore module. Ensure that the colored edge lines up with pin 1 as shown. (Do not use the connector, which is used for monitoring only.) Connect the other end DIAG of the programming cable to a COM port on your PC.
  • Page 19: Installing Dynamic C

    2.4 Installing Dynamic C If you have not yet installed Dynamic C version 7.30 (or a later version), do so now by inserting the Dynamic C CD from the OP7200 Tool Kit in your PC’s CD-ROM drive. The CD will auto-install unless you have disabled auto-install on your PC. If the CD does not auto-install, click Start >...
  • Page 20: Pong.c

    2.6 PONG.C You are now ready to test your set-up by running a sample program. Find the file , which is in the Dynamic C folder. To run the program, PONG.C SAMPLES open it with the menu (if it is not still open), then compile and run it by pressing File by selecting in the...
  • Page 21: Remove Battery Tab

    2.8 Remove Battery Tab The backup battery on the OP7200 has a plastic tab to protect the battery against discharg- ing before the OP7200 is placed into service. Although the battery is located inside the OP7200’s protective casing, it is possible to reach the plastic tab using pliers or tweezers from the opening on the side of the OP7200 shown in Figure 4.
  • Page 22 eDisplay (OP7200)
  • Page 23: Chapter 3. Subsystems

    It is a good idea to save the calibration constants should you need to replace a RabbitCore module in the future. See Section 4.3.8, “Using System Information from the RabbitCore Module,” for more information.
  • Page 24: Op7200 Pinouts

    Standard OP7200 models are equipped with four 1 × 12 screw terminal strips (J2, J3, J6, and J10), and a 2 × 5 programming header and an RJ-45 Ethernet jack on the RCM2200 RabbitCore module. The RJ-45 jack labeled RabbitNet is a serial I/O expansion port for use with RabbitNet I/O cards.
  • Page 25: Indicators

    3.2 Indicators 3.2.1 LEDs The OP7200 has two LEDs, Power Good Microprocessor Bad The green Power Good LED at DS2 indicates when power is applied to the OP7200 and that Vcc is within the proper operating range of 4.5 to 5.5 V. The LED turns off when the OP7200 is being reset.
  • Page 26: Digital I/O

    3.3 Digital I/O 3.3.1 Digital Inputs The OP7200 has 19 digital inputs, IN0–IN18, each of which is protected over a range of –36 V to +36 V. The inputs are factory-configured to be pulled up to +5 V, but they can also be pulled down to 0 V in banks of eight by changing a surface-mounted 0 Ω...
  • Page 27 The digital inputs are each fully protected over a range of -36 V to +36 V, and can handle short spikes of ±40 V. Normal Switching Levels Spikes +40 V Spikes +36 V +3.3 V –40 V Spikes Figure 8. OP7200 Digital Input Protected Range User’s Manual...
  • Page 28: Digital Outputs

    3.3.2 Digital Outputs The OP7200 has eight digital outputs, OUT0–OUT7, which are individually configurable with the software function calls as sinking digoutConfig digoutTriStateConfig (up to 350 mA per channel) or as sourcing (up to 250 mA per channel). Figure 9 shows a wiring diagram for using the digital outputs in a sinking or a souring configuration.
  • Page 29 boards can be made to order in volume with the digital outputs pulled up to Vcc or +K, or pulled down to GND. Contact your authorized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information. +K is an externally supplied voltage of 9–40 V DC used primarily in combination with current sourcing outputs, and should be capable of delivering up to 2 A.
  • Page 30: Analog Features (Op7200 Only)

    3.4 Analog Features (OP7200 only) The single A/D converter used in the OP7200 (the OP7210 does not have analog or touch- screen capabilities) has a resolution of 11 bits (single-ended mode) or 12 bits (differential mode). There are eight channels of A/D conversion, and the OP7200 also has provision for up to four digital inputs.
  • Page 31 The A/D converter chip can make either single-ended or differential measurements depending on the value of the parameter in the software function call. Adjacent opmode A/D converter inputs are paired to make differential measurements. The default setup for the OP7200 is to measure only positive voltages for the ranges listed in Table 2. Table 2.
  • Page 32 The A/D converter chip can only accept positive voltages. When the 0 Ω resistor shown in Figure 11 ties the A/D attenuator circuit to analog ground, both differential inputs must be ref- erenced to analog ground, and both inputs must be positive with respect to analog ground. If a device such as a battery is con- nected across two channels for a 180 kW...
  • Page 33: Analog Current Measurements

    The input circuit of the OP7200 was designed to use the differential mode in a unique way to support measuring voltages in an equal range above and below ground. This method also requires you to move the 0 Ω jumper (see Figure 11) on the header associated with the A/D converter inputs (JP4, JP5, JP6, or JP7) from analog ground to the 2.048 V reference voltage.
  • Page 34: Calibrating The A/D Converter Chip

    3.4.3 Calibrating the A/D Converter Chip Manufacturing tolerances for resistors, bias currents, offset voltages, gain, and the like introduce errors into the A/D conversions. Ideally there would be a one-to-one straight- line relationship between the input voltage and the output of the A/D converter, and a graph of such a line would have a slope of 1 and would pass through the (0,0) coordinate.
  • Page 35 To get the best results form the A/D converter, it is necessary to calibrate each mode for each of its gains. The following table provides a grid for each possible set of calibration constants. Mode Single-Ended Differential Gain Code For the single-ended mode there are calibration constants for each channel and for each of its gains, for a total of 64 sets of calibration constants.
  • Page 36 calibration is performed and the jumper is subsequently moved, the corresponding input(s) must be recalibrated. The calibration table only holds calibration constants based on mode, channel, and gain. Other factors affecting the calibration must be taken into account by calibrating using the same mode and gain setup as in the intended use. It is not necessary to fill out the entire calibration table.
  • Page 37: Touchscreen

    3.4.4 Touchscreen The OP7200 analog touchscreen provides a high-resolution matrix of 4096 × 4096 elements. The touchscreen is mounted to the front of and is the same size as the LCD mod- ule. A four-conductor flex cable connects the touchscreen to the OP7200 at connector J13. The inputs from the touchscreen are protected from ESD by ferrite beads, capacitors, and shunt diodes.
  • Page 38: A/D Converter Reference Voltage (+V)

    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 to bias the input attenuator circuits when bipolar inputs are to be measured. As shown in Figure 14, the factory default is for a surface-mounted 0 Ω...
  • Page 39: Serial Communication

    3.5 Serial Communication The OP7200 has two RS-232 serial ports, which can be configured as one RS-232 serial channel (with RTS/CTS) or as two RS-232 (3-wire) channels using the software serMode function call. Table 5 summarizes the options. Table 5. Serial Communication Configurations Serial Port Software Mode...
  • Page 40: Rs-232

    3.5.1 RS-232 The OP7200 RS-232 serial communication is supported by an RS-232 transceiver. This transceiver provides the voltage output, slew rate, and input voltage immunity required to meet the RS-232 serial communication protocol. Basically, the chip translates the Rabbit 2000’s CMOS/TTL signals to RS-232 signal levels. Note that the polarity is reversed in an RS-232 circuit so that a +5 V output becomes approximately -10 V and 0 V is output as +10 V.
  • Page 41 The OP7200 comes with a 220 Ω termination resistor and two 681 Ω bias resistors installed and enabled with jumpers across pins 1–2 and 4–6 on header J8, as shown in Figure 16. 485+ bias 681 W termi- 220 W nation R159 MSTR...
  • Page 42: Rabbitnet Port

    3.5.3 RabbitNet Port The RJ-45 jack labeled RabbitNet is a serial I/O expansion port for use with RabbitNet I/O cards. The RabbitNet jack does not support Ethernet connections. There is also no provision for the OP7200 to supply power to any RabbitNet peripheral cards. When you are using the OP7200 in a RabbitNet network, Serial Port B is configured as a clocked serial port and the RS-485 chip drives the RabbitNet port—the OP7200 then cannot be used for RS-485 serial communication.
  • Page 43: Ethernet Port

    3.5.4 Ethernet Port Figure 17 shows the pinout for the Ethernet port (J2 on the OP7200’s RabbitCore module). Note that there are two standards for numbering the pins on this connector—the convention used here, and numbering in reverse to that shown. Regardless of the numbering conven-...
  • Page 44: Programming Port

    The /RESET_IN pin is an external input that is used to reset the Rabbit 2000 and the onboard peripheral circuits on the RabbitCore module. The serial programming port can be used to force a hard reset on the RabbitCore module by asserting the /RESET_IN signal. The green Power Good LED goes off momentarily during a reset.
  • Page 45: Memory

    3.6 Memory 3.6.1 SRAM The OP7200’s RabbitCore module is designed to accept 128K to 512K of SRAM pack- aged in an SOIC case. The standard OP7200’s RabbitCore modules come with 128K of SRAM. 3.6.2 Flash Memory The OP7200 is also designed to accept 128K to 512K of flash memory. The standard OP7200’s RabbitCore modules comes with one 256K flash memory.
  • Page 46: Liquid Crystal Display Controller

    The LCD module controller chip provides support for the LCD module. The controller chip is attached to the data bus on the OP7200’s RabbitCore module, and is mapped to the I/O address space. This interface is composed of eight data bits, one address line, and three control lines (/IORD, /IOWR, and /LCDM-CS).
  • Page 47: Keypad

    3.8 Keypad The OP7200 is equipped with a nine-position keypad. The keypad is attached to the front bezel with an adhesive backing and is connected through J16 to the OP7200 printed- circuit board with a flex cable. Only 7 of the 10 conductors in the cable are used at the present time.
  • Page 48: Op7200 Cpld

    OP7200. The CPLD interfaces to the address and data bus on the RabbitCore module, and is write- only. Two chip select lines, /PE4 and /PE5, are used to enable the device. /PE4 and /PE5 are configured in software as I/O strobes, and set the base address used by the CPLD.
  • Page 49 Table 6. CPLD Parameters (continued) /PE5 /PE4 A3–0 Signal Function 1011 SOURCE3 Enable Source Output 3 1011 SOURCE3 Disable Source Output 3 1100 SOURCE4 Enable Source Output 4 1100 SOURCE4 Disable Source Output 4 1101 SOURCE5 Enable Source Output 5 1001 SOURCE5 Disable Source Output 5 1110...
  • Page 50: Programming Cable

    DIAG connector of the programming cable may be used on the programming header of the RabbitCore module with the module operating in the Run Mode. This allows the pro- gramming port to be used as a regular serial port. 3.10.1 Changing Between Program Mode and Run Mode...
  • Page 51: Other Hardware

    There is no spectrum spreader functionality for OP7200 operator control panels that do not carry the CE mark on their RabbitCore module or when using any OP7200 with a ver- sion of Dynamic C prior to 7.30.
  • Page 52 eDisplay (OP7200)
  • Page 53: Chapter 4. Software

    4. S OFTWARE Dynamic C is an integrated development system for writing embedded software. It runs on an IBM-compatible PC and is designed for use with single-board computers and other devices based on the Rabbit microprocessor. Chapter 4 provides the libraries, function calls, and sample pro- grams related to the OP7200.
  • Page 54 Developing software with Dynamic C is simple. Users can write, compile, and test C and assembly code without leaving the Dynamic C development environment. Debugging occurs while the application runs on the target. Alternatively, users can compile a program to an image file for later loading. Dynamic C runs on PCs under Windows 98 or later. Pro- grams can be downloaded at baud rates of up to 460,800 bps after the program compiles.
  • Page 55: Upgrading Dynamic C

    4.1.1 Upgrading Dynamic C 4.1.1.1 Patches and Bug Fixes Dynamic C patches that focus on bug fixes are available from time to time. Check the Web site www.rabbit.com/support/ for the latest patches, workarounds, and bug fixes. The default installation of a patch or bug fix is to install the file in a directory (folder) dif- ferent from that of the original Dynamic C installation.
  • Page 56: Accessing And Downloading Dynamic C Libraries

    4.1.2 Accessing and Downloading Dynamic C Libraries The libraries needed to run the OP7200 are available on the CD included with the Devel- opment Kit. Upgrades may be downloaded from www.rabbit.com/support/downloads/ our Web site. You may need to download upgraded or additional libraries to run selected RabbitNet peripheral boards or to use an OP7200 purchased after January, 2006, with a Dynamic C release prior to v.
  • Page 57: Font And Bitmap Converter

    4.2 Font and Bitmap Converter The Font and Bitmap Converter is a utility included with Dynamic C to convert Windows fonts and monochrome bitmaps to a library file format compatible with Dynamic C appli- cations and Rabbit Semiconductor’s graphic displays. These library files may be added to applications with the statement or by cutting and pasting #use LIBRARYFILENAME.LIB...
  • Page 58: Sample Programs

    4.3 Sample Programs Sample programs are provided in the Dynamic C folder. The sample program SAMPLES demonstrates the output to the window. The various directories in the STDIO PONG.C folder contain specific sample programs that illustrate the use of the correspond- SAMPLES ing Dynamic C libraries.
  • Page 59: Serial Communication

    4.3.3 Serial Communication The following sample programs are found in the subdirectory in RS232 SAMPLES\OP7200 —This program transmits and then • PUTS.C receives an ASCII string on Serial Ports C and D. The serial data received are displayed in the window.
  • Page 60: A/D Converter Inputs

    —This program demonstrates a simple RS-485 transmission of lower case • MASTER.C letters to a slave. The slave will send back converted upper case letters back to the master OP7200 and display them in the window. Use to program the STDIO SLAVE.C slave.
  • Page 61: Graphic Display

    4.3.5 Graphic Display The following sample program is found in the subdirectory in LCD_BASIC SAMPLES\OP7200 —Demonstrates how to improve LCD performance by using the • BUFFLOCK.C functions. glBuffLock glBuffUnlock —Demonstrates how to adjust the contrast on the LCD. • CONTRAST.C —Demonstrates the primitive graphic functions to draw lines, circles, •...
  • Page 62: Using System Information From The Rabbitcore Module

    5-digit number of your choice, and will be unique to a particular OP7200. Do not use the MAC address on the bar code label of the RabbitCore module attached to the OP7200 since you may at some later time use that particular RabbitCore module on another OP7200, and the previously saved calibration data would no longer apply.
  • Page 63: Op7200 Libraries

    4.4 OP7200 Libraries The following library folders contain the libraries whose function calls are used to develop applications for the OP7200. —libraries associated with features specific to the OP7200. The functions in • OP7200 library are described in Section 4.5, “OP7200 Function APIs.”. OP72xx.LIB —libraries associated with the LCD display.
  • Page 64: Op7200 Function Apis

    4.5 OP7200 Function APIs 4.5.1 Board Initialization void brdInit (void); Call this function at the beginning of your program. This 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.
  • Page 65: Digital I/O

    4.5.2 Digital I/O void digOutConfig(char outputMode); This functions is used to configure the high-current outputs as either a sinking or a sourcing type output. Note that brdInit must be executed before calling this function. PARAMETERS outputMode is an 8-bit parameter where each bit corresponds to a high-current output: Bit 7 = OUT7 Bit 6 = OUT6 Bit 5 = OUT5...
  • Page 66 void digTriStateConfig(char triState); Allows a given channel to be configured as a tristate type output. When a channel is configured as a tristate output, then digOutTriState can be used to control that channel. A run-time error will occur for the following conditions: digOut is disabled from controlling any channel that is configured as a tristate output.
  • Page 67 void digOutTriState(int channel, int state); Sets the state of a digital output channel (OUT0–OUT7). This function is intended to control a given channel as a tristate output, for example: 0 = Active low state (GND potential) 1 = Active High state (+K potential) 2 = High-Impedance state.
  • Page 68: Leds

    4.5.3 LEDs void ledOut(int led, int value) Turns LED DS1 (Microprocessor Bad) on or off. NOTE: Once the brdInit function executes, then the Microprocessor Bad indicator is available for other use in the application. ARAMETERS is the LED to control 0 = LED DS1 (Microprocessor Bad indicator) value is used to control whether the LED is on or off...
  • Page 69: Serial Communication

    4.5.4 Serial Communication Library files included with Dynamic C provide a full range of serial communication sup- port. The library provides a set of circular-buffer-based serial functions. The RS232.LIB library provides packet-based serial functions where packets can be delim- PACKET.LIB ited by the 9th bit, by transmission gaps, or with user-defined special characters.
  • Page 70 int serMode(int mode); 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 serial ports. This function is non-reentrant. If Mode 1 or Mode 3 is selected, CTS/RTS flow control is exercised using the serCflowcontrolOn serCflowcontrolOff...
  • Page 71: A/D Converter Inputs (Op7200 Only)

    4.5.5 A/D Converter Inputs (OP7200 only) unsigned int anaIn(int channel, int opmode, int gaincode); Reads the state of an analog input channel. PARAMETERS channel is the analog input channel number (0 to 7) corresponding to AIN0–AIN7: Single-Ended Input Differential Input channel +AIN0 +AIN0 -AIN1...
  • Page 72 int anaInCalib(int channel, int opmode, int gaincode, int value1, float volts1, int value2, float volts2); Calibrates the response of the A/D converter channel as a linear function using the two conversion points provided. Four values are calculated and placed into global table _adcCalib to be stored later into using the function...
  • Page 73 value1 is the first A/D converter channel value (0–2047). volts1 is the voltage or current 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.
  • Page 74 float anaInVolts(int channel, int gaincode); Reads the state of a single-ended analog input channel and uses the previously set calibration constants to convert the reading to volts. PARAMETERS channel is the analog input channel number (0 to 7) corresponding to AIN0–AIN7: Single-Ended Input channel +AIN0...
  • Page 75 float anaInDiff(unsigned int channel, unsigned int gaincode); Reads the state of a differential analog input channel and uses the previously set calibration constants to convert it to volts. PARAMETERS channel is the channel number (0, 2, 4, 6): Differential Channel Input Lines +AIN0 -AIN1 +AIN2 -AIN3...
  • Page 76 int anaInmAmps(unsigned int channel); Reads the state of an analog input channel and uses the previously set calibration constants to convert it to current. PARAMETER channel is 0–7: 4–20 mA Channel Input Lines AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 RETURN VALUE A current value between 4–20 mA (0.004 and 0.020 A) corresponding to the current on the analog input...
  • Page 77 int anaInEERd(unsigned int channel, int opmode, unsigned int gaincode); Reads the calibration constants, gain, and offset for an input based on its designated channel code position into global table _adcCalib . The constants are stored in the top 1K of the reserved user block memory area.
  • Page 78 RETURN VALUE 0 if successful. -1 if address is invalid or out of range. SEE ALSO anaInEEWr, anaInCalib, brdInit eDisplay (OP7200)
  • Page 79 int anaInEEWr(unsigned int channel, int opmode, unsigned int gaincode); Writes the calibration constants, gain, and offset for an input based on its designated channel code position from global table _adcCalib . The constants are stored in the top 1K of the reserved user block memory area.
  • Page 80 RETURN VALUE 0 if successful. -1 if address is invalid or out of range. SEE ALSO anaInEERd, brdInit eDisplay (OP7200)
  • Page 81: Graphic Display Functions

    4.5.6 Graphic Display Functions 4.5.6.1 On-Screen Menus library in the directory provides function GLMENU.LIB LIB\DISPLAYS\GRAPHIC calls to display menus on the OP7200 LCD display. When x and y coordinates on the display screen are specified, x can range from 0 to 319, and y can range from 0 to 239. These numbers represent pixels counted from the top left corner of the display.
  • Page 82 RETURN VALUE 0 = success -1 = border parameter value is invalid SEE ALSO glMenu, glMenuClear, glRefreshMenu int glMenu(windowMenu *mPtr, int *state, int x, int y); Displays a menu on the LCD display and get the menu options from the user. NOTE: This function will display an error message on the LCD if the menu width or height exceeds the LCD display boundaries.
  • Page 83 glMenuClear(windowMenu *mPtr); Clears the menu indicated by the WindowMenu descriptor pointer. PARAMETER mPtr windowMenu is a descriptor pointer RETURN VALUE None. SEE ALSO glRefreshMenu, glMenu, glMenuInit User’s Manual...
  • Page 84 4.5.6.2 Graphic Drawing Routines library in the directory provides function calls GRAPHIC.LIB DISPLAYS\GRAPHIC for primitive graphic drawing routines such as lines, circles, and polygons. void glInit(void); Initializes the display devices, clears the screen. This function call must be made prior to any other graphic function calls.
  • Page 85 void glFillScreen(int pattern); Fills the LCD display screen with a pattern. PARAMETER pattern 0xFF = all black 0x00 = all white anything else = vertical stripes SEE ALSO glBlock, glBlankScreen, glPlotPolygon, glPlotCircle void glBlankScreen(void); Blanks (sets to white) the LCD display screen. SEE ALSO glFillScreen, glBlock, glPlotPolygon, glPlotCircle void glSetBrushType(int type);...
  • Page 86 void glGetBrushType(void); Gets the current method (or color) of pixels drawn by subsequent graphics calls. RETURN VALUE The current brush type. SEE ALSO glSetBrushType void glPlotDot(int x, int y); Draws a single pixel in the LCD buffer, and on the LCD if the buffer is unlocked. If the coordinates are outside the LCD display area, the dot will not be plotted.
  • Page 87 void glBlock(int x, int y, int bmWidth, int bmHeight); Draws a rectangular block in the page buffer, and on the LCD if the buffer is unlocked. Any portion of the block that is outside the LCD display area will be clipped. PARAMETER is the x coordinate of the upper left corner of the block is the y coordinate of the left top corner of the block...
  • Page 88 void glFillPolygon(int n, int x1, int y1, int x2, int y2, ...); Draws a filled 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.
  • Page 89 void glPlotCircle(int xc, int yc, int rad); Draws a circle in the LCD page buffer, and on the LCD if the buffer is unlocked. Any portion of the circle that is outside the LCD display area will be clipped. PARAMETERS is the x coordinate of the center of the circle is the y coordinate of the center of the circle is the radius of the circle (in pixels)
  • Page 90 void glPrintf(int x, int y, fontInfo *pInfo, char *fmt, ...); Prints a formatted string (much like printf ) on the LCD screen. Only the character codes that exist in the font set are printed, all others are skipped over. For example, '\b' '\t' '\n'...
  • Page 91 unsigned long glFontCharAddr(fontInfo *pInfo, char letter); Returns the xmem address of a character from the specified font set. PARAMETERS pInfo is the xmem address of the bitmap font set latter is an ASCII character RETURN VALUE xmem address of the bitmap character font, column-major and byte-aligned. SEE ALSO glPutFont, glPrintf void glPutFont(int x, int y, fontInfo *pInfo,...
  • Page 92 int TextWindowFrame(windowFrame *window, fontInfo *pFont, int x, int y, int winWidth, int winHeight) Defines a text-only display window. This function provides a way to display characters within the text window only using character row and column coordinates. The text window feature provides end-of-line wrapping and clipping after the character in the last col- umn and row is displayed.
  • Page 93 void TextCursorLocation(windowFrame *window, int *col, int *row); Gets the current cursor location that was set by one of the graphic text functions. NOTE: Be sure to execute the TextWindowFrame function before using any of the text-only functions (TextGotoXY, TextPutChar, TextPrintf, TextCursorLocation).
  • Page 94 void TextPrintf(struct windowFrame *window, char *fmt, ...); This function prints a formatted string (much like printf ) on the LCD screen. Only printable charac- ters in the font set are printed; escape sequences '\r' '\n' are also recognized. All other escape sequences will be skipped over.
  • Page 95 void glHScroll(int left, int top, int cols, int rows, int nPix); Scrolls right or left within the defined window by nPix number of pixels. The opposite edge of the scrolled window will be filled in with white pixels. The window must be byte-aligned. Parameters will be verified for the following: 1.
  • Page 96 void glVScroll(int left, int top, int cols, int rows, int nPix); Scrolls up or down within the defined window by nPix number of pixels. The opposite edge of the scrolled window will be filled in with white pixels. The window must be byte-aligned. Parameters will be verified for the following: 1.
  • Page 97 void glXPutFastmap(int left, int top, int width, int height, unsigned long bitmap); Draws bitmap in the specified space. The data for the bitmap are stored in xmem . This is like glXPutBitmap , except that it's faster. The restriction is that the bitmap must be byte-aligned. Any portion of a bitmap image or character that is outside the LCD display area will be clipped.
  • Page 98 void glXGetFastmap(int left, int top, int width, int height, unsigned long xmemptr); Draws bitmap in the specified space. The data for the bitmap are stored in xmem . This is like glXPutBitmap , except that it's faster. The restriction is that the bitmap must be byte-aligned. Any portion of a bitmap image or character that is outside the LCD display area will be clipped.
  • Page 99 void TextWinClear(windowFrame *wPtr); Clears the entire area within the specified text window. PARAMETER wPtr is a pointer to the window frame descriptor SEE ALSO TextGotoXY, TextPrintf, TextWindowFrame, TextCursorLocation int TextMaxChars(windowFrame *wPtr); Returns the maximum number of characters that can be displayed within the text window. The Tex- tWindowFrame function must be executed before running this function.
  • Page 100 4.5.6.3 LCD Screen Control library in the directory provides SED1335F.LIB DISPLAYS\GRAPHIC\320x240 low-level drivers for the SED1335F graphic chip. NOTE: Remember to call glInit from GRAPHIC.LIB before calling any of the func- tions described in this section. void glAnimation(int OnOff); Enables/disables the graphic animation mode. The animation mode is defaulted OFF when the graphic driver is executed.
  • Page 101 void glSetContrast(int contrast); Sets the LCD display contrast. PARAMETER contrast represents the contrast level (0 to 31 for low to high contrast), with a typical setting of 20. SEE ALSO glBacklight void glDispOnOff(int onOff); This function is not supported at the present time. User’s Manual...
  • Page 102: Keypad Functions

    4.5.7 Keypad Functions library in the directory provides function calls to keypad KEYPAD9.LIB Keypads menus for the OP7200 keypad. void keyInit(void); Initializes keypad process void keyConfig(char cRaw, char cPress, char cRelease, char cCntHold, char cSpdLo, char cCntLo, char cSpdHi); Assigns each key with key press and release codes, and hold and repeat ticks for auto repeat and debouncing.
  • Page 103 cSpdHi is a high-speed repeat tick. How many times to repeat after low speed repeat. 0 = None. RETURN VALUE None. SEE ALSO keyProcess, keyGet, keypadDef void keyProcess(void); Scans and processes keypad data for key assignment, debouncing, press and release, and repeat. NOTE: This function is also able to process an 8 ×...
  • Page 104 void keypadDef(); Configures the physical layout of the keypad with the desired ASCII return key codes. Keypad physical mapping 3 × 4 where 'E' represents the ENTER key ‘+’ represents Page Up ‘-’ represents Page Down 'D' represents Scroll Down 'U' represents Scroll Up 'L' represents Scroll Left 'R' represents Scroll Right...
  • Page 105: Touchscreen (Op7200 Only)

    4.6 Touchscreen (OP7200 only) library in the directory allows the user to GLTOUCHSCREEN.LIB TouchScreens link adjacent pixel locations on the LCD to create a button. The button can then be trans- lated by the touchscreen when pressed.When x and y coordinates on the display screen are specified, x can range from 0 to 319, and y can range from 0 to 239.
  • Page 106 int btnRecall(unsigned long xmemPtr, int BtnID); Retrieves a btnData structure that was stored in xmem SRAM. This is function is normally called by the other functions as needed. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors BtnID is the button ID number to retrieve from xmem...
  • Page 107 int btnCreateText(unsigned long xmemPtr, int BtnID, int xStart, int yStart,int xSize, int ySize, char Attribs, char Level, fontInfo *bFont, char *Text); Creates a button with a text label. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors BtnID is the button ID number of the button being created xStart...
  • Page 108 int btnCreateBitmap(unsigned long xmemPtr, int BtnID, int xStart, int yStart, char Attribs, char Level, unsigned long bmp, int bmpWidth, int bmpHeight); Creates a button with a bitmap. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors BtnID is the button ID number of the button being created xStart...
  • Page 109 int btnDisplayText(int xStart, int yStart, int xSize, int ySize, fontInfo *pInfo, char *Text); Displays text on the LCD. The text will be centered automatically both horizontally and vertically. '\n' within the text will give you the capability for multiline text. For example, "Hello\nfrom\nZ-World"...
  • Page 110 int btnMsgBox(int xStart, int yStart, int xSize, int ySize, fontInfo *pInfo, char *Text, int Frame, int Invert); Displays a message or text box on the LCD. The box can be square or oval-framed, and it can be inverted. The text will be centered automatically both horizontally and vertically. '\n' within the text will give you the capability of multiline text.
  • Page 111 int btnDisplayLevel(unsigned long xmemPtr, char Level); Displays predefined buttons having the same level setting. The level is defined by either btnCreate- Text btnCreateBmp btnDisplayLevel allows you to display a group of buttons with a single function call. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors Level...
  • Page 112 int btnAttributes(unsigned long xmemPtr, int btn, int RepeatCntrl,int InitRepeatDelay, int RepeatDelay, int BuzzerCntrl); Sets the button attributes for the action to be taken when the button is pressed. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors is the button ID number RepeatCntrl sets repeat enable/disable (0 = repeat off, 1 = repeat on)
  • Page 113 int btnVerifyXY(unsigned long xmemPtr, int btn, int x, int y); Searches the list of buttons in use for a button that matches the x,y coordinates from the touchscreen. PARAMETERS xmemPtr is the xmem address of the pointer to an array of button descriptors is the button ID code of the button to be verified is the x coordinate of the location on the touchscreen is the y coordinate of the location on the touchscreen...
  • Page 114 library in the directory provides low-level touch- TS_R4096.LIB TouchScreens screen function calls. int TsCalib(int x1, int y1, int x2, int y2); Calibrates the touchscreen as a linear function using the two sets of x,y coordinates provided. Gain and offset constants are calculated and placed into the global table _adcCalibTS PARAMETERS is the x coordinate of the upper left-hand corner of the touchscreen...
  • Page 115 void TsXYvector(int *xkey, int *ykey, int mode); Reads the current x,y coordinates of the touchscreen PARAMETERS xkey is a pointer to the x coordinate ykey is a pointer to the y coordinate mode is the mode of operation: RAW_MODE )—raw mode, returns touchscreen x, y coordinate's true raw data value CAL_MODE )—calibration mode, returns touchscreen x, y coordinates as normalized data values to match the LCD display resolution...
  • Page 116 long TsXYBuffer(void); This function returns either the x,y coordinates or the touchscreen BTN_RELEASE status code that was TsScanState processed by the 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.
  • Page 117: Rabbitnet Port

    4.7 RabbitNet Port The function calls described in this section are used to configure the OP7200 for use with RabbitNet peripheral boards. The user’s manual for the specific peripheral board you are using contains additional function calls related to the RabbitNet protocol and the individ- ual peripheral board.
  • Page 118 void rn_sp_enable(int portnum); This is a macro that enables or asserts the OP7200 RabbitNet port select prior to data transfer. PARAMETERS portnum = 0 RETURN VALUE None void rn_sp_disable(int portnum); This is a macro that disables or deasserts the OP7200 RabbitNet port select to invalidate data transfer. PARAMETERS portnum = 0 RETURN VALUE...
  • Page 119: Chapter 5. Using The Tcp/Ip Features

    5. U TCP/IP F SING THE EATURES Chapter 5 discusses using the TCP/IP features on the OP7200 boards. 5.1 TCP/IP Connections Before proceeding you will need to have the following items. • If you don’t have an Ethernet connection, you will need to install a 10Base-T Ethernet card (available from your favorite computer supplier) in your PC.
  • Page 120 Dynamic C is running, a RESET occurs when you press <Ctrl-Y> . The green 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 light flashes each time a packet is received.
  • Page 121: Tcp/Ip Sample Programs

    5.2 TCP/IP Sample Programs We have provided a number of sample programs demonstrating various uses of TCP/IP for networking embedded systems. These programs require that you connect your PC and the OP7200 together on the same network. This network can be a local private network (pre- ferred for initial experimentation and debugging), or a connection via the Internet.
  • Page 122: How To Set Up Your Computer For Direct Connect

    5.2.2 How to Set Up Your Computer for Direct Connect Follow these instructions to set up your PC or notebook. Check with your administrator if you are unable to change the settings as described here since you may need administrator privileges.
  • Page 123: Run The Pingme.c Demo

    5.2.3 Run the PINGME.C Demo Connect the crossover cable from your computer’s Ethernet port to the OP7200’s RJ-45 Ethernet connector. Open this sample program from the folder, SAMPLES\TCPIP\ICMP compile the program, and start it running under Dynamic C. When the program starts run- ning, the green light on the OP7200 should be on to indicate an Ethernet connection is made.
  • Page 124: Running More Demo Programs With A Direct Connection

    5.2.4 Running More Demo Programs With a Direct Connection The sample programs discussed in this section use the Demonstration Board from the OP7200 Tool Kit to illustrate their operation. Appendix C, “Demonstration Board Con- nections,” contains diagrams of typical connections between the OP7200 and the Demon- stration Board used to run these sample programs.
  • Page 125: Where Do I Go From Here

    5.3 Where Do I Go From Here? NOTE: If you purchased your OP7200 through a distributor or Rabbit Semiconductor partner, contact the distributor or partner first for technical support. If there are any problems at this point: • Use the Dynamic C menu to get further assistance with Dynamic C.
  • Page 126 eDisplay (OP7200)
  • Page 127: Chapter 6. Installation, Mounting, And Care Guidelines

    6. I NSTALLATION OUNTING UIDELINES Chapter 6 describes some considerations for mounting the OP7200 in a panel, and includes detailed mounting instructions, protective grounding instructions, and care guidelines for clean- ing the screen overlay. 6.1 Grounding CAUTION: Many of the OP7200 ICs are sensitive to static. Use extra caution when han- dling units in high-static areas.
  • Page 128: Installation Guidelines

    6.2 Installation Guidelines When possible, following these guidelines when mounting an OP7200. 1. Leave sufficient ventilation space, at least 1" (2 cm) around the unit on all sides. 2. Do not install the OP7200 directly above machinery that radiates a lot of heat (for example, heaters, transformers, and high-power resistors).
  • Page 129: Mounting Instructions

    6.3 Mounting Instructions The OP7200 comes with a gasket attached to the bezel. When properly mounted in a panel, the OP7200 bezel/gasket are designed to meet NEMA 4 specifications for water resistance. Since the OP7200 employs an LCD display, the viewing angle must be considered when mounting the display.
  • Page 130 2. Remove the OP7200 back cover. Set the screws and back cover aside since the back cover will be re-attached after the OP7200 is inserted through the cutout. 3. Carefully insert the OP7200. 4. Fasten the unit to the panel with the back cover and the four 4-40 screws that attach the back cover to the OP7200.
  • Page 131: Care Guidelines

    6.4 Care Guidelines If it becomes necessary to clean the screen overlay, use a mild detergent, then rinse with lukewarm water using a clean sponge or a soft cloth. Dry thoroughly with a chamois or a moist cellulose sponge to prevent water spots. Do not use abrasives, which will scratch the hard coating on the overlay.
  • Page 132 eDisplay (OP7200)
  • Page 133: Appendix A. Specifications

    A. S PPENDIX PECIFICATIONS Appendix A provides the specifications for the OP7200. User’s Manual...
  • Page 134: Electrical And Mechanical Specifications

    A.1 Electrical and Mechanical Specifications Figure A-1 shows the mechanical dimensions for the OP7200. 4.41 (112) 0.63 0.67 (16) (17) 0.67 1.93 (17) (49) 4.33 (110) Figure A-1. OP7200 Dimensions NOTE: All measurements are in inches followed by millimeters enclosed in parentheses. eDisplay (OP7200)
  • Page 135 Table A-1 lists the electrical, mechanical, and environmental specifications for the OP7200. Table A-1. OP7200 Specifications Feature OP7200 OP7210 ® Microprocessor Rabbit 2000 at 22.1 MHz Ethernet Port 10/100-compatible with 10Base-T interface, RJ-45 Flash Memory 256K SRAM 128K Backup Battery Socketed 3 V lithium coin type, 265 mA·h ¼...
  • Page 136: Physical Mounting

    A.1.1 Physical Mounting Figure A-2 shows position information to assist with interfacing other boards with the OP7200. 3.470 (88.1) R28 R25 R159 C101 MSTR SLAVE Battery JP15 JP14 JP13 Y2 C2 U8 U7 R165 R164 Y1 C4 R162 R169 EGND 0.070 (1.8) 3.400...
  • Page 137: Conformal Coating

    A.2 Conformal Coating The areas around the crystal oscillator and the battery backup circuit on the OP7200’s RabbitCore module have had the Dow Corning silicone-based 1-2620 conformal coating applied. The conformally coated areas are shown in Figure A-3. The conformal coating protects these high-impedance circuits from the effects of moisture and contaminants over time, and helps to maintain the accuracy of the real-time clock.
  • Page 138: Jumper Configurations

    JP10 Battery Figure A-4. Location of OP7200 Configurable Positions (RabbitCore module is not shown) 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.
  • Page 139 Table A-2. OP7200 Jumper Configurations (continued) Factory Header Description Pins Connected Default × 1–2 Pulled up to Vcc IN8–IN15 2–3 Pulled down 1–2 Tied to 2.048 V AIN0–AIN1 × 2–3 Tied to analog ground 1–2 Tied to 2.048 V AIN2–AIN3 ×...
  • Page 140 Table A-2. OP7200 Jumper Configurations (continued) Factory Header Description Pins Connected Default 1–2 Pulled up to Vcc JP14 Board ID Bit 1 × 2–3 Pulled down 1–2 Pulled up to Vcc JP15 Board ID Bit 2 × 2–3 Pulled down 1–2 Pulled up to Vcc JP16 Board ID Bit 3 (MSB)
  • Page 141: Use Of Rabbit 2000 Parallel Ports

    A.4 Use of Rabbit 2000 Parallel Ports Figure A-5 shows the Rabbit 2000 parallel ports. PD0–PD1, PB0, PB2, PA0–PA7 PB4, PB5 PB7 PD2–PD4 Port D Port B Port A (+Serial Port B) (+synch Serial Port B) PC0, PC2 Port C Port E ®...
  • Page 142 Table A-3. Use of Rabbit 2000 Parallel Ports (continued) Port Signal Notes Output RTS/TXD RS-232 Inactive high Serial Port D Input CTS/RXD RS-232 Inactive high Output TXC RS-232 Inactive high Serial Port C Input RXC RS-232 Inactive high Output Realtek Reset Initialized by sock_init Input...
  • Page 143: I/O Address Assignments

    A.5 I/O Address Assignments Table A-4 lists the external I/O address assignments. Table A-4. Display and Keypad I/O Addresses External Address Signal Name Function PBDR (Write) PB7 Port Pin LCD indicator PB7-Up_Good 0 = LED off, 1 = LED on PBDR (Read) PB5 Data from A/D converter or touchscreen PB5_ADC_SDO...
  • Page 144 Table A-4. Display and Keypad I/O Addresses (continued) External Address Signal Name Function 0xA004 (Write) 1 = backlight on, Backlight on/off control BKLT-ON 0 = backlight off 0xA005 (Write) RS-485 transmitter control RS-485EN 1 = Xmit on, 0 = Xmit off 0xA006 (Write) Buzzer on/off control ALARM...
  • Page 145: Appendix B. Power Supply

    B. P PPENDIX OWER UPPLY Appendix B describes the power circuitry provided on the OP7200. B.1 Power Supplies Power is supplied to the OP7200 via pins 1 and 2 of screw-terminal header J3. The OP7200 is protected against reverse polarity by a full-wave bridge rectifier as shown in Figure B-1. The full-wave bridge rectifier also allows the OP7200 to be powered from 24 V AC.
  • Page 146: Power For Analog Circuits

    B.1.1 Power for Analog Circuits Power to the analog circuits is provided by way of a single-stage low-pass filter, which isolates the analog section from digital noise generated by the other components. The ana- log power voltage +V powers the A/D converter chip, the touchscreen controller, and the reference circuit.
  • Page 147: Batteries And External Battery Connections

    The SRAM and the real-time clock have battery backup. Power to the SRAM and the real- time clock (VRAM) on the OP7200’s RabbitCore module is provided by two different sources, depending on whether the main part of the OP7200 is powered or not. When the OP7200 is powered normally, and Vcc is within operating limits, the SRAM and the real- time clock are powered from Vcc.
  • Page 148: External Battery

    B.2.2 External Battery As an alternative to preserving the SRAM contents and the real-time clock settings while changing the backup battery, you may connect an external battery temporarily at header J7. pins on header J7 have ground on the ends and positive in the center to allow the external battery to be connected without the potential of reversing its polarity.
  • Page 149: Battery-Backup Circuit

    B.2.3 Battery-Backup Circuit Figure B-3 shows the battery-backup circuit located on the OP7200’s RabbitCore module. VBAT VRAM 2 kW 11 kW 10 kW VBAT VOSC 22 kW 47 kW 10 nF 10 nF Figure B-3. OP7200 Backup Battery Circuit The battery-backup circuit serves three purposes: •...
  • Page 150: Power To Vram Switch

    Vcc and VRAM. B.2.5 Reset Generator The OP7200’s RabbitCore module uses a reset generator on the module, U1, to reset the Rabbit 2000 microprocessor when the voltage drops below the voltage necessary for reli- able operation. The reset occurs between 4.50 V and 4.75 V, typically 4.63 V.
  • Page 151: Chip Select Circuit

    B.3 Chip Select Circuit Figure B-5 shows a schematic of the chip select circuit on the OP7200’s RabbitCore module. VRAM 100 kW /CSRAM /CS1 VRAM SWITCH /RES _ OUT Figure B-5. Chip Select Circuit The current drain on the battery in a battery-backed circuit must be kept at a minimum.
  • Page 152 eDisplay (OP7200)
  • Page 153: Appendix C. Demonstration Board Connections

    PPENDIX EMONSTRATION OARD ONNECTIONS Appendix C shows how to connect the Demonstration Board to the OP7200. C.1 Connecting Demonstration Board Before running sample programs based on the Demonstration Board, you will have to con- nect the Demonstration Board from the OP7200 Tool Kit to the OP7200 board. Proceed as follows.
  • Page 154 R159 CAUTION: Disconnect power MSTR before making or removing JP10 terminal connections. SLAVE – Battery – R165 R164 PROG R162 R169 E-Net R-Net OP7200 Demonstration Board (Headers J3/J10) (Header J1) LED1 LED2 LED3 LED4 J3–1 +PWR J1–7 · · J10–12 Jumpers: J1–1 ·...
  • Page 155 R159 CAUTION: Disconnect power MSTR before making or removing JP10 terminal connections. SLAVE Battery – – R165 R164 PROG R162 R169 LED1 LED2 LED3 LED4 · · · · DEMO BOARD BUZZER · · OP7200 Demonstration Board Jumpers: (Headers J3/J10) E-Net R-Net (Header J1)
  • Page 156 R159 CAUTION: Disconnect power MSTR before making or removing JP10 terminal connections. SLAVE Battery – – R165 R164 PROG R162 R169 LED1 LED2 LED3 LED4 · · · · DEMO BOARD BUZZER · · E-Net R-Net OP7200 Demonstration Board (Headers J3/J10) (Header J1) J3–1 +PWR...
  • Page 157: Appendix D. Rabbitnet

    D. R PPENDIX ABBIT D.1 General RabbitNet Description RabbitNet is a high-speed synchronous protocol developed by Rabbit Semiconductor to connect peripheral cards to a master and to allow them to communicate with each other. D.1.1 RabbitNet Connections All RabbitNet connections are made point to point. A RabbitNet master port can only be connected directly to a peripheral card, and the number of peripheral cards is limited by the number of available RabbitNet ports on the master.
  • Page 158: Rabbitnet Peripheral Cards

    Use a straight-through Ethernet cable to connect the master to slave peripheral cards, unless you are using a device such as the OP7200 that could be used either as a master or a slave. In this case you would use a crossover cable to connect an OP7200 that is being used as a slave (note that Dynamic C does not support the operation of the OP7200 as a slave at the present time).
  • Page 159: Physical Implementation

    D.2 Physical Implementation There are four signaling functions associated with a RabbitNet connection. From the mas- ter’s point of view, the transmit function carries information and commands to the periph- eral board. The receive function is used to read back information sent to the master by the peripheral board.
  • Page 160: Function Calls

    D.3 Function Calls The function calls described in this section are used with all RabbitNet peripheral boards, and are available in the library in the Dynamic C folder. RNET.LIB RABBITNET If you are planning to use any of the RS-232 serial ports and the RabbitNet port on the OP7200, initialize the serial port(s) before you initialize the RabbitNet port.
  • Page 161 int rn_device(char pna); Returns an address index to device information from a given physical node address. This function will check device information to determine that the peripheral board is connected to a master. PARAMETER pna is the physical node address, indicated as a byte. 7,6—Port number 5,4,3—Level 1 downstream port 2,1,0—Level 2 downstream port...
  • Page 162 int rn_echo(int handle, char sendecho, char *recdata); The peripheral board sends back the character the master sent. check device information This function will to determine that the peripheral board is connected to a master. PARAMETERS handle is an address index to device information. Use rn_device() or rn_find() to establish the handle.
  • Page 163 int rn_read(int handle, int regno, char *recdata, int datalen); Reads a string from the specified device and register. Waits for results. check device This function will information to determine that the peripheral board is connected to a master. PARAMETERS handle is an address index to device information. Use rn_device() or rn_find() to establish the handle.
  • Page 164 int rn_sw_wdt(int handle, float timeout); Sets software watchdog timeout period. Call this function prior to enabling the software watchdog timer. check device information to determine that the peripheral board is connected to a master. This function will PARAMETERS handle is an address index to device information. Use rn_device() or rn_find() to establish the handle.
  • Page 165 int rn_hitwd(int handle, char *count); Hits software watchdog. Set the timeout period and enable the software watchdog prior to using this function. check device information to determine that the peripheral board is connected This function will to a master. PARAMETERS handle is an address index to device information.
  • Page 166: Status Byte

    int rn_comm_status(int handle, char *retdata); PARAMETERS handle is an address index to device information. Use rn_device() or rn_find() to establish the handle. retdata is a pointer to the return address of the communication byte. A set bit indicates which error occurred.
  • Page 167: Notice To Users

    OTICE TO SERS RABBIT SEMICONDUCTOR PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPO- NENTS IN LIFE-SUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT SIGNED BY A CORPORATE OFFICER OF DIGI INTERNATIONAL IS ENTERED INTO BETWEEN THE CUSTOMER AND DIGI INTERNATIONAL. No complex software or hardware system is perfect.
  • Page 168 eDisplay (OP7200)
  • Page 169: Index

    NDEX demonstration program ..11 digital I/O A/D converter ....... 24 features ........1 function calls 4–20 mA current measure- flash memory digIn ......61 ments ......27 liefetime write cycles ..47 digOut ......59 analog reference voltage using second 256K flash SMODE0 ......
  • Page 170 TextCursorLocation ..87 power-up TextGotoXY ....86 demonstration program ..11 keypad TextMaxChars ....93 programming function calls TextPrintf .......88 flash vs. RAM ....47 keyConfig ......96 TextPutChar ....87 programming cable ....3 keyGet ......97 TextWindowFrame ..86 programming port ....38 keyInit ......96 LCD controller ....40, 50 programming cable ....3 keypadDef .....98 handling applications devel-...
  • Page 171 touchscreen OP7200 BTN_16KEY.C ..... 55 dimensions ....128 sample programs ....52 BTN_BASICS.C ... 55 electrical ...... 129 A/D converter BTN_KEYBOARD.C ... 55 temperature ....129 ADCAL_DIFF_2V.C ..54 CAL_TOUCHSCREEN.C physical mounting ... 130 ADCAL_DIFF_GND.C 54 ........55 relative pin 1 locations ..130 ADCAL_MA_CH.C ..
  • Page 172 eDisplay (OP7200)
  • Page 173: Schematics

    CHEMATICS 090-0120 RCM2200 Schematic www.rabbit.com/documentation/schemat/090-0120.pdf 090-0138 OP7200 Schematic www.rabbit.com/documentation/schemat/090-0138.pdf 090-0042 Demonstration Board Schematic www.rabbit.com/documentation/schemat/090-0042.pdf 090-0128 Programming Cable Schematic www.rabbit.com/documentation/schemat/090-0128.pdf You may use the URL information provided above to access the latest schematics directly. User’s Manual...

Table of Contents