Home

MiniCom (OP6800) - Digi International

image

Contents

1. aneneen nnn K m OOODDDDDD000000000000 j80000000000000000000 DsUeUeUeWa Jaa Wesel ses ee z Ue ile RP RP pps RNT EER 9 siete ie Bg A a 1 iS n Oshas 5 m a moon s Al 835 i z ti FEEFFE gosp a A ony ate Fa 7 3 SOF a Stas 2 G gt YI C B IPA i Smr O a Per N 7 Ne wa 35 w ai EN z a lt gt paenan I LHI Osfiscccel et eE HTA Y Y A Sf Nog for Pin 1 lt on l coordinates lt 3 60 91 lt 3 60 91 Figure A 1 OP6800 Dimensions NOTE All measurements are in inches followed by millimeters enclosed in parentheses Table A 1 provides the pin 1 locations for the OP6800 headers as viewed in Figure A 1 Table A 1 OP6800 Header J1 Pin 1 Locations Header Pin 1 x y Coordinates inches a 2 101 2 720 50 MiniCom OP6800 It is recommended that you allow for an exclusion zone of 0 25 6 mm around the OP6800 in all directions when the OP6800 is incorporated into an assembly that includes other components This exclusion zone that you keep free of other components and boards will allow for sufficient air flow and will help to minimize any electrical or EMI interference between adjacent boards Figure A 2 shows this
2. Figure 5 LCD Contrast Adjustment 10 MiniCom OP6800 2 4 Programming Cable Connections 1 Connect the programming cable to download programs from your PC and to program and debug the OP6800 Connect the 10 pin PROG connector of the programming cable to header J1 on the OP6800 RabbitCore module Ensure that the colored edge lines up with pin 1 as shown Do not use the DIAG connector which is used for a nonprogramming serial connection Connect the other end of the programming cable to a COM port on your PC Make a note of the port to which you connect the cable as Dynamic C will need to have this parameter configured Note that COM1 on the PC is the default COM port used by Dynamic C NOTE Some PCs now come equipped only with a USB port It may be possible to use an RS 232 USB converter Part No 20 151 0178 with the programming cable supplied with the OP6800 Tool Kit Note that not all RS 232 USB converters work with Dynamic C Colored edge gt Red shrink wrap Programming Cable NOTE Never disconnect the programming cable To by pulling on the ribbon cable Carefully pull on PC COM port the connector to remove it from the header
3. MRs Figure 8 OP6800 Pinouts Header J1 is a standard 2 x 20 header with a nominal 0 1 pitch The OP6800 also has an RJ 45 Ethernet jack on the RabbitCore module MiniCom OP6800 16 3 2 Digital I O 3 2 1 Digital Inputs The OP6800 has eight digital inputs INOO INO7 each with a current limiting resistor of 27 kQ and protected over a range of 36 V to 36 V The inputs are all pulled up to 5 V as shown in Figure 9 IN Microprocessor NVV ENEN T Rabbit 2000 GND Figure 9 OP6800 Digital Inputs The OP6800 also has five digital inputs INO8 IN12 each with a current limiting resistor of 12 KQ protected over a range of 25 V to 25 V and pulled up to 5 V The actual switching threshold for INOO IN12 is approximately 2 40 V Anything below this value is a logic 0 and anything above is a logic 1 IN13 IN17 are connected in parallel with five of the keypad buttons These inputs are nor mally pulled up but pulling one of these inputs down is the equivalent of pressing the cor responding keypad key remotely Table 2 Remote Keypad Operation Keypad Key Signal inputs 0 4 IN13 l a IN14 2 w IN15 3 gt IN16 6 4 IN17 NOTE Remote keypad signal inputs IN13 IN17 are not protected and can only handle a voltage range from 0 to 5 V These inputs were designed solely to facilitate a remote keypad and sho
4. K OUTOU OUT0S OUTO OTe OUTOS OUTO4 OUTS OUTO2 OUTOT OOO ND RAW De Re C Bx Rang Figure C 4 Demonstration Board Header JP1 Buzzer On Off User s Manual 67 The Demonstration Board provides the user with OP6800 connection points brought out conveniently to labeled points at headers J4 J5 J6 and J8 on the Demonstration Board Small to medium circuits can be prototyped using point to point wiring with 20 to 30 AWG wire on the prototyping area The holes are spaced at 0 1 2 5 mm The pinouts for headers J4 J5 J6 and J8 are shown in Figure C 5 Sa zsa sq psa 9000 e N N RB a DN O QCSVOGCVAGCVSVSEVOS oN Oa AOUN CSVKGVVDYGAG IOS OSOA SSS Y Ger N YW A a DN amp CSVOVKDVO Figure C 5 OP6800 Demonstration Board Pinout 68 MiniCom OP6800 The Demonstration Board can then be rotated and mounted behind the OP6800 as shown in Figure C 6 to allow the Demonstration Board and the OP6800 to be used together ISSCOGDSO HOS GV GPDPSSVSSG6 Gar Le 0 Oj o ER FEEN ENES Figure C 6 Mounting Demonstration Board on OP6800 NOTE Remove the standoffs behind the OP6800 before attempting to mount the Dem onstration Board The OP6800 may also be panel mounted with the Demonstration Board attached Follow the instructions in Chapter 6 Installation and Mounting Gui
5. The OP6800 also has one RS 485 serial channel and one CMOS serial channel The CMOS serial channel serves as the programming port All four serial ports operate in an asynchronous mode An asynchronous port can handle 7 or 8 data bits A 9th bit address scheme where an additional bit is sent to mark the first byte of a message is also supported Serial Port A the CMOS programming port can be oper ated alternately in the clocked serial mode In this mode a clock line synchronously clocks the data in or out Either of the two communicating devices can supply the clock The OP6800 boards typically use all four ports in the asynchronous serial mode Serial Ports B and C are used for RS 232 communication and Serial Port D is used for RS 485 commu nication The OP6800 uses an 11 0592 MHz crystal which is doubled to 22 1184 MHz At this frequency the OP6800 supports standard asynchronous baud rates up to a maximum of 230 400 bps 3 3 1 RS 232 The OP6800 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 by an RS 232 circuit so that a 5 V input becomes approximately 10 V and O V is output as 10 V The RS 232 transceiver also provides the proper lin
6. 33 SETUD roiie rga keeren 7 mounting and installation KEYPAD Ciiscancinss 33 Pow Se Supply CONNEEMORS s4 Demonstration Board 69 SWITCHES C aaiae 33 Pp Bates cable ee AEREE 46 47 ss ae ee ze remove Bab enod DIGOUT C ooccccccccccccecees 34 ULE E A E A E seme OP6800 how to set IP address 39 introduction 0 eee eeeeeeeeeeeee 1 ICOMDEMOLC sesso 10 102 MiniCom OP6800 SOLTWALE e erise enesis 3 libraries ceeeeeeeeceeeeees 36 keypad oes 36 LCD display 0 0 36 OP68xx LIB 36 PACKET LIB 74 RS232 LIB ou cece 74 TOPAPS i534 iki Anis 36 USE_2NDFLASH_CODE 29 using second 256K flash MEMOTY ceeeeeeeeeeee 29 specifications Demonstration Board dimensions eee eee 64 electrical seereis 64 mechanical 006 64 temperature 64 OP6800 dimensions eee eee 50 electrical cc eee eee 52 exclusion zone 5 51 mechanical 006 52 temperature 52 spectrum spreader 25 subsystems eee ee eee eee 15 TCP IP connections 37 10Base T Ethernet card 37 additional resources 43 Ethernet hub eee 37 STEPS chiiis ieas 37 Tool Kat 35 000hi58 ss Seoeseig reesesoeeess 2 AC adapter oe eee eeeeee 2 DC power supply oseese 2 programming cable 2 User s Manual eee 2 wire assembly eeeeeeeee 2 U USB serial port conver
7. Figure 6 Programming Cable Connections NOTE Be sure to use the programming cable Part No 101 0513 supplied with the OP6800 Tool Kit the programming cable has red shrink wrap around the RS 232 con verter section located in the middle of the cable Programming cables from other Rabbit kits are not designed to work with the OP6800 2 Reset the OP6800 by unplugging the AC adapter then plugging it back in The OP6800 is now ready to be used User s Manual 11 2 5 Installing Dynamic C If you have not yet installed Dynamic C version 7 06P2 or a later version do so now by inserting the Dynamic C CD 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 gt Run from the Windows Start button and browse for the Dynamic C setup exe file on your CD drive Click OK to begin the installation once you have selected the setup exe file The Dynamic C User s Manual provides detailed instructions for the installation of Dynamic C and any future upgrades NOTE If you have an earlier version of Dynamic C already installed the default instal lation of the later version will be in a different folder and a separate icon will appear on your desktop 2 6 Starting Dynamic C Once the OP6800 is connected to your PC and to a power source start Dynamic C by dou ble clicking on the Dynamic C icon on your desktop or in your Start menu If y
8. MiniCom OP6800 C Programmable Operator Interface User s Manual 019 0106 090529 G MiniCom OP6800 User s Manual Part Number 019 0106 090529 G Printed in U S A 2002 2009 Digi International Inc All rights reserved No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permission of Digi International Permission is granted to make one or more copies as long as the copyright page contained therein is included These copies of the manuals may not be let or sold for any reason without the express written permission of Digi International Digi International reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Dynamic C are registered trademarks of Digi International Inc Rabbit 2000 and RabbitCore are trademarks of Digi International Inc The latest revision of this manual is available on the Rabbit Web site www rabbit com for free unregistered download Digi International Inc www rabbit com MiniCom OP6800 TABLE OF CONTENTS Chapter 1 Introduction 1 TM AIDOSCHIPULOD seseris rE houses steuess secu cuwbuinsbvstaceny layed E E EEEE EE EEEE E E E Ei 1 MD Feature Srei nae en e e EE a E EEEE eE e E ES E EE ASEENA 1 1 3 Development and Evaluation Tools ccc eeecssesseceeceseceeceseeeceeseeeceeeeeeeeaeeacecaeceaecaessaeeaesaeseeseaeeeneees 2 L3 TOON Kitan ae eee
9. When the OP6800 is in reset the RESET line will go low This turns off Q2 and Q5 pro viding an isolation between Vcc and VRAM B 2 3 Reset Generator The OP6800 module uses a reset generator on the module U1 to reset the Rabbit 2000 microprocessor when the voltage drops below the voltage necessary for reliable operation The reset occurs between 4 50 V and 4 75 V typically 4 63 V User s Manual 61 B 3 Chip Select Circuit Figure B 1 shows a schematic of the chip select circuit located on the OP6800 module VRAM A R28 100 kQ CSRAM Q4 ICS1 Q3 VRAM an SWITCH Figure B 1 Chip Select Circuit RESET_OUT The current drain on the battery in a battery backed circuit must be kept at a minimum When the OP6800 is not powered the battery keeps the SRAM memory contents and the real time clock RTC going The SRAM has a powerdown mode that greatly reduces power consumption This powerdown mode is activated by raising the chip select CS signal line Normally the SRAM requires Vcc to operate However only 2 V is required for data retention in powerdown mode Thus when power is removed from the circuit the battery voltage needs to be provided to both the SRAM power pin and to the CS signal line The CS control circuit accomplishes this task for the SRAM s chip select signal line In a powered up condition the CS control circuit must allow the processor s chip select
10. cccsccsseccccoees 93 programming port 21 PINGME C escccsssssseeseee 41 TextBorderlnit 93 R SOT Cio Aa 41 TextCursorLocation 94 TELNET C cereias 41 TextGotoXy ou eee 94 Rabbit 2000 serial communication 19 TextMaxChars 96 parallel ports occ 55 function calls TextPrintf eee 95 remote keypad operation he 17 flow control c 74 TextPutChar 0 95 TOSCE E 9 serCflowcontrolOff 74 TextWinClear 96 Hardware ceccccccccccccececccccceeeeeee 9 serCflowcontrolOn 74 TextWindowFrame 92 reset generator oo eee 61 ser485RX ooeeeeceeeeesteeeeees 75 LCD keypad module RS 20308 ra e a aE 19 ser485TX ooeeeecceeesteeeeeee 74 contrast adjustment 10 RSPAS EE fea TE 19 Xo OY ole re 74 keypad template 27 RS 485 network ccccccccccceee 20 programming pott 21 removing and inserting keypad termination and bias resis RS 232 description 19 label asniem na 28 LOLS nen ann 20 RS 485 description 19 RS 485 network 20 M S RS 485 termination and bias MEMOTY ou eeceeceeceeeeeeeeeceeee ones 26 sample programs essees 33 TESISEOTS sore ccrersseerrornrsevees 20 models o ecescssssssesssessessesessseseeees 2 BOARD _ID C ni 33 Serial ports OPORO cui teaseescttiete cen 2 Demonstration Board oss 13 Ethernet port 1s 0 22 OP6810 oes eoccheceeosecceces 2 BUZZERC
11. Getting Started The standoffs were used to prop up the OP6800 beside the Demonstration Board and are not needed to mount the OP6800 3 Carefully drop in the OP6800 with the bezel and gasket attached 46 MiniCom OP6800 4 Fasten the unit with the four 4 40 screws and washers included with the OP6800 If your panel is thick use a 4 40 screw that is approximately 3 16 5 mm longer than the thickness of the panel S OP6800 Bezel Gasket o e 4 o ooo sane a Figure 21 OP6800 Mounted in Panel rear view Carefully tighten the screws until the gasket is compressed and the plastic bezel face plate is touching the panel Do not tighten each screw fully before moving on to the next screw 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 and the plastic bezel faceplate is touching the panel User s Manual 47 48 MiniCom OP6800 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the OP6800 and describes the conformal coating User s Manual 49 A 1 Electrical and Mechanical Specifications Figure A 1 shows the mechanical dimensions for the OP6800
12. R37 22 kQ Figure B 1 OP6800 Backup Battery Circuit The battery backup circuit serves three purposes e It reduces the battery voltage to the SRAM and to the real time clock thereby limiting the current consumed by the real time clock and lengthening the battery life e Jt ensures that current can flow only out of the battery to prevent charging the battery e 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 lt 100 mV typically 10 mV when power is supplied to the OP6800 60 MiniCom OP6800 B 2 2 Power to VRAM Switch The VRAM switch on the OP6800 module shown in Figure B 1 allows the battery backup to provide power when the external power goes off The switch provides an isola tion between Vcc and the battery when Vcc goes low This prevents the Vcc line from draining the battery VCC VRAM R33 A 00 Q5 FDV302P E 10 kQ R17 Q2 RESET Bik MMBT3904 Figure B 1 VRAM Switch Field effect transistor Q5 is needed to provide a very small voltage drop between Vcc and VRAM lt 100 mV typically 10 mV so that the board components powered by Vcc will not have a significantly different voltage than VRAM When the OP6800 is not in reset the RESET line will be high This turns on Q2 causing its collector to go low This turns on Q5 allowing VRAM to nearly equal Vcc
13. OP6810 Low PE3 N A Realtek SDI line OP6800 Initialized by sock_init Output Not used OP6810 Low PE4 Output OUTO9 Low output driver off PES Output OUT10 Low output driver off PE6 N A Realtek IOWB strobe OP6800 Initialized by sock_init Output Not used OP6810 Low PE7 Output LCD_KEYPAD strobe Inactive high 56 MiniCom OP6800 Table A 5 Display and Keypad Output Addresses A 5 I O Address Assignments Table A 5 lists the external I O addresses for the display and keypad I O Pei Name Function E000 E007 LCD LCD control E008 EN Output enable for LEDs E00A KPEN Read keypad and IN12 E00B LED LEDO LED6 and LCD backlight PE7 serves as a system enable control and LCD keypad strobe When PE7 is high or in a high impedance status all OP6800 outputs are disabled digital outputs and display out puts are disabled and RS 485 is at listen status User s Manual 57 58 MiniCom OP6800 APPENDIX B POWER SUPPLY Appendix B describes the power circuitry provided on the OP6800 B 1 Power Supplies Power is supplied to the OP6800 via pins 20 and 21 of header J1 which is connected by a ribbon cable to either the Demonstration Board or to your system The OP6800 is pro tected against reverse polarity by a diode at D6 as shown in Figure B 1 SWITCHING POWER REGULATOR w J1 D6 x po RAW S a 1 U4 SZ C40 Q ja F47 pF aL 6 LM26
14. includes Canada Japan U S Australia N Z U K and European style plugs e Demonstration Board with prototyping area pushbutton switches and LEDs The Demonstration Board can be hooked up to the OP6800 to demonstrate the I O and the prototyping area can be used for custom circuits e Ribbon cable to connect Demonstration Board to OP6800 e Screwdriver o Rabbit 2000 Processor Easy Reference poster e Registration card 2 MiniCom OP6800 Programming d gt 6 g Cable Universal AC Adapter 77 with Plugs Demonstration Board Ribbon Cable Screwdriver MiniCom OP6800 Getting Started Instructions Demonstration Board Figure 1 OP6800 Tool Kit 1 3 2 Software The OP6800 is programmed using version 7 06 or later of Rabbit s Dynamic C A compat ible version is included on the Tool Kit CD ROM Library functions provide an easy to use interface for the OP6800 Software drivers for the display and keypad TCP IP I O and serial communication are included with Dynamic C Dynamic C v 9 60 includes the popular pC OS II real time operating system point to point protocol PPP FAT file system RabbitWeb and other select libraries that were pre viously sold as individual Dynamic C modules Rabbit also offers for purchase the Rabbit Embedded Security Pack featuring the Secure Sockets Layer SSL and a specific Ad
15. signal CS1 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 peri odically access the SRAM When power is removed from the circuit the transistors will turn off and isolate CSRAM from the processor The isolated CSRAM line has a 100 KQ pullup resistor to VRAM R28 This pullup resistor keeps CSRAM at the VRAM voltage level which under no power condition is the backup battery s regulated voltage at a little more than 2 V Transistors Q3 and Q4 are of opposite polarity so that a rail to rail voltage can be passed When the CS1 voltage is low Q3 will conduct When the CS1 voltage is high Q4 con ducts It takes time for the transistors to turn on creating a propagation delay This propa gation delay is typically very small about 10 ns to 15 ns 62 MiniCom OP6800 APPENDIX C DEMONSTRATION BOARD Appendix C describes the features and accessories of the Dem onstration Board and explains the use of the Demonstration Board to demonstrate the OP6800 and to build prototypes of your own circuits User s Manual 63 C 1 Mechanical Dimensions and Layout Figure C 1 s
16. 35 gIPlotPolygon esc 81 power management 59 EDC tito os 35 gIPlotVPolygon se 0 80 POWer SUPPLY seeesseees 59 65 SCROLLING C 0 00 00 35 glPrintf catia Sucoues 85 backup battery circuit 60 TEXT C ssoi 35 glPutChar vied ctascted sates 85 battery backup 60 LCD keypad module with glPutFont oo esses 84 chip select Circuit 62 TCP IP glRightl ossessi 89 CONNECHIONS sssseeessseeeeeeesees 9 MBOXDEMO C 42 glSetBrushType 86 power distribution 65 TCP_RESPOND C 42 glSetContrast oo 78 switching voltage regulator 59 TCPSEND C ceessceesssees 42 glSetPfStep cecceeccseeeen 84 VRAM switch ossessi 61 OP6800 features c00 13 GIS WAP veveseessesseesssseeeen 86 power up PON EKOR 13 ANE e a sels ain ees 89 demonstration program 10 power up demonstration GIVS roll ate 91 programming Prota sanns eeeeeeeeeeneeee 10 glXFontInit eseese 32 83 flash vs RAM nsss 29 serial communication glXGetBitmap 87 programming cable 2 MASTER oseese 34 glXGetFastmap 87 programming port 21 PUTS ossessi 34 glXPutBitmap 32 91 programming cable 2 RELAYCHR C eesssees 34 glXPutFastmap 0 92 COMMECEIONS sssseeessseeceeeees 11 STAVE Co oeseri 34 ledOut escscss ceconeescs torsion 76 PROG connector 00 23 TOPP Birdie tinea satin 35 39 TextBorder
17. a reset the Rabbit 2000 is either cold booted or the program begins executing at address 0x0000 The status pin is used by Dynamic C to determine whether a Rabbit microprocessor is present The status output has three different programmable functions 1 It can be driven low on the first op code fetch cycle 2 It can be driven low during an interrupt acknowledge cycle 3 It can also serve as a general purpose output The RESET_IN pin is an external input that is used to reset the Rabbit 2000 and the OP6800 onboard peripheral circuits Refer to the Rabbit 2000 Microprocessor User s Manual for more information User s Manual 21 3 3 4 Ethernet Port OP6800 models only Figure 13 shows the pinout for the Ethernet port J2 on the OP6800 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 convention followed the pin positions relative to the spring tab position located at the bottom of the RJ 45 jack in Figure 13 are always absolute and the RJ 45 connector will work properly with off the shelf Ethernet cables ETHERNET Ru 45 Plug Figure 13 RJ 45 Ethernet Port Pinout RJ 45 pinouts are sometimes numbered opposite to the way shown in Figure 13 Two LEDs are placed next to the RJ 45 Ethernet jack one to indicate an Ethernet link LNK and one to indicate Ethernet activity ACT The transf
18. in User s Manual 9 2 2 Demonstration Program on Power Up A repeating sequence of graphics and messages in various languages will be displayed on the LCD and the LEDs will flash on and off in sequence when power is first applied to the OP6800 Try pressing the buttons on the keypad The LED immediately above that button will light up and if you pressed one of the keys in the top row of the keypad the corre sponding LED on the Demonstration Board will light up Similarly if you press one of the switches on the Demonstration Board the corresponding LED on the Demonstration Board and on the OP6800 will light up Note that the programming cable does not have to 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 and run The demonstration is available for future reference in the Dynamic C SAMPLES LCD KEYPAD 122x32_ 1x7 directory as FUN C 2 3 Display Contrast Adjustment The LCD contrast is preset at the factory If you need to adjust the contrast for optimum display of graphics and messages you may adjust the potentiometer at R4 located as shown in Figure 5 Note that OP6800 units sold before 2004 did not have any provision to adjust the contrast Contrast Adjustment
19. is detected then no title is written to the text menu If a string is detected then it will be written center aligned to the top of the text menu box RETURN VALUE None SEE ALSO TextBorder TextGotoXY TextPutChar TextWindowFrame TextCursorLocation This function displays the border for a given window frame This function will automatically adjust the text window parameters to accommodate the space taken by the text border This adjustment will only occur once after the TextBorderInit function executes NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor RETURN VALUE None SEE ALSO TextBorderInit TextGotoXY TextPutChar TextWindowFrame TextCursorLocation User s Manual 93 Sets the cursor location to display the next character The display location is based on the height and width of the character to be displayed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor col is a character column location row is a character row location RETURN VALUE None SEE ALSO TextPutChar TextPrintf TextWindowFrame Gets the current cursor location that was set by a Graphic Text function NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor col is a pointer to cursor column variable row is a
20. may need administrator privileges The instructions are specifically for Windows 2000 but the interface is similar for other versions of Windows TIP If you are using a PC that is already on a network you will disconnect the PC from that network to run these sample programs Write down the existing settings before changing them to facilitate restoring them when you are finished with the sample pro grams and reconnect your PC to the network Go to the control panel Start gt Settings gt Control Panel and then double click the Network icon Select the network interface card used for the Ethernet interface you intend to use e g TCP IP Xircom Credit Card Network Adapter and click on the Properties button Depending on which version of Windows your PC is running you may have to select the Local Area Connection first and then click on the Properties button to bring up the Ethernet interface dialog Then Configure your interface card for a 10Base T Half Duplex or an Auto Negotiation connection on the Advanced tab NOTE Your network interface card will likely have a different name Now select the IP Address tab and check Specify an IP Address or select TCP IP and click on Properties to assign an IP address to your computer this will disable obtain an IP address automatically IP Address 10 10 6 101 Netmask 255 255 255 0 Default gateway 10 10 6 1 Click l
21. of rows in the window nPix is the number of pixels to scroll within the defined window a negative value will produce a scroll up RETURN VALUE None SEE ALSO glHScroll Draws bitmap in the specified space The data for the bitmap are stored in xmem This function calls g1XPutFastmap automatically if the bitmap is byte aligned the left edge and the width are each evenly divisible by 8 Any portion of a bitmap image or character that is outside the LCD display area will be clipped PARAMETERS left is the top left corner of the bitmap top is the top left corner of the bitmap width is the width of the bitmap height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO g1XPutFastmap glPrintf User s Manual 91 Draws bitmap in the specified space The data for the bitmap are stored in xmem This function is like g1XPutBitmap except that it is 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 PARAMETERS left is the top left corner of the bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap width is the width of the bitmap must be evenly divisible by 8 otherwise truncates height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO glXPutBitmap glPri
22. program allows you to turn the LEDs on an attached Demon stration Board from the Tool Kit on and off from a remote Web browser LEDO and LED 1 on the OP6800 LED1 and LED2 on the Demonstration Board will match those on the Web page As long as you have not modified the TCPCONFIG 1 macro in the sample pro gram enter the following server address in your Web browser to bring up the Web page served by the sample program http 10 10 6 100 Otherwise use the TCP IP settings you entered in the LIB TCPIP TCP_CONFIG LIB library The sample program TELNET C SAMPLES OP6800 TCPIP allows you to communi cate with the OP6800 using the Telnet protocol This program takes anything that comes in on a port and sends it out Serial Port B It uses digital input INOO which is connected to Demonstration Board switch SW1 to indicate that the TCP IP connection should be closed and high current output OUTO1 to indicate that there is an active connection You may change the digital input and output to suit your application needs Follow the instructions included in the sample program Run the Telnet program on your PC Start gt Run telnet 10 10 6 100 As long as you have not modified the TCP CONFIG 1 macro in the sample program the IP address is 10 10 6 100 as shown other wise use the TCP IP settings you entered in the TCP_CONFIG LIB library Each character you type will be printed in Dynamic C s STDIO window indicating that the board is receiving the ch
23. programming cable and power supply to the OP6800 Once you run a sample program to demonstrate that you have connected everything correctly you will be ready to go on and finish developing your system 2 1 Connections 1 Screw in the four standoffs included with the Tool Kit into the four mounting threads on the OP6800 as shown in Figure 2 Figure 2 Screw In Standoffs Into OP6800 Mounting Threads User s Manual 7 2 Connect the OP6800 to the Demonstration Board from the Tool Kit using the ribbon cable connector as shown in Figure 3 First connect the ribbon cable to header J1 on the OP6800 then turn the OP6800 over and connect the other end of the ribbon cable to header J1 on the Demonstration Board By connecting the boards this way you have the option of placing the Demonstration Board behind your OP6800 in your final instal lation as explained in Appendix C D SSS SGSGGOGO jsessogseceod eKeKeXeLeXeXeTeTeTeTeL ia i oe 7 o 3 LEE SS wy ANAE e Figure 3 Connect the OP6800 to the Demonstration Board 8 MiniCom OP6800 3 Connect the power supply First prepare the AC adapter for the country where it will be used by selecting the plug The OP6800 Tool Kit presentl
24. standards e EN61000 4 2 ESD e EN61000 4 3 Radiated Immunity e EN61000 4 4 EFT e EN61000 4 6 Conducted Immunity Additional shielding or filtering may be required for a heavy industrial environment Emissions The OP6800 operator interfaces meet the following emission standards emission stan dards with the Rabbit 2000 spectrum spreader turned on and set to the normal mode The spectrum spreader is only available with Rev C or higher of the Rabbit 2000 microproces sor This microprocessor is used on the OP6800 operator control panels that carry the CE mark e EN55022 1998 Class B e FCC Part 15 Class B Your results may vary depending on your application so additional shielding or filtering may be needed to maintain the Class B emission qualification 4 MiniCom OP6800 1 4 1 Design Guidelines Note the following requirements for incorporating the OP6800 operator interfaces 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 When connecting the OP6800 to outdoor cables the customer is responsible for provid ing CE approved surge lightning protection Rabbit recommends placing digital I O or analog cables that are 3 m or longer in a metal conduit to assist in maintaining CE compliance and to conform to good cable desig
25. the Demonstration Board you can view an output channel toggle the corresponding LEDs on off The four pushbutton switches correspond to OUTO7 OUT10 4 3 4 Serial Communication The following sample programs are found in the RS232 subdirectory in SAMPLES OP6800 PUTS C Transmits and then receives an ASCII string on Serial Ports B and C It also displays the serial data received from both ports in the STDIO window RELAYCHR C This program echoes characters over Serial Port B to Serial Port C It must be run with a serial utility such as Hyperterminal The following sample programs are found in the RS485 subdirectory in SAMPLES OP6800 MASTER C This program demonstrates a simple RS 485 transmission of lower case letters to a slave OP6800 The slave will send back converted upper case letters back to the master OP6800 and display them in the STDIO window Use SLAVE C to program the slave OP6800 SLAVE C This program demonstrates a simple RS 485 transmission of lower case letters to a slave OP6800 The slave will send back converted upper case letters back to the master OP6800 and display them in the STDIO window Use MASTER C to program the master OP6800 4 3 5 LCD Keypad Module Sample Programs The following sample programs are found in the 122x32_1x7 subdirectory in SAMPLES LCD Keypad ALPHANUM C Demonstrates how to create messages using the keypad and then dis playing them on the LCD display COFTERMA C D
26. up OP6800 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 is selected CTS RTS flow control is exercised using the serC lowcontrol10On and serCflowcontrolOff functions from the RS232 LIB library PARAMETER mode is the defined serial port configuration Serial Port Mode B Cc D 0 RS 232 3 wire RS 232 3 wire RS 485 1 RS 232 5 wire CTS RTS RS 485 RETURN VALUE 0 if valid mode 1 if not SEE ALSO ser485Tx ser485Rx NOTE Be sure to call serMode before either of the next two functions Sets pin 3 DE high to enable the RS 485 transmitter Remember to call serMode before calling ser485Tx SEE ALSO serMode ser485Rx 74 MiniCom OP6800 Resets pin 3 DE low to disable the RS 485 transmitter Remember to call serMode before calling ser485Rx SEE ALSO serMode ser485Tx serCflowcontrolOn serCflowcontrolOfft User s Manual 75 D 4 LEDs OP68xx LIB When power is applied to the OP6800 for the first time the red LED DS1 will come on indicating that power is being applied to the OP6800 The red LED is turned off when the brdInit function executes The LEDs are in series with the open ouput collector that drives digital outputs OUT00 OUTO6 and
27. 0 4 1 5 2 6 3 L U D R l E where L represents Left Scroll U represents Up Scroll D represents Down Scroll R represents Right Scroll represents Page Down represents Page Up E represents the ENTER key Example Do the following for the above physical vs ASCII return key codes keyConfig 3 R 0 0 0 0 O keyConfig 6 E O 0 0 0 O keyConfig 2 D O 0 0 0 O keyConfig 4 0 0 0 O O keyConfig 1 U O 0 0 0 O keyConfig 5 0 0 0 0 0 keyConfig 0 L 0O 0 0 0 O 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 indicated by a zero value in a bit position PARAMETER pcKeys is a pointer to the address of the value read RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef keyProcess User s Manual 99 100 MiniCom OP6800 INDEX B debugging features 30 J installation ee 12 battery connections 60 Rabbit Embedded Security jumper configurations 54 board initialization Paek 3 Demonstration Board buzz function calls eee 72 standard features 30 E ct Geek aevces 67 brdInit seseris 72 debugging ecceesseeeees 30 JP1 RS 485 bias and termina PUZZEL sciesscscsdchassaevepsscheaseiens 67 Starting voeee
28. 2 9 MHz The clock doubler may be disabled if 22 1 MHz clock speeds are not required Disabling the Rabbit 2000 microprocessor s internal clock doubler will reduce power consumption and further reduce radiated emissions The clock doubler is disabled with a simple global macro as shown below 1 Select the Defines tab from the Dynamic C Options gt Project Options menu 2 Add the line CLOCK_DOUBLED 0 to always disable the clock doubler The clock doubler is enabled by default and usually no entry is needed If you need to specify that the clock doubler is always enabled add the line CLOCK_DOUBLED 1 to always enable the clock doubler The clock speed will be doubled as long as the crystal frequency is less than or equal to 26 7264 MHz 3 Click OK to save the macro The clock doubler will now remain off whenever you are in the project file where you defined the macro 24 MiniCom OP6800 3 5 2 Spectrum Spreader OP6800 operator interfaces that carry the CE mark on their RabbitCore module have a Rabbit 2000 microprocessor that features a spectrum spreader which helps to mitigate EMI problems By default the spectrum spreader is on automatically for OP6800 operator control panels that carry the CE mark when used with Dynamic C 7 30 or later versions but the spectrum spreader may also be turned off or set to a stronger setting The means for doing so is through a simple global macro as shown below 1 Select the Defines
29. 75 a Figure B 1 OP6800 Power Supply The input voltage range is from 9 V to 36 V A switching power regulator is used to pro vide a Vcc of 5 V for the OP6800 logic circuits Vcc is not accessible to the user NOTE In addition to supplying RAW to the OP6800 switching power regulator the Demonstration Board has its own independent linear power regulator to supply the electronics in the demonstration area of the Demonstration Board See Appendix C for more information 59 User s Manual B 2 Batteries and External Battery Connections The SRAM and the real time clock have provision for battery backup Power to the SRAM and the real time clock VRAM is provided by two different sources depending on whether the main part of the OP6800 is powered or not When the OP6800 is powered normally and Vcc is within operating limits the SRAM and the real time clock are powered from Vcc If power to the board is lost or falls below 4 63 V the VRAM and real time clock power must come from a backup battery in your system which you would connect to pin 40 of header J1 on the OP6800 via the ribbon cable The backup battery should be able to supply 2 85 V 3 15 V at 10 WA The reset generator circuit controls the source of power by way of its RESET output signal B 2 1 Battery Backup Circuit Figure B 1 shows the battery backup circuit located on the OP6800 module External Battery D3 l VBAT Q gt J1 40
30. AM This function automatically calls g1XGetFastmap if the left edge of the bitmap is byte aligned and the left edge and width are each evenly divisible by 8 Any portion of a bitmap image or character that is outside the LCD display area will be clipped This function call is intended for use only when a graphic engine is used to interface with the LCD keypad module PARAMETERS x is the x coordinate in pixels of the top left corner of the bitmap x must be evenly divisible by 8 y is the y coordinate in pixels of the top left corner of the bitmap bmWidth is the width in pixels of the bitmap must be evenly divisible by 8 bmHeight is the height in pixels of the bitmap xBm is the xmem RAM storage address of the bitmap RETURN VALUE None Draws bitmap in the specified space The data for the bitmap are stored in xmem This function is similar to g1XPutBitmap except that it s faster The bitmap must be byte aligned Any portion of a bitmap image or character that is outside the LCD display area will be clipped This function call is intended for use only when a graphic engine is used to interface with the LCD keypad module PARAMETERS left is the x coordinate of the top left corner of the bitmap x must be evenly divisible by 8 top is the y coordinate in pixels of the top left corner of the bitmap width is the width of the bitmap must be evenly divisible by 8 height is the height of the bitmap xmemptr is the xmem RAM storage addres
31. CONFIG LIB library You will find this library in the LIB TCPIP directory 3 You can create a CUSTOM_CONFIG LIB library and use a TCPCONFIG value greater than 100 Instructions for doing this are at the beginning of the TCP_CONFIG LIB library in the LIB TCPIP directory There are some other standard configurations for TCPCONFIG that let you select differ ent features such as DHCP Their values are documented at the top of the TCP _CONFIG LIB library in the LIB TCPIP directory More information is available in the Dynamic C TCP IP User s Manual IP Addresses Before Dynamic C 7 30 Most of the sample programs use macros to define the IP address assigned to the board and the IP address of the gateway if there is a gateway define MY IP ADDRESS 216 112 116 155 define MY NETMASK 255 255 255 248 define MY GATEWAY 216 112 116 153 In order to do a direct connection the following IP addresses can be used for the OP6800 define MY IP ADDRESS 10 1 1 2 define MY NETMASK 255 255 255 248 define MY GATEWAY 216 112 116 153 In this case the gateway is not used and is commented out The IP address of the board is defined to be 10 1 1 2 The IP address of your PC can be defined as 10 1 1 1 User s Manual 39 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
32. EEE Oeae NPE E treet 76 D3 LED Display css So aaa sake a ea en a en ee a ee es 77 DSi ROY Pad EE a cette E tas Seas suis ier speed E E E E 97 Index 101 Schematics 105 MiniCom OP6800 1 INTRODUCTION The OP6800 intelligent terminal interface is a small high performance C programmable terminal interface that offers built in I O and Ethernet connectivity A Rabbit 2000 micro processor operating at 22 1 MHz provides fast data processing 1 1 Description The OP6800 intelligent terminal interface incorporates the powerful Rabbit 2000 micro processor flash memory static RAM digital I O ports RS 232 RS 485 serial ports and a 10Base T Ethernet port 1 2 Features 122 x 32 graphic display 7 key keypad 7 LEDs 24 digital I O 13 filtered digital inputs and 11 sinking high current outputs 7 outputs with LED indicators and 4 high current digital outputs with transient protection to drive inductive loads Rabbit 2000 microprocessor operating at 22 1 MHz 128K static RAM and 256K flash memory standard may be increased to 512K SRAM and 512K flash memory One RJ 45 Ethernet port compliant with IEEE 802 3 standard for 10Base T Ethernet protocol OP6800 only Four serial ports 2 RS 232 or 1 RS 232 with RTS CTS 1 RS 485 and 1 CMOS com patible programming port Battery backable real time clock connection point for external battery included Watchdog Reset generator Meets NEMA 4 watertightness specification
33. O glFillCircle glPlotPolygon gl1FillPolygon Draws a filled 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 xc is the x coordinate of the center of the circle yc is the y coordinate of the center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glPlotCircle glPlotPolygon gl1FillPolygon 82 MiniCom OP6800 Initializes the font descriptor structure where the font is stored in xmem Each font character s bitmap is column major and byte aligned PARAMETERS piInfo is a pointer to the font descriptor to be initialized pixWidth is the width in pixels of each font item pixHeight is the height in pixels of each font item startChar is the value of the first printable character in the font character set endChar is the value of the last printable character in the font character set xmemBuf fer is the xmem pointer to a linear array of font bitmaps RETURN VALUE None SEE ALSO glPrinf Returns the xmem address of the character from the specified font set PARAMETERS pInfo is the xmem address of the bitmap font set letter is an ASCII character RETURN VALUE xmem address of bitmap character font column major and byte aligned SEE ALSO glPutFont glPrintf User s Manual 83 Puts an entry from the font table to the page buffer and
34. OND C waits for a message from another single board computer The mes sage received is displayed on the LCD and you may respond by pressing a key on the keypad The response is then sent to the remote single board computer TCPSEND C This program and TCP_RESPOND C are executed on two separate single board computers to demonstrate how the two boards communicate with each other Use PCRESPOND EXE on the PC console side at the command prompt if you do not have a second board PCRESPOND EXE is located with source code in the SAMPLES LCD_ Keypad Windows directory When a key on the keypad is pressed a message associated with that key is sent to a specified destination address and port The destination then responds to that message The response is displayed on the LCD Note that only the LEFT and UP scroll keys are set up to cause a message to be sent When using TCPSEND C and TCP_RESPOND C connect the OP6800 and the other single board computer to an Ethernet If you connect the them directly be sure to use a crossover Ethernet cable straight through Ethernet cables and a hub may be used instead 42 MiniCom OP6800 5 3 Where Do I Go From Here NOTE If you purchased your OP6800 through a distributor or Rabbit partner contact the distributor or partner first for technical support If there are any problems at this point e Use the Dynamic C Help menu to get further assistance with Dynamic C e Check the Rabbit Technical Bu
35. ad drivers Powerful language extensions for cooperative or preemptive multitasking Loader utility program to load binary images into Rabbit targets in the absence of Dynamic C Provision for customers to create their own source code libraries and augment on line help by creating function description block comments using a special format for library functions Standard debugging features gt Breakpoints Set breakpoints that can disable interrupts gt Single stepping Step into or over functions at a source or machine code level C OS II aware gt Code disassembly The disassembly window displays addresses opcodes mnemonics and machine cycle times Switch between debugging at machine code level and source code level by simply opening or closing the disassembly window gt Watch expressions Watch expressions are compiled when defined so complex expressions including function calls may be placed into watch expressions Watch expressions can be updated with or without stopping program execution gt Register window All processor registers and flags are displayed The contents of general registers may be modified in the window by the user gt Stack window shows the contents of the top of the stack gt Hex memory dump displays the contents of memory at any address gt STDIO window printf outputs to this window and keyboard input on the host PC can be detected for debugging purposes printf output may als
36. al inputs RETURN VALUE The state of the input 0 or 1 SEE ALSO brdiInit digOut ledOut Sets the state of a digital output OUTOO OUT10 Remember to call the brdInit function before executing this function A runtime error will occur if brd Init was not executed before executing digOut or when channel or value is out of range NOTE The LEDs and digital outputs OUTOO OUT06 are driven by the same driver chip Do not use both ledOut and digOut to control the same LED or digital output in a given application PARAMETERS channel is the output channel number 0 10 value is the output value 0 or 1 SEE ALSO brdiIinit digIn ledout User s Manual 73 D 3 Serial Communication OP68xx LIB Library files included with Dynamic C provide a full range of serial communications sup port The RS232 LIB library provides a set of circular buffer based serial functions The PACKET LIB library provides packet based serial functions where packets can be delim ited by the 9th bit by transmission gaps or with user defined special characters Both libraries provide blocking functions which do not return until they are finished transmit ting or receiving and nonblocking functions which must be called repeatedly until they are finished For more information see the Dynamic C User s Manual and Technical Note TN213 Rabbit 2000 Serial Port Software Use the following function calls with the OP6800 User interface to set
37. alates E E E 2 1 32 SOMWA asesir reon EEEE A EA AE EA TAE EEE TRES EEES AEE E EEEE TAEAE E EKES E SeS 3 LA CE Compl ance sssrinin aA SE E E A E ae EEEO EEE RETKE SE rN SE SEn EESE 4 14 1 Design Guideline Seriese ieres Ehnes EES Ha HEE E Eer E EAE E EEA EEEE EE RAE aE EEn aE enia 5 1 4 2 Interfacing the OP6800 to Other D VICESsssrireessriirerosieiisoesirisiigotssrssiniivaajosiesopi ikisi resio isie o iapa 5 Chapter 2 Getting Started 7 Zl CCOMMECHONS aers Errr EE ENEE E EE EES AE REO e Eeo eea EEE E EO ESEA EERE 7 2 2 Demonstration Program on Power Up sssessssesessesrsrsreresreetstrererresertnstntnsrntnsrrtstretesreetnreetneereette et 10 2 3 Display Contrast Adj stMment ssis ra aree e e E Or a E ES e AEE eaU EAEE ER TESA vets 10 2 4 Programming Cable Connections sssri sener r oriee estr enari E EK A E eE EE KEE 11 2 3 Inst lline Dynamic Caisso o errana a E EENEN EESE a EEO EREE EEE Eea aa EE NEE EENE RES 12 2 6 Starine Dynamit C pociirenioerstoireii reire aen ene EEEE EEEE ETEEN RERE OEE EEEE EE eA E a E EEEE 12 Tc PONG Coreea e E E e oxen e aE EEE Ea EE EEA EEEE EEE a EE 13 2 8 Where Do L Go From Here sisccice ieccctevencsndzetncessndenticesn e EEEE a E eie Ee RE EEEE ERE merai 13 Chapter 3 Subsystems 15 Sell PINOS sre at re OS elas eae EEEE E whee Gal eee Seca Ra E 16 D2 DITAN TO EEA E A A cascancbtcwcas shaeroedes AE ET 17 3 2 F Digital INp tS css bssceseedastebeascbncd sabevehereoicesattvachstevtesssvavedeapsensgevbecusuearedissnsav
38. alla tion site e Abrupt temperature changes and condensation e Ambient temperatures exceeding a range of 0 C to 50 C e Relative humidity exceeding a range of 5 to 95 e Strong magnetism or high voltage e Corrosive gasses e Direct vibration or shock e Excessive iron dust or salt e Spray from harsh chemicals User s Manual 45 6 2 Mounting Instructions A bezel and a gasket are included with the OP6800 When properly mounted in a panel the bezel of the OP6800 is designed to meet NEMA 4 specifications for water resistance Since the OP6800 employs an LCD display the viewing angle must be considered when mounting the display Install the OP6800 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 OP6800 Follow these steps for bezel mount installation 1 Cut mounting holes in the mounting panel in accordance with the recommended dimen sions in Figure 20 then use the bezel faceplate to mount the OP6800 onto the panel 0 125 D 4x PAE N Pa 7 Pia hS 7 N a 7 we W Pa hs 7 een ot CUTOUT Se x N z S 7x N r N Pa N Ny ge Z Pa N 7 ai N 7 m 0 230 Y ao 5 8 o 2 870 i 72 9 E 3 100 R 78 8 Figure 20 Recommended Cutout Dimensions 2 Remove the standoffs added to the OP6800 as described in Chapter 2
39. an to use them with the LEDs and the buzzer If you need additional current from the linear regulator beyond that specified in Table C 1 consider adding a heat sink to the linear regulator remember to use silicone grease between the tab and the heat sink or use a lower voltage power supply 66 MiniCom OP6800 C 3 Using the Demonstration Board The Demonstration Board is actually both a demonstration board and a prototyping board As a demonstration board it can be used to demonstrate the functionality of the OP6800 right out of the box without any modifications to either board There are no jumpers or dip switches to configure or misconfigure on the Demonstration Board so that the initial setup is very straightforward The Demonstration Board comes with the basic components necessary to demonstrate the operation of the OP6800 Four LEDs DS1 DS4 are connected to OUTO7 OUT 10 and four switches S1 S4 are connected to INOO INO3 to demonstrate the interface to the OP6800 The Demonstration Board has a buzzer that is normally off The buzzer can be enabled to be on by setting the jumper across pins 1 2 on header JP1 on the Demonstration Board as shown in Figure C 4 When enabled on the buzzer will sound whenever the OUTO digital output on the OP6800 is on Factory Default Oj oe olie S4 oe ojlo S3 le S2 oJ o S1 o RP1 o O DS4 DS3 DS2 DS1 J11
40. aracters typed via TCP IP User s Manual 41 5 2 5 LCD Keypad Sample Programs Showing TCP IP Features The following sample programs found in the TCPIP subdirectory in SAMPLES LCD Keypad 122x32_1x7 are targeted at the Ethernet enabled versions of the OP6800 Remember to configure the IP address netmask and gateway as indicated in the sample programs MBOXDEMO C This program implements a web server that allows Web e mail messages to be entered that are then shown on the LCD display The keypad allows you to scroll within messages flip to other e mails mark messages as read and delete e mails When a new e mail arrives an LED turns on and turns off once the message has been marked as read A log of all e mail actions is kept and can be displayed in the Web browser All current e mails can also be read with the Web browser When using MBOXDEMO C connect the OP6800 and a PC or other device with a Web Browser to an Ethernet If you connect the PC and the OP6800 directly be sure to use a crossover Ethernet cable straight through Ethernet cables and a hub may be used instead e TCP RESPOND C This program and TCP_SEND C are executed on two separate sin gle board computers to demonstrate how the two boards communicate with each other Use PCSEND EXE on the PC console side at the command prompt if you do not have a second board PCSEND EXE is located with source code in the SAMPLES LCD Keypad Windows directory TCP RESP
41. aying different FONT sizes 4 3 6 TCP IP Sample Programs TCP IP sample programs are described in Chapter 5 User s Manual 35 4 4 OP6800 Libraries The following library folders contain the libraries whose function calls are used to develop applications for the OP6800 e opPp68s00 libraries associated with OP6800 serial communication I O and initializa tion The functions in the OP68xx LIB library are described in Appendix D e DISPLAYS GRAPHIC libraries associated with the LCD display The functions in these libraries are described in Appendix D KEYPADS libraries associated with the keypad The functions in these libraries are described in Appendix D TCPIP libraries specific to using TCP IP functions The functions in these libraries are described in the Dynamic C TCP IP User s Manual Other generic functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C Function Reference Manual 36 MiniCom OP6800 5 USING THE TCP IP FEATURES Chapter 5 discusses using the TCP IP features on the OP6800 boards The TCP IP feature is not available on OP6810 versions 5 1 TCP IP Connections Before proceeding you will need to have the following items e 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 e Two RJ 45 straight through Ethernet
42. cables and a hub or an RJ 45 crossover Ethernet cable The Ethernet cables and Ethernet hub are available from Rabbit in a TCP IP tool kit More information is available at www rabbit com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections e Ifyou do not have access to an Ethernet network use a crossover Ethernet cable to con nect the OP6800 to a PC that at least has a 10Base T Ethernet card e If you have an Ethernet connection use a straight through Ethernet cable to establish an Ethernet connection to the OP6800 from an Ethernet hub These connections are shown in Figure 19 OP6800 Board OP6800 Board A Ethernet 7 User s PC Ethernet cables p crossover J To additional cable network nue T elements Direct Connection network of 2 computers Direct Connection Using a Hub Figure 19 Ethernet Connections User s Manual 37 3 Apply Power Plug in the AC adapter The OP6800 is now ready to be used NOTE A hardware RESET is accomplished by unplugging the AC adapter then plug ging it back in or by momentarily grounding the board reset input at pin 9 on screw ter minal header J2 The green LNK light on the OP6800 Rabbitcore module is on when the OP6800 is prop erly connected eit
43. ch could lead to considerable electromagnetic interference Demonstration Board Linear Regulator OP6800 Switching Regulator Figure C 2 Power Distribution to OP6800 and Demonstration Board User s Manual 65 The Demonstration Board has an onboard LM7805 linear regulator for the circuits on the Demonstration Board only Its major drawback is its inefficiency which is directly propor tional to the voltage drop across it The voltage drop creates heat and wastes power You may wish to use a switching power supply in your applications where better effi ciency is desirable The LM2575 is an example of an easy to use switching voltage regu lator This part greatly reduces the heat dissipation of the regulator The drawback in using a switching voltage regulator is its higher cost LINEAR POWER SUPPLY Vcc J5 7805 J2 RAW if u if SZ f o7 f Let 2 C2 a T 10 pF aie OE Figure C 3 Demonstration Board Power Supply Capacitor C1 provides surge current protection for the voltage regulator and allows the external power supply to be located some distance away Be careful to limit the current draw in any prototype circuits you build on the prototyping area of the Demonstration Board to avoid operating the linear regulator outside its recom mended limits The LEDs and buzzer together can draw up to 70 mA which still leaves some current capacity for your own circuits see Table C 1 if you pl
44. cseeessseessseesseeeeeee 12 tion resistors 20 54 c telephone based technical jumper locations 54 SUPPOTt oo 3 31 K CE compliance ccceeee 4 upgrades and patches 31 design guidelines 0 0 0 5 E keypad chip select circuit 62 function calls clock doubler 24 EMI keyConfig oe 97 connections spectrum spreader feature 25 KeyGet seriene 98 Ethernet cable 0 37 Ethernet cables o 37 keylnit wee 97 programming cable 11 Ethernet connections 37 keypadDef 0 0 99 CONTASE vi disniicte doch crpeerehesn 10 GIES cata tase ubioemaniss 37 keyProcess 0 0 0 eee 98 D Ethernet port essesi 22 KeyScam wees 99 handling EMI and noise 22 keyUnget oe 98 Demonstration Board pinout PNE S PONAS OEE 22 keypad template a 27 mounting and installation 69 exclusion Zone eeren 51 removing and inserting la PINOUT spocie eee eee 68 F a i prototyping area 0 68 L Wire assembly eeseeeee 2 feats sieneen erris 1 demonstration program 10 flash memory LCD display digital I O liefetime write cycles 29 function calls function calls using second 256K flash glBackLight 0 77 digimon aenn 73 MEMOTY ceeesseeesseesseeeeees 29 glBlankRegion 79 digOut sisses 73 flash memory bank select 26 glBlankScreen 78 SMODEO 1 eee eee 21 font and bitmap converter 32 BIBIOCK oo eee 80 SMODEL 0 eee eeeeeee 21 glBuffL
45. delines Use 4 40 screws that are 1 3 16 plus the thickness of the panel in length Note that the Demonstration Board and the OP6800 end up on opposite sides of the panel as shown in Figure C 7 OP6800 Bezel Gasket Demonstration Board 0000000000 o00000000n oo gt 000000000 000000000 i 00000000000 oo zo 000000000008 ooo0o00008 E soooo0oo0oso0o0000 so000000 m0000000000000000 90000000000000008 ooo0o008000008 mO000000 Ko Figure C 7 OP6800 with Demonstration Board Mounted in Panel rear view User s Manual 69 70 MiniCom OP6800 APPENDIX D OP6800 FUNCTION CALLS Appendix D provides the function calls related to the operation of the OP6800 board I O serial channels display and keypad User s Manual 71 D 1 Board Initialization OP68xx LIB Call this function at the beginning of your program This function initializes the system I O ports This function also turns off LED DS1 to indicate that the initialization was successful The ports are initialized according to Table A 4 SEE ALSO digIn digOut serMode ledoOut 72 MiniCom OP6800 D 2 Digital I O OP68xx LIB Reads the state of an input channel A runtime error will occur if brdInit was not executed before executing digIn or when channel is out of range PARAMETER channel is the input channel number 0 12 where INOO IN12 are the normal user digit
46. e loading for reliable commu nication RS 232 can be used effectively at the OP6800 s maximum baud rate for distances of up to 15 m 3 3 2 RS 485 The OP6800 has one RS 485 serial channel which is connected to the Rabbit 2000 Serial Port D through an RS 485 transceiver The half duplex communication uses the Rabbit 2000 s PB6 pin to control the transmit enable on the communication line The OP6800 can be used in an RS 485 multidrop network Connect the 485 to 485 and 485 to 485 using single twisted pair wires nonstranded tinned as shown in Figure 11 Note that a common ground is recommended User s Manual 19 Figure 11 OP6800 Multidrop Network The OP6800 comes with a 220 Q termination resistor and two 681 Q bias resistors installed and enabled with jumpers across pins 1 2 and 5 6 on header JP1 as shown in Figure 12 bias 2 Factory amat Default H om e auon bias Figure 12 RS 485 Termination and Bias Resistors For best performance the bias and termination resistors in a multidrop network should only be enabled on both end nodes of the network Disable the termination and bias re
47. emonstrates cofunctions the cofunction serial library and using a serial ANSI terminal such as Hyperterminal from an available COM port connection DISPPONG cC Demonstrates output to LCD display DKADEMO1 c Demonstrates some of the LCD keypad module font and bitmap manipulation features with horizontal and vertical scrolling and using the GRAPHIC LIB library FUN C Demonstrates drawing primitive features lines circles polygons using the GRAPHIC LIB library 34 MiniCom OP6800 e KEYBASIC c Demonstrates the following keypad functions in the STDIO display window default ASCII keypad return values custom ASCII keypad return values keypad repeat functionality e KEYMENU C Demonstrates how to implement a menu system using a highlight bar on a graphic LCD display The menu options for this sample are as follows 1 Set Date Time 2 Display Date Time 3 Turn Backlight OFF 4 Turn Backlight ON 5 Toggle LEDs 6 Increment LEDs 7 Disable LEDs LED c Demonstrates how to toggle the LEDs on the LCD keypad module SCROLLING c Demonstrates scrolling features of the GRAPHIC LIB library e TEXT c Demonstrates the text functions in the GRAPHIC LIB library Here is a list of what is demonstrated 1 Font initialization 2 Text window initialization 3 Text window end of line wraparound end of text window clipping line feed and carriage return 4 Creating 2 different TEXT windows for display 5 Displ
48. exclusion zone Exclusion Zone Figure A 2 OP6800 Exclusion Zone User s Manual 51 Table A 2 lists the electrical mechanical and environmental specifications for the OP6800 Table A 2 OP6800 Specifications Feature OP6800 OP6810 Microprocessor Rabbit 2000 at 22 1 MHz Ethernet Port 10Base T RJ 45 None Flash EPROM 256K SRAM 128K Backup Battery Connection for user supplied battery to support RTC and SRAM anon pe ee ee LEDs 7 hardware or software driven 1 red 4 green 2 yellow Digital Inputs 13 total 8 protected to 36 V DC 5 protected to 25 V DC Digital Outputs 11 total sink 200 mA 40 V DC max 4 with built in inductive load protection diode Serial Ports 4 serial ports two 3 wire RS 232 or one RS 232 with CTS RTS one RS 485 onboard network termination and bias resistors one 5 V CMOS compatible programming port Serial Rate Max burst rate CLK 32 Max sustained rate CLK 64 Connectors one RJ 45 Ethernet one 2 x 20 0 1 pitch IDC header one 2 x 20 0 1 pitch IDC header Real Time Clock Yes Five 8 bit timers one 10 bit timer with two match registers five anes timers are cascadable Watchdog Supervisor Yes Power 9 V to 36 V DC 1 5 W max Operating Range 0 C to 50 C emiperalure Storage Range 40 C to 85 C Humidity 5 to 95 noncondensi
49. ey 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 eCntHold isa hold tick which is approximately one debounce period or 5 us How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick which is approximately one debounce period or 5 us How many times to repeat 0 None cCntLo is a low speed hold tick which is approximately one debounce period or 5 us How long to hold before going to high speed repeat 0 Slow Only User s Manual 97 cSpdHi is a high speed repeat tick which is approximately one debounce period or 5 us How many times to repeat after low speed repeat 0 None RETURN VALUE None SEE ALSO keyProcess keyGet keypadDef Scans and processes keypad data for key assignment debouncing press and release and repeat NOTE This function is also able to process an 8 x 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 Pushes the value of cKey to the top of the input queue which is 16 bytes deep PARAMETER cKey RETURN VALUE None SEE ALSO keyGet 98 MiniCom OP6800 Configures the physical layout of the keypad with the desired ASCII return key codes Keypad physical mapping 1 x 7
50. her to an Ethernet hub or to an active Ethernet card The orange ACT light flashes each time a packet is received 38 MiniCom OP6800 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 OP6800 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 5 2 1 How to Set IP Addresses in the Sample Programs With the introduction of Dynamic C 7 30 we have taken steps to make it easier to run many of our sample programs 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 individual My_IP_ ADDRESS MY NETMASK MY GATEWAY and MY NAMESERVER macros in each program 2 You can leave TCPCONFIG at the usual default of 1 which will set the IP configurations to 10 10 6 100 the netmask to 255 255 255 0 and the nameserver and gateway to 10 10 6 1 If you would like to change the default values for example to use an IP address of 10 1 1 2 for the Coyote board and 10 1 1 1 for your PC you can edit the values in the section that directly follows the General Configuration comment in the TCP_
51. hows the mechanical dimensions and layout for the OP6800 Demonstration Board ISS QV OV DOSL SSY Sper oS Oo Oyo O O oj S4 O oj oj jo S2 St OVO 3 RP1 f0 o J ja a N D a 130 2 la a Figure C 1 OP6800 Demonstration Board Dimensions Table C 1 lists the electrical mechanical and environmental specifications for the Dem onstration Board Table C 1 Demonstration Board Specifications Parameter Specification Board Size 3 40 x 4 20 x 1 19 87 mm x 107 mm x 30 mm Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Input Voltage 7 5 V to 25 V DC Maximum Current Draw i ae 140 mA at 12 V and 25 C 100 mA at 12 V and 70 C including user added circuits Prototyping Area 1 7 x 2 1 43 mm x 53 mm through hole 0 1 spacing Standoffs Spacers 4 accept 4 40 x 11 8 screws 64 MiniCom OP6800 C 2 Power Supply The OP6800 requires an unregulated RAW power input of 9 V to 36 V DC which can be supplied from the Demonstration Board through the ribbon cable connection The OP6800 has its own switching voltage regulator Figure C 2 shows the distribution of the RAW input power to the OP6800 through the Demonstration Board The reference grounds on the OP6800 GND and on the Demon stration Board 0 V are tied together at one connection point only to avoid creating a ground loop whi
52. ht on or off 1 turn the backlight on 0 turn the backlight off RETURN VALUE None SEE ALSO glInit glDispOnoff glSetContrast Sets the LCD screen on or off Data will not be cleared from the screen PARAMETER onOff turns the LCD screen on or off 1 turn the LCD screen on 0 turn the LCD screen off RETURN VALUE None SEE ALSO glInit glSetContrast glBackLight User s Manual 77 Sets display contrast NOTE This function is not used with the OP6800 since the support circuits are not available on the LCD keypad module used with the OP6800 Fills the LCD display screen with a pattern PARAMETER The screen will be set to all black if pattern is OxFF all white if pattern is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glBlock glBlankScreen glPlotPolygon glPlotCircle Blanks the LCD display screen sets LCD display screen to the background color RETURN VALUE None SEE ALSO glFillScreen glBlock glPlotPolygon glPlotCircle Fills a rectangular block in the LCD buffer with the pattern specified Any portion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block top is the y coordinate of the top left corner of the block width is the width of the block height is the height of the block pattern is the bit pattern to display all black if pattern is OxFF all white if patte
53. ills a polygon in the LCD page buffer and on the LCD screen if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glFillPolygon glPlotPolygon glPlotVPolygon User s Manual 81 Fills 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 If fewer than 3 vertices are specified the function will return without doing anything 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 the second vertex y2 is the y coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glFillvVPolygon glPlotPolygon glPlotVPolygon Draws the outline of a circle in the LCD page buffer and on the LCD if the buffer is unlocked Any por tion of the circle that is outside the LCD display area will be clipped PARAMETERS xc is the x coordinate of the center of the circle yc is the y coordinate of the center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALS
54. ll as PPP Advanced Encryption Standard AES and other select libraries 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 User s Manual 31 4 2 Font and Bitmap Converter A Font and Bitmap Converter tool is available to convert Windows fonts and mono chrome bitmaps to a library file format compatible with Rabbit s Dynamic C applications and graphical displays Non Roman characters can also be converted by applying the monochrome bitmap converter to their bitmaps Start the Font and Bitmap Converter tool by double clicking on the fbmenvtr exe file in the Dynamic C directory You then select and convert existing fonts or bitmaps Com plete instructions are available via the Help menu that is in the Font and Bitmap Con verter tool Once you are done the converted file is displayed in the editing window Editing may be done but should not be necessary Save the file as libraryfilename 1ib where libraryfilename is a file name of your choice Add the library file s to applications with the statement use libraryfilename 1ib or by cutting and pasting from the library file s you created into the application program TIP If you used the use libraryfilename 1ib statement remember to enter libraryfilename 1ib into lib dir which is located in your Dynamic C directory You are now ready to add the font or bitmap to yo
55. lletin Board and forums at www rabbit com support bb and at www rabbit com forums e Use the Technical Support e mail form at www rabbit com support If the sample programs ran fine you are now ready to start developing your own application Additional sample programs are described in the Dynamic C TCP IP User s Manual Refer to the Dynamic C TCP IP User s Manual to develop your own applications An Introduction to TCP IP provides background information on TCP IP and is available on the Dynamic C CD and on our Web site User s Manual 43 44 MiniCom OP6800 6 INSTALLATION AND MOUNTING GUIDELINES Chapter 6 describes some considerations for mounting the OP6800 in a panel and includes detailed mounting instructions 6 1 Installation Guidelines When possible following these guidelines when mounting an OP6800 1 Leave sufficient ventilation space 2 Do not install the OP6800 directly above machinery that radiates a lot of heat for example heaters transformers and 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 OP6800 near devices with strong electrical or magnetic fields such as solenoids allow a least 3 8 cm more if necessary The OP6800 has strong environmental resistance and high reliability but you can maxi mize system reliability by avoiding or eliminating the following conditions at the inst
56. lock that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block top is the y coordinate of the top left corner of the block width is the width of the block height is the height of the block RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glPlotPolygon glPlotCircle Plots 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 If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glPlotPolygon glFillPolygon gl1FillVPolygon 80 MiniCom OP6800 Plots 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 If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices y1 is the y coordinate of the first vertex x1 is the x coordinate of the first vertex y2 is the y coordinate of the second vertex x2 is the x coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glPlotvVPolygon glFillPolygon glFillVPolygon F
57. ls are recorded in the LCD memory buffer and are not transferred to the LCD if the counter is non zero NOTE glBuffLock and glBuf Unlock 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 gl1BuffUnlock bracketing a set of related graphic calls speeds up the rendering significantly RETURN VALUE None SEE ALSO glBuffUnlock glSwap Decrements the LCD screen locking counter The contents of the LCD buffer are transferred to the LCD if the counter goes to zero RETURN VALUE None SEE ALSO glBuffLock glSwap Checks the LCD screen locking counter The contents of the LCD buffer are transferred to the LCD if the counter is zero RETURN VALUE None SEE ALSO glBuffUnlock glBuffLock _glSwapData located in the library specifically for the LCD that you are using Sets the drawing method or color of pixels drawn by subsequent graphic calls PARAMETER type value can be one of the following macros PIXBLACK draws black pixels turns pixel on PIXWHITE draws white pixels turns pixel off PIXXOR draws old pixel XOR ed with the new pixel RETURN VALUE None SEE ALSO g1lGetBrushType 86 MiniCom OP6800 Gets the current method or color of pixels drawn by subsequent graphic calls RETURN VALUE The current brush type SEE ALSO glSetBrushType Gets a bitmap from the LCD page buffer and stores it in xmem R
58. mple Programs esssseesseseeesessesrsrsseesrsersrsreersrrserrsreerssree 39 5 2 2 How to Set Up Your Computer for Direct Connect ssseseessseesseseressstersteresteererereesreersrenreees 40 5 2 3 Run the PINGME C Demo ce siririn a e a a eR a aE ERN eR Eao iSE 41 5 2 4 Running More Demo Programs With a Direct Connection esesesesseresesresrsrssesrssreresreerereereees 41 5 2 5 LCD Keypad Sample Programs Showing TCP IP Features 0 eeessseeeceeseeeeeceeeeceeeeneeeees 42 5 3 Where DoI Go From Here isi cse c3iccsces cocastents rsa siose eer ee EEE TEE AEE EE ETE E ea Er SEEE oe 43 Chapter 6 Installation and Mounting Guidelines 45 6 1 Installation GuideliNE Sissies i sree sree E reie e rE EE eai ara a EEE EEEE E Eoen SEa 45 6 2 Mounting Ins teu ct Ons sisis sess ccd ada es econ ednecedk eb ca e e EEES EAEE OE E oK ESS 46 6 2 1 Bezel Mount Installation spre eisini isss osci scteecs sspesees oseieda nade onsen desasenssdes sdeeessqussdesnsesesteveases 46 Appendix A Specifications 49 A 1 Electrical and Mechanical Specifications eee eeesseceeceseceeceeeeeeeeeeeeeseeeaeeseecaecaaesaecseceaeeneeaeenes 50 A 2 Conformal Coan Seeerei a E e e o Seon EEA dk oer vedios 53 A 3 Jumper Configurations osipi R a A E E A E e a a a ioia 54 AM Use of Rabbit 2000 Parallel POrtSiccsiesrson n a E E A tess 55 A 5 I O Address Assignments 0 ceceeccesseeseeseeseceseeseceseeseceseeseeeeeeeseaeeseeesecaaecaecsaesaeceeseaecssceseeeeeeseees
59. n be used to nudge the keypad legend in or out User s Manual 27 Keypad label is located under the blue keypad matte O aaeooO Figure 18 Removing and Inserting Keypad Label Once you have replaced the keypad label re insert the LCD keypad module circuit board under the mounting tabs in the plastic bezel as shown in Figure 17 Secure the LCD key pad module circuit board with the two screws 28 MiniCom OP6800 4 SOFTWARE Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Rabbit based 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 OP6800 You have a choice of doing your software development in the flash memory or in the static RAM included on the OP6800 The flash memory and SRAM options are selected with the Options gt Compiler menu The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 write cycles The disadvantage is that the code and data might not both fit in RAM NOTE An application can be developed in RAM but cannot run standalone from RAM after the programming cable is disconnected All standalone applications can only run from flash memory NOTE Do not depend on the flash memory sector size or type Due to the volatility of the flash memo
60. n practices Rabbit also recommends using properly shielded I O cables in noisy electromagnetic environments While the OP6800 meets the EN61000 4 2 ESD requirements in that it can withstand contact discharges of 4 kV and air discharges of 8 kV it is the responsibility of the end user to use proper ESD precautions to prevent ESD damage when installing or ser vicing the OP6800 Safety For personal safety all inputs and outputs to and from the OP6800 must not be con nected to voltages exceeding SELV levels 42 4 V AC peak or 60 V DC Damage to the Rabbit 2000 microprocessor may result if voltages outside the design range of 0 V to 40 V DC are applied directly to any of its digital inputs The lithium backup battery circuit on the OP6800 has been designed to protect the bat tery from hazardous conditions such as reverse charging and excessive current flows Do not disable the safety features of the design 1 4 2 Interfacing the OP6800 to Other Devices Since the OP6800 operator control panels are designed to be connected to other devices good EMC practices should be followed to ensure compliance CE compliance is ulti mately the responsibility of the integrator Additional information tips and technical assistance are available from your authorized Rabbit distributor and are also available on our Web site at www rabbit com User s Manual 5 MiniCom OP6800 2 GETTING STARTED Chapter 2 explains how to connect the
61. ng 2 60 x 3 00 x 1 10 Rosse 66 mm x 76 mm x 28 mm Bezel Size 4 50 x 3 60 x 0 30 114 mm x 91 mm x 7 6 mm 52 MiniCom OP6800 A 2 Conformal Coating The areas around the crystal oscillator and the battery backup circuit on the OP6800 mod ule have had the Dow Corning silicone based 1 2620 conformal coating applied The con formally 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 Conformally ee i coated area Figure A 3 OP6800 Areas Receiving Conformal Coating Any components in the conformally coated area may be replaced using standard soldering procedures for surface mounted components A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants NOTE For more information on conformal coatings refer to Rabbit Technical Note 303 Conformal Coatings User s Manual 53 A 3 Jumper Configurations Figure A 4 shows the header locations used to configure the various OP6800 options via jumpers Figure A 4 Location of BL2100 Configurable Positions Table A 3 lists the configuration options Table A 3 OP6800 Jumper Configurations Header Description Pins C
62. ng sample programs are found in the DEMO_ BD subdirectory in SAMPLES OP6800 BUZZER C Demonstrates the use of the buzzer on the Demonstration Board Remem ber to set the jumper across pins 1 2 of header JP1 on the Demonstration Board see Figure C 4 to enable the buzzer on When you finish with BUZZER C it is recom mended that you reconnect the jumper across pins 2 3 of header JP1 on the Demonstra tion Board to disable the buzzer KEYPAD C Flashes the LED above a keypad button when the corresponding keypad button is pressed The corresponding LED on the Demonstration Board will also flash if a keypad button in the top row of the keypad is pressed A message is also displayed on the LCD e SWITCHES c Flashes the LED on the Demonstration Board and the OP6800 when the corresponding pushbutton switch on the Demonstration Board is pressed A mes sage is also displayed on the LCD User s Manual 33 4 3 3 Digital I O The following sample programs are found in the Io subdirectory in SAMPLES OP6800 DIGIN C Demonstrates the use of the digital inputs By pressing a pushbutton switch on the Demonstration Board you can view an input channel toggle from HIGH to LOW on your PC monitor The four pushbutton switches correspond to INOO INO3 on the OP6800 INO4 IN12 can also be toggled by momentarily grounding the inputs DIGOUT cC Demonstrates the use of the sinking high current outputs By pressing a pushbutton switch on
63. nput IN05 Pulled up PA6 Input IN06 Pulled up PA7 Input IN07 Pulled up PBO Input INO8 Pulled up PB1 Input Not Used Pulled up PB2 Input IN09 Pulled up PB3 Input IN10 Pulled up User s Manual 55 Table A 4 Use of Rabbit 2000 Parallel Ports continued Port 1 0 Signal Output Function State PB4 Input IN11 Pulled up PB5 Input Connected to PB7 Driven by PB7 PB6 Output Not Used Low PB7 Output Connected to PB5 Low PCO Output TXD RS 485 Inactive high Serial Port D PC1 Input RXD RS 485 Inactive high PC2 Output RTS TXC RS 232 Inactive high Serial Port C PC3 Input CTS RXC RS 232 Inactive high PC4 Output TPOUT Realtek reset Initialized by sock_init PCS Input TPOUT Realtek INTO Pulled up PC6 Output TXA Programming Port Inactive high Serial Port A PC7 Input RXA Programming Port Pulled up PDO Input Realtek CLK OP6800 Initialized by sock_init Output Not used OP6810 Low PDI Input Realtek SDO OP6800 Initialized by sock_init Output Not used OP6810 Low PD2 Output Not used Low PD3 Output OUTO7 Low output driver off PD4 Output ATXB RS 232 Inactive high Serial Port B PD5 Input ARXB RS 232 Inactive high PD6 Output Not used Low PD7 Output Not used Low PEO Output RS 485 control register Low Tx disabled PE1 Output OUTO08 Low output driver off PE N A Realtek IORB strobe OP6800 Initialized by sock_init Output Not used
64. ntf Defines a text only display window This function provides a way to display characters within the text window using only character row and column coordinates The text window feature provides end of line wrapping and clipping after the character in the last column and row is displayed NOTE Execute the TextWindowFrame function before other Text functions PARAMETERS window is a pointer to the window frame descriptor pFont is a pointer to the font descriptor x is the x coordinate of the top left corner of the text window frame y is the y coordinate of the top left corner of the text window frame winWidth is the width of the text window frame 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 3 Invalid winHeight and or winWidth parameter value 92 MiniCom OP6800 This function initializes the window frame structure with the border and title information NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor border is the border style SINGLE LINE The function will draw a single line border around the text window DOUBLE LINE The function will draw a double line border around the text window title is a pointer to the title information If a NULL string
65. o be sent to a serial port or file 30 MiniCom OP6800 4 1 Upgrading Dynamic C 4 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 Rabbit recommends using a differ ent directory so that you can verify the operation of the patch without overwriting the existing Dynamic C installation If you have made any changes to the BIOS or to libraries or if you have programs in the old directory folder make these same changes to the BIOS or libraries in the new directory containing the 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 2 Upgrades Dynamic C installations are designed for use with the board they are included with and are included at no charge as part of our low cost kits Dynamic C is a complete software development system but does not include all the Dynamic C features Rabbit also offers add on Dynamic C modules containing the popular wC OS II real time operating system as we
66. o ee E EAE e Eo a ESEE E oE EEEO EEEE EEE EEEN OESE EEEE EEA EEE 27 Chapter 4 Software 29 4 1 Upgrading Dynamit Cossire ei e ERER E E EEEE EEEE EEE EEEE 31 41 1 Patches and Bug FiX Seevessnrsnieosinuiesivsevier erodo eE EE E EE EEEE EErEE 31 4 1 2 Up Prades x c ccsssigseseis cussesstecascecbvee tbeostscatsliveises tis oases A EEEE E EEE tyes AE E ASEE 31 4 2 Font and Bitmap Converter cscceccecsscssscessecessececeecssceeseecsecesaeceececsaeeeaeeseeeesaeceacecsaeeesaeeeecaeeesaeeeaes 32 User s Manual 4 3 Sample Program Sisipan esea e Eo aE EE Er EEE a EE Ep EEE E EEE EET s 33 4 371 Board IDin a a Bien ee teas E Ee e Atel Seated Aa Ee 33 a Re EADIE CIA Kea 1O11 Board PAIRE EEEE AT E T 33 43 3 Digital T O ee eet toi ea iea E E E eE EE E E EEn GE a a Sae 34 4 3 4 Serial Communication eroe eeeeseeeseesseeneesnceneeensonsvensconsserconeneecsecsserseessevssenssssvonseeseneesenesee ey 34 4 3 5 LCD Keypad Module Sample Programs eee eeecseesseceseesececeseeeeceseeeeceeeeeeseaeeaeecneesaeeaees 34 4 3 6 TCP IP Sample Programs eoc p E EE E E E A E E a 35 AA OP6800 LIDTATIES origins insira naea a e E EEEa SOES dba e E e oap RE TAE EEEE EAEI SEPTO NIRE SEEE SEST EER is 36 Chapter 5 Using the TCP IP Features 37 5 F TCPAP COmmections aaraa eaae era e oa r aE ara Aae EESE snscheetasebab Orra aa E DEEDS kaeT REESS poi 37 3 2 TCP IP Sample Programs siiin oneone foc ee EE E E E EEE EESTE EEE E ES 39 5 2 1 How to Set IP Addresses in the Sa
67. ock sessen 86 digital inputs wee 17 H glBuffUnlock 0 86 remote keypad operation 17 glDispOnOff 77 switching threshold ig Peaders BIDOWN serccssessseceseseeeee 89 digital outputs ccsccccssssseeee 18 JPI ssesrssssoseserensesveseesensener 20 glFastFillRegion 79 dimensions glFillCircle oe 82 Demonstration Board 64 glFillPolygon 82 LCD keypad template 27 T O address assignments 57 glFillRegion ww 78 QPO800 srpen 50 installation guidelines 45 glFillScreen 0 78 Dynamic C oo 3 30 introduction 0 0 eee eect cette 1 glFillVPolygon 81 add on modules 3 31 IP addresses glFontCharAddr 83 changing programming baud how to set wee eres 39 glGetBrushType 87 rate in BIOS we 12 how to set PC IP address 40 glGetPfStep eee 84 User s Manual 101 LCD display P LCD keypad module 34 function calls continued ALPHANUN C 34 gIHScroll a sccassueda 90 pin 1 locations 50 COFTERMA C o s sssss 34 QIN TE riain aiis 77 pinout DISPPONG C 08 34 glLeftl ossee 88 Demonstration Board 68 DKADEMOL C 00 34 gIPlotCircle cseecsseee 82 Ethernet port 22 BUNG corate 10 34 gIPIotDot sicacsetss 88 OP6800 headers 16 KEYBASIC C o cccessseees 35 glPlotLine cceccseeeeeseeee 88 power distribution 65 KEYMENU C oases
68. ogramming cable is attached When the Rabbit 2000 is reset the operating mode is determined by the status of the SMODE pins When the programming cable s PROG connector is attached the SMODE pins are pulled high placing the Rabbit 2000 in the Program Mode When the programming cable s PROG connector is not attached the SMODE pins are pulled low causing the Rabbit 2000 to operate in the Run Mode Program Mode Run Mode hlo poooooGDDD0000000000 zalm 0 6 0 0 0 0 0 0 0 0 0 0 O 0 O O O O O pIREMEEHE ala EI EUSUEUSU2 DIAG Colored edge gt Programming Cable To PC COM port RESET OP6800 when changing mode Cycle power off on after removing or attaching programming cable Figure 15 OP6800 Program Mode and Run Mode Set Up A program runs in either mode but can only be downloaded and debugged when the OP6800 is in the Program Mode Refer to the Rabbit 2000 Microprocessor User s Manual for more information on the pro gramming port and the programming cable User s Manual 23 3 5 Other Hardware 3 5 1 Clock Doubler The OP6800 takes advantage of the Rabbit 2000 microprocessor s internal clock doubler A built in clock doubler allows half frequency crystals to be used to reduce radiated emis sions The 22 1 MHz frequency is generated using an 11 0592 MHz crystal The clock doubler is disabled automatically in the BIOS for crystals with a frequency above 1
69. ompile two different co resident programs for the upper and lower halves of the 256K flash in such a way that both pro grams start at logical address 0000 This is useful for applications that require a resident download manager and a separate downloaded program See Technical Note TN218 Implementing a Serial Download Manager for a 256K Flash for details 26 MiniCom OP6800 3 7 Keypad Labeling The keypad may be labeled according to your needs A template is provided in Figure 16 to allow you to design your own keypad label insert 2 35 60 Figure 16 Keypad Template Before you can replace the keypad legend you will have to remove the LCD keypad mod ule from the plastic bezel The LCD keypad module circuit board is held down with two screws and two tabs as shown in Figure 17 Mounting cyanea ran Mounting screws i Y e screws Mounting E z Mounting tabs tabs Figure 17 Removing LCD Keypad Module from Plastic Bezel To replace the keypad legend remove the old legend and insert your new legend prepared according to the template in Figure 16 The keypad legend is located under the blue keypad matte and is accessible from either the left side or the right side as shown in Figure 18 A small screwdriver or a similar small pointed objectca
70. on the LCD if the buffer is unlocked Each font character s bitmap is column major and byte aligned Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the top left corner of the text y is the y coordinate row of the top left corner of the text pInfo is a pointer to the font descriptor code is the ASCII character to display RETURN VALUE None SEE ALSO glFontCharAddr glPrintf Sets the g1Printf printing step direction The x and y step directions are independent signed values The actual step increments depend on the height and width of the font being displayed which are multi plied by the step values PARAMETERS stepX is the g1Printf x step value stepY is the g1Printf y step value RETURN VALUE None SEE ALSO Use g1GetP Step to examine the current x and y printing step direction Gets the current g1Printf printing step direction Each step direction is independent of the other and is treated as an 8 bit signed value The actual step increments depends on the height and width of the font being displayed which are multiplied by the step values RETURN VALUE The x step is returned in the MSB and the y step is returned in the LSB of the integer result SEE ALSO Use g1GetP Step to control the x and y printing step direction 84 MiniCom OP6800 Provides an interface between the STDIO string handling functions and the g
71. onnected Paean Default 1 2 Bias and termination resistors 5 6 connected x IPI RS 485 Bias and Termination Resistors 1 3 Bias and termination resistors not 4 6 connected Although pins 1 3 and 4 6 of header JP1 are shown jumpered for the termination and bias resistors not connected pins 3 and 4 are not actually connected to anything and this configuration is a parking configuration for the jumpers so that they will be readily available should you need to enable the termination and bias resistors in the future 54 MiniCom OP6800 A 4 Use of Rabbit 2000 Parallel Ports Figure A 5 shows the Rabbit 2000 parallel ports PBO PB2 PDO PD1 PB4 PB5 PB7 PD5 PD3 PD4 n e Port B rote i E RABBIT lt a 2000 Address Lines Real Time Clock I O Control Watchdog PA0 PA7 2 more inputs serial ant A 4 Ethernet signals Emnerne IRESET E Misc I O L_Slave Port LL ClockDoubler __ Doubler SaR A A PEO PE1 PE7 PE4 PE5 A0 A3 IORD IOWR Figure A 5 OP6800 Rabbit Based Subsystems Table A 4 lists the Rabbit 2000 parallel ports and their use in the OP6800 Table A 4 Use of Rabbit 2000 Parallel Ports Port 1 0 Signal Output Function State PAO Input INOO Pulled up PAI Input INOL Pulled up PA2 Input IN02 Pulled up PA3 Input IN03 Pulled up PA4 Input IN04 Pulled up PA5 I
72. op left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glHScroll glLeft1 Scrolls byte aligned window up one pixel bottom column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glVScroll glDownl1 Scrolls byte aligned window down one pixel top column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glvScroll glUpl User s Manual 89 Scrolls right or left within the defined window by x 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 The left and cols pa
73. ormer connector assembly ground is connected to the BL2100 module printed circuit board digital ground via a 0 Q resistor jumper R29 as shown in Figure 14 RJ 45 Ethernet Plug T R2 7 v Board Chassis Ground Ground Figure 14 Isolation Resistor R29 The factory default is for the 0 Q resistor jumper at R29 to be installed In high noise environments remove R29 and ground the transformer connector assembly directly through the chassis ground This will be especially helpful to minimize ESD and or EMI problems 22 MiniCom OP6800 3 4 Programming Cable The programming cable is used to connect the programming port of the OP6800 to a PC serial COM port The programming cable converts the RS 232 voltage levels used by the PC serial port to the voltage levels used by the Rabbit 2000 When the PROG connector on the programming cable is connected to the OP6800 pro gramming port programs can be downloaded and debugged over the serial interface between the PC and the Rabbit 2000 The DIAG connector of the programming cable may be used on header J1 of the OP6800 RabbitCore module with the OP6800 operating in the Run Mode This allows the pro gramming port to be used as a regular serial port 3 4 1 Changing Between Program Mode and Run Mode The OP6800 is automatically in Program Mode when the PROG connector on the pro gramming cable is attached and is automatically in Run Mode when no pr
74. ou are using a USB port to connect your computer to the OP6800 choose Options gt Project Options and select Use USB to Serial Converter Click OK Dynamic C assumes by default that you are using serial port COM1 on your PC If you are using COM1 then Dynamic C should detect the OP6800 and go through a sequence of steps to cold boot the OP6800 and to compile the BIOS If the error message Rabbit Pro cessor Not Detected appears you have probably connected to a different PC serial port such as COM2 COM3 or COM4 You can change the serial port used by Dynamic C with the OPTIONS menu then try to get Dynamic C to recognize the OP6800 by selecting Reset Target Compile BIOS on the Compile menu Try the different 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 might not working on your PC If you receive the BIOS successfully compiled message after pressing lt Ctrl Y gt or starting Dynamic C and this message is followed by a communications error message it is possible that your PC cannot handle the 115 200 bps baud rate Try changing the baud rate to 57 600 bps as follows e Locate the Serial Options dialog in the Dynamic C Options gt Project Options gt Communications menu Change the baud rate to 57 600 bps 12 MiniCom OP6800 2 7 PONG C You are now ready to test you
75. p TextWindow Test d n count RETURN VALUE None SEE ALSO TextGotoxY TextPutChar TextWindowFrame TextCursorLocation User s Manual 95 This function returns the maximum number of characters that can be displayed within the text window NOTE Execute the TextWindowFrame function before using this function PARAMETERS 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 This functions clears the entire area within the specified text window NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor RETURN VALUE None SEE ALSO TextGotoxY TextPrintf TextWindowFrame TextCursorLocation 96 MiniCom OP6800 D 5 1 Keypad The functions used to control the keypad are in the KEYPAD7 LIB library located in the Dynamic C LIB KEYPADS library folder Initializes keypad process RETURN VALUE None SEE ALSO brdinit Assigns each key with key press and release codes and hold and repeat ticks for auto repeat and debouncing PARAMETERS cRaw is a raw key code index 1 x 7 keypad matrix with raw key code index assignments in brackets 0 1 2 3 4 5 6 User Keypad Interface cPress is a key press code An 8 bit value is returned when a k
76. pointer to cursor row variable RETURN VALUE Lower word Cursor Row location Upper word Cursor Column location SEE ALSO TextGotoxY TextPrintf TextWindowFrame TextCursorLocation 94 MiniCom OP6800 Displays a character on the display where the cursor is currently pointing Once a character is displayed the cursor will be incremented to the next character position If any portion of a bitmap character is out side the LCD display area the character will not be displayed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor ch is a character to be displayed on the LCD RETURN VALUE None SEE ALSO TextGotoxY TextPrintf TextWindowFrame TextCursorLocation Prints a formatted string much like printf on the LCD screen Only printable characters in the font set are printed escape sequences r and n are also recognized All other escape sequences will be skipped over for example b and t will cause nothing to be displayed The text window feature provides end of line wrapping and clipping after the character in the last col umn and row is displayed The cursor then remains at the end of the string NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor fmt is a formatted string are formatted string conversion parameter s EXAMPLE TextPrintf am
77. r programming connections by running a sample program Find the file PONG cC which is in the Dynamic C SAMPLES folder To run the program 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 and will dis play 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 if you have the OP6800 model the OP6810 does not have an Ethernet capability 2 8 Where Do I Go From Here NOTE If you purchased your OP6800 through a distributor or Rabbit partner contact the distributor or partner first for technical support If there are any problems at this point e Use the Dynamic C Help menu to get further assistance with Dynamic C e Check the Rabbit Technical Bulletin Board and forums at www rabbit com support bb and at www rabbit com forums e Use the Technical Support e mail form at www rabbit com support If the sample program ran fine you are now ready to go on to explore other OP6800 fea tures and develop your own applications The following sample programs illustrate the features and operation of the OP6800 OP6800 Demonstration Board SAMPLES LCD KEYPAD 122x32 1x7 SAMPLES OP6800 DEMO BD KEYBASIC C KEYPAD C KEYMENU C SWITCHES C SCROLLING C TEXT C These
78. rameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple of 8 2 Parameters will be checked to verify that the scrolling area is valid The minimum scrolling area is a width of 8 pixels and a height of one row PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 top is the top left 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 nPix is the number of pixels to scroll within the defined window a negative value will produce a scroll to the left RETURN VALUE None SEE ALSO glVScroll MiniCom OP6800 Scrolls up or down within the defined window by x 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 The left and cols parameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple of 8 2 Parameters will be checked to verify that the scrolling area is valid The minimum scrolling area is a width of 8 pixels and a height of one row PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 rows is the number
79. raphic 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 LCD display area will be clipped PARAMETERS ch is the character to be displayed on the LCD ptr is not used but is a place holder for STDIO string functions cnt is not used is a place holder for STDIO string functions pinst is a pointer to the font descriptor RETURN VALUE None SEE ALSO glPrintf glPutFont doprnt Prints a formatted string much like print on the LCD screen Only the character codes that exist in the font set are printed all others are skipped For example b t n and r ASCII backspace tab new line and carriage return respectively will be printed if they exist in the font set but will not have any effect as control characters Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the upper left corner of the text y is the y coordinate row of the upper left corner of the text piInfo is a pointer to the font descriptor fmt is a formatted string are formatted string conversion parameter s EXAMPLE glprintf 0 0 amp 112x16 Test d n count RETURN VALUE None SEE ALSO glXFontInit User s Manual 85 Increments LCD screen locking counter Graphic cal
80. rn is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock glBlankRegion 78 MiniCom OP6800 Fills a rectangular block in the LCD buffer with the pattern specified The block left and width parame ters must be byte aligned Any portion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block top is the y coordinate of the top left corner of the block width is the width of the block height is the height of the block pattern is the bit pattern to display all black if pattern is OxFF all white if pattern is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock glBlankRegion Clears a region on the LCD display The block left and width parameters must be byte aligned Any por tion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block x must be evenly divisible by 8 top is the y coordinate of the top left corner of the block width is the width of the block must be evenly divisible by 8 height is the height of the block RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock User s Manual 79 Draws a rectangular block in the page buffer and on the LCD if the buffer is unlocked Any portion of the b
81. ry market the OP6800 and Dynamic C were designed to accommodate flash devices with various sector sizes OP6800s that are special ordered with the 512K flash 512K SRAM memory option have two 256K flash memories By default Dynamic C will use only the first flash memory for program code in these OP6800s Uncomment the BIOS macro USE_2NDFLASH_CODE in BIOS RABBITBIOS C to allow the second flash memory to hold any program code that is in excess of the available memory in the first flash User s Manual 29 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 a binary image file for later loading Dynamic C runs on PCs under Windows 95 or later Programs can be downloaded at baud rates of up to 230 000 bps after the program compiles Dynamic C has a number of standard features e Full feature source and or assembly level debugger no in circuit emulator required e Royalty free TCP IP stack with source code and most common protocols e Hundreds of functions in source code libraries and sample programs gt Exceptionally fast support for floating point arithmetic and transcendental functions gt RS 232 and RS 485 serial communication gt Analog and digital I O drivers gt I C SPI GPS file system gt LCD display and keyp
82. s of the bitmap RETURN VALUE None SEE ALSO glXPutBitmap glPrintf User s Manual 87 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 PARAMETERS x is the x coordinate of the dot y is the y coordinate of the dot RETURN VALUE None 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 coordinate of the other endpoint of the line RETURN VALUE None SEE ALSO glPlotDot glPlotPolygon glPlotCircle Scrolls byte aligned window left one pixel right column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glHScroll glRight1 88 MiniCom OP6800 Scrolls byte aligned window right one pixel left column is filled by current pixel type color PARAMETERS left is the t
83. s when front panel mounted Remote program downloading and debugging capability via RabbitLink User s Manual 1 Two OP6800 models are available Their standard features are summarized in Table 1 Table 1 OP6800 Models Feature OP6800 OP6810 Microprocessor Rabbit 2000 running at 22 1 MHz Static RAM 128K Flash Memory 256K RJ 45 Ethernet Connector and Yes No Filter Capacitors RabbitCore Module Used RCM2200 RCM2300 One additional 512K flash 512K SRAM memory option is available for custom orders and involves nominal lead times Contact your Rabbit sales representative or authorized distributor for more information Throughout this manual the term OP6800 refers to the complete series of OP6800 opera tor interfaces unless other production models are referred to specifically Appendix A provides detailed specifications Visit our 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 1 3 Development and Evaluation Tools 1 3 1 Tool Kit A Tool Kit contains the hardware essentials you will need to use your OP6800 The items in the Tool Kit and their use are as follows e Dynamic C CD ROM with complete product documentation on disk e OP6800 Getting Started instructions e Programming cable used to connect your PC serial port to the OP6800 e Universal AC adapter 12 V DC 1 A
84. sample programs can be used as templates for applications you may wish to develop Chapter 3 Subsystems provides a description of the OP6800 s features Chapter 4 Software describes the Dynamic C software libraries and describes the sample pro grams and Chapter 5 Using the TCP IP Features explains the TCP IP features and describes some sample programs User s Manual 13 14 MiniCom OP6800 3 SUBSYSTEMS Chapter 3 describes the principal subsystems for the OP6800 e Digital I O e Serial Communication e Memory Figure 7 shows these Rabbit based subsystems designed into the OP6800 Pax ar Cae Cae SRAM RABBIT Input Keypad Ethernet igi OP6800 onl Display aad RabbitCore Module Figure 7 OP6800 Subsystems User s Manual 15 3 1 Pinouts Figure 8 shows the OP6800 pinouts OOOOOOOOOOODOOOOAOODOOLGA o O O o O o O o O o O o O o O o O o O O 1 p T a T 7 Fal T ri nann Ei ENEI oooo0oo0oo0o0000 oo0oo0oo0000000 aleve oo0oo0o0 O000 oo0oo0o0 oo0oo0o0 H0 aoe Menen EnETETETETETET O a Ua LsUeUeU2Ua RPT E REFREN al onga O ano_9df Bea te oe ayo sz 089 o 1x
85. seas 57 Appendix B Power Supply 59 B l Power Supplies monennen eee E a N A A ee Re E a is 59 B 2 Batteries and External Battery Connections cece ce ceseeeeceeeesecesecesceseceseeseseeeeseeeaeeseecaessaesaeeeees 60 B 2 1 Battery Backup Circuit sn eee cece a e e a A E ar EI ER 60 B 2 2 Power to VRAM S Witch sscescsssesscigss cei ssaeheses hb schesbuscssiecste otedbebehavisuscnbey cbsuvesbenshstensoupsbeteetepoanesees 61 Bi2 3 Reset Generator neco ccos Sie Gaccstec eirese EE EEES EE sebuah ENEE es eS babes doushodsedua Voseuteas 61 B 3 Chip Select Circuiti eeens cucseed be cpnsdes ah nese daresi EEES denstesees Sop SEKTE TEESE das desseshasbesmedvboeas a 62 Appendix C Demonstration Board 63 C 1 Mechanical Dimensions and Layout 0 0 cesses cesecneceeesecesceseceseeeseeeeseseasesaecaecsaesaecseesaessaeereees 64 C2 Power SUPPLy ee deceses sues ee AENA Ea le pee auld NEEE ob ete E EEE OA AN AEE RENE OO OEE i EEES EY 65 C 3 Using the Demonstration Board 00 0 ccecsessecnecssecnecseeseceeeeseceeeseseaeeseseasesaecaecaaesaecsecsaseaeeaeenes 67 Appendix D OP6800 Function Calls 71 D 1 Board Initialization OP68xXX LIB ccccecessecesseceseeeecessecensaeecsesceesseecneseeecssaeceseeeecesaeseseeaesseaeeenes 72 D2 Digital O OPRG8xx IB neare an n a E R EAN KR E 73 D 3 Serial Communication OP68XxX LIB cccccccesscessnsecesseceesseecsesceecseeeneeeecseeeceseseecesaeeeseeaeeeseeeenes 74 DA LEDS OR68XX LIB Pense ne aar n ea E E PE EEE EAEE
86. sis tors on any intervening OP6800 units in the network by removing both jumpers from header JP1 TIP Save the jumpers for possible future use by parking them across pins 1 3 and 4 6 of header JP1 Pins 3 and 4 are not otherwise connected to the OP6800 20 MiniCom OP6800 3 3 3 Programming Port The OP6800 programming port is accessed using header J1 on the OP6800 s RabbitCore module or through the Ethernet jack The programming port uses the Rabbit 2000 s Serial Port A for communication Dynamic C uses the programming port to download and debug programs The programming port is also used for the following operations e Cold boot the Rabbit 2000 on the OP6800 after a reset e Remotely download and debug a program over an Ethernet connection using the RabbitLink EG2110 e Fast copy designated portions of flash memory from one Rabbit based board the master to another the slave using the Rabbit Cloning Board Alternate Uses of the Programming Port All three clocked Serial Port A signals are available as e asynchronous serial port e an asynchronous serial port with the clock line usable as a general CMOS input The programming port may also be used as a serial port via the DIAG connector on the programming cable In addition to Serial Port A the Rabbit 2000 startup mode SMODEO SMODE1 status and reset pins are available on the programming port header The two startup mode pins determine what happens after
87. so the same function call that turns on one of these digital outputs will also turn on the corresponding LED LED on off control A runtime error will occur if brdInit was not executed before executing LedOut or when led or value is out of range NOTE The LEDs and digital outputs OUTOO OUT06 are driven by the same driver chip Do not use both ledOut and digOut to control the same LED or digital output in a given application PARAMETERS led is the LED to control 0 LED DS1 1 LED DS2 2 LED DS3 3 LED DS4 4 LED DS5 5 LED DS6 6 LED DS7 value is the value used to control whether the LED is on or off 0 or 1 0 off l on RETURN VALUE None SEE ALSO brdIinit digOut 76 MiniCom OP6800 D 5 LCD Display The functions used to control the LCD display are contained in the GRAPHIC LIB library located in the Dynamic C LIB DISPLAYS GRAPHIC library directory When x and y coordinates on the display screen are specified x can range from 0 to 121 and y can range from 0 to 31 These numbers represent pixels from the top left corner of the display Initializes the display devices clears the screen RETURN VALUE None SEE ALSO glDispOnoOFF glBacklight glSetContrast glPlotDot glBlock glPlotDot glPlotPolygon glPlotCircle glHScroll glVScroll glXFontInit glPrintf glPutChar glSetBrushType glBuffLock glBuffUnlock glPlotLine Turns the display backlight on or off PARAMETER onOf f turns the backlig
88. t OK gt or lt Close gt to exit the various dialog boxes OP6800 IP 10 10 6 101 Board Netmask 255 255 255 0 User s PC Ethernet crossover cable Direct Connection PC to OP6800 Board 40 MiniCom OP6800 5 2 3 Run the PINGME c Demo Connect a crossover cable from your computer s Ethernet port to the OP6800 s RJ 45 Ethernet connector Open this sample program from the SAMPLES TCPIP IcmpP folder compile the program and start it running under Dynamic C When the program starts run ning the green LNK light on the OP6800 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 or you are not using a straight through Ethernet cable 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 10 6 100 or by Start gt Run and typing the command ping 10 10 6 100 Notice that the orange ACT light flashes on the OP6800 while the ping is taking place and indicates the transfer of data The ping routine will ping the board four times and write a summary message on the screen describing the operation 5 2 4 Running More Demo Programs With a Direct Connection The program SSI C SAMPLES OP6800 TCPIP demonstrates how to make the OP6800 a Web server This
89. tab from the Dynamic C Options gt Project Options menu 2 Normal spreading is the default and usually no entry is needed If you need to specify normal spreading add the line ENABLE_SPREADER 1 For strong spreading add the line ENABLE_SPREADER 2 To disable the spectrum spreader add the line ENABLE_SPREADER 0 NOTE The strong spectrum spreading setting is not needed for the OP6800 3 Click OK to save the macro The spectrum spreader will now remain off whenever you are in the project file where you defined the macro There is no spectrum spreader functionality for OP6800 operator control panels that do not carry the CE mark on their RabbitCore module or when using any OP6800 with a version of Dynamic C prior to 7 30 User s Manual 25 3 6 Memory 3 6 1 SRAM The OP6800 module is designed to accept 128K to 512K of SRAM The standard OP6800 modules come with 128K of SRAM 3 6 2 Flash Memory The OP6800 is also designed to accept 128K to 512K of flash memory The standard OP6800 modules come with one 256K flash memory NOTE Rabbit recommends that any customer applications should not be constrained by the sector size 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 Q surface mounted resistors exists at header JP2 on the RabbitCore module This option used in conjunction with some configuration macros allows Dynamic C to c
90. ter 11 Dynamic C settings 12 User s Manual 103 104 MiniCom OP6800 SCHEMATICS 090 0134 OP6800 Schematic www rabbit com documentation schemat 090 0134 pdf 090 0120 RCM2200 Schematic www rabbit com documentation schemat 090 0120 pdf 090 0119 RCM2300 Schematic www rabbit com documentation schemat 090 0119 pdf 090 0140 OP6800 Demonstration Board Schematic www rabbit com documentation schemat 090 0140 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 105
91. uld not be used for other purposes User s Manual 17 3 2 2 Digital Outputs The OP6800 has 11 digital outputs OUTOO OUT10 which can each sink up to 200 mA Figure 10 shows a wiring diagram for using the digital outputs OUTOO OUT06 can switch up to 40 V and the corresponding LEDs when the outputs are on OUTO7 OUT 10 offer protection for inductive loads when K is connected to an exter nal power supply OUTO7 OUT10 are not connected to the LEDs OUT00 OUT06 Vcc iq LOAD External Vv Power Supply A OUT K 0 40 V Pha GND bg D OUT07 OUT10 K A LOAD External OUT Power Supply 0 40 V GND Figure 10 OP6800 Digital Outputs It is possible to use an external open collector driver to control the LEDs associated with OUTOO OUTO06 Connect the external driver to the output corresponding to the LED you wish to control but keep the internal driver turned off The external driver will then con trol the LED 18 MiniCom OP6800 3 3 Serial Communication The OP6800 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 serMode software function call Table 3 summarizes the options Table 3 Serial Communication Configurations Serial Port Mode B C D 0 RS 232 3 wire RS 232 3 wire RS 485 1 RS 232 5 wire CTS RTS RS 485
92. ur application using the g1XFontInit or the gl1XPutBitmap function calls 32 MiniCom OP6800 4 3 Sample Programs Sample programs are provided in the Dynamic C Samples folder The sample program PONG C demonstrates the output to the STDIO window The various directories in the Samples folder contain specific sample programs that illus trate the use of the corresponding Dynamic C libraries The oP6800 folder provides sample programs specific to the OP6800 Each sample pro gram has comments that describe the purpose and function of the program Follow the instructions at the beginning of the sample program To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 The OP6800 must be in Program mode see Section 3 4 and must be connected to a PC using the programming cable as described in Section 2 1 More complete information on Dynamic C is provided in the Dynamic C User s Manual TCP IP specific functions are described in the Dynamic C TCP IP User s Manual Infor mation on using the TCP IP features and sample programs is provided in Section 5 Using the TCP IP Features 4 3 1 Board ID The following sample program can be found in the SAMPLES OP6800 subdirectory BOARD ID C Detects the type of single board computer and displays the information in the STDIO window For the OP6800 the STDIO window should show oP6800 4 3 2 Demonstration Board The followi
93. vanced Encryption Standard AES library In addi tion to the Web based technical support included at no extra charge a one year telephone based technical support subscription is also available for purchase Visit our Web site at www rabbit com for further information and complete documentation or contact your Rabbit sales representative or authorized distributor User s Manual 3 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 less than 40 dB pV m at 10 m 40 dB relative to 1 uV m or 300 uV m More restrictive emissions requirement 30 dB pV m at 10 m or 100 uV m These limits apply over the range of 30 230 MHz The limits are 7 dB higher for frequencies above 230 MHz Although the test range goes to 1 GHz the emissions from Rabbit based systems at frequencies above 300 MHz are generally well below background noise levels The OP6800 has been tested and was found to be in conformity with the following applicable immunity and emission standards The OP6810 is also CE qualified as it is a sub version of the OP6800 Boards that are CE compliant have the CE mark NOTE Earlier versions of the OP6800 sold before 2003 that do not have the CE mark are not CE complaint Immunity The OP6800 operator interfaces meet the following EN55024 1998 immunity
94. vedunesbivmolastescsdubeauevsenvbes 17 32 2 Deitel Qutpuis E EA E T vase svecapnboesteseochwrrteahstanedencebede 18 3 3 Seral COMMUNICAU OM ssi eivessevsosaccedcueenivecgunsdvaesetussvcseostsauessessustgivaesinesdscdeyeusessaseseuse oatevutecsducecaonsecatges 19 IMRS 232 ir EE EA E shag E aE Acaeel eevee ees hel A 19 e I S S o E E EEE E E cease cases snags tess 19 3 3 3 Programming Portese cocci eiea E disses E E eee E ees 21 3 3 4 Ethernet Port OP6800 models only sssssersssereesesrerrsrerrsrsrsrrererrsrerrnreernreeresesrsrrsreresrerrnrreet 22 SA Programming Cable iccsisccsssicscetctessnscasneessnvendcesvecuenecassceepeeptncsssesansveenrseceteesspsncedsnnsvecredcesbivedboenbnceuenees 23 3 4 1 Changing Between Program Mode and Run Mode ceceeececeseeeceeeeesseeeceeceeeeeaeceeeecnaeeeneeess 23 3 3 Other HardWare sirene reserare ree ir AE EE t Er EE EESE EEEE EENE KEE iare EENE Rk 24 3 3 1 Clock DoubleTree eree Eee aE Geshe EEE EEE EE EEE EAEAN NEEE EE RES EEEE 24 3 3 2 SPECUUM SPREAGE imei ces esa dase nceusnasuctustes eatecuasedeeubaxtueeceubenstas caste viodbivsaceveccsuanasbonndeseathoenbedecetes 25 3 6 IMGMOLY ec cssesdees cacti ccd SEE Sise ceases Pes ioedsexsdschecgasghl haces suectbes A sea el ae daca leech eka cot seusesses ER rises osee 26 36T SRAM eop eeen E AE etdea tees A EREE si ceapscteatsequessiasses TEE E 26 3 6 2 Flash Memory ersen n n a n E E EEE E ERE 26 3 1 Keypad Labeliht sisesestiensre treerne skenar e Enn
95. y includes Canada Japan U S Australia N Z U K and European style plugs Snap in the top of the plug assembly into the slot at the top of the AC adapter as shown in Figure 4 then press down on the spring loaded clip below the plug assembly to allow the plug assembly to click into place Connect the bare ends of the power supply to the RAW and GND positions on screw ter minal header J5 of the Demonstration Board as shown in Figure 4 eee SELES hat Me ay m A SSYGODOA ISOOSDSEQe0s fa Remove slot cover insert tab into slot ij Red jleat Shrink De mt i Snap plug into place p Figure 4 Power Supply Connections NOTE The OP6800 itself has reverse polarity protection but the Demonstration Board does not Be careful to connect the positive and negative leads as shown to avoid damag ing the Demonstration Board NOTE If you are using your own power supply Rabbit recommends using a 9 V to 25 V DC power supply The linear regulator on the Demonstration Board can handle up to 35 V but can get extremely hot 4 Apply power Plug in the AC adapter CAUTION Unplug the power supply while you make or otherwise work with the connections to the headers This will protect your OP6800 from inadvertent shorts or power spikes NOTE A hardware RESET is done by unplugging the AC adapter then plugging it back

Download Pdf Manuals

image

Related Search

Related Contents

Phihong PSA16U-480  Samsung GT-E2100B Manual de utilizare    ND-703QRB/W  RX4744 - エヌエフ回路設計ブロック  EX MV MX3 User Manual [May16].vp  Atlona AT13020    Diapositiva 1  

Copyright © All rights reserved.
Failed to retrieve file