Home
PDF Version
Contents
1. 00000000 J4 cb 55 Gu Y Y A 56 0 070 Tai 1 8 a 3 125 gt lu 79 4 Figure A 2 Board Footprint for Kevpad Displav Interface User s Manual 2 Jumper Configurations Figure A 3 shows the header and jumper locations used to set the current required by an LED backlight on a display Figure A 3 Location of RabbitNet Keypad Display Interface Resistor Configurations Table A 2 lists the configuration options Standard pluggable jumpers are used Table A 2 Header J7 Pins to Jumper to Configure LCD Series Resistance F ssen Header J7 Pins 1 2 3 4 5 6 7 8 9 10 MA 0 00 Q 357 1000 2000 in infinite 0 Factory default NOTE Make sure that the jumpers are set appropriately before connecting the liquid crystal display to the Keypad Display interface The backlight on your liquid crystal display may be destroyed when subjected to a current above the maximum specified Pay close attention when using the 0 resistance setting to source 5 V to the LCD 32 RabbitNet Keypad Display Interface RN1600 APPENDIX RABBITNET B 1 General RabbitNet Description RabbitNet is a high speed synchronous protocol developed by Z World to connect periph eral cards to a master and to allow them to communicate with e
2. 11 3 2 Mechanical Diagram nanna nanna 12 3 3 Back light Specification biki 13 3 4 Packing Method 14 4 Quality Units m 15 4 1 Specification of Quality 15 4 2 Standard Specification for Reliabilitw en 22 4 3 Precautions in Use of LOM La 24 Reference Data Sitronix ST7066U 0A amp ST7063 Specifications a WM C2002M 1GLYd 3 24 RabbitNet Keypad Display Interface RN1600 Wwnrek 1 Electronic Units 1 1 Absolute Maximum Ratings cme re To meme pw SUPPLY VOLTAGE FOR LOGIC ECCE T SUPPLY VOLTAGE FOR LCD 0 3 STATIC ELECTRICITY Be sure that you are grounded when handing LCM 1 2 Electrical CharacteristicsiTa 25 24 5 V 5 5V ses CI c Tua Tour FIFA NOTARE FOROG 1 28 2 47s 50 5 v TEC HE ECHO LCD era ene vo v ____ Va xe ove vo SUPPLY CURRENT FORLOGE wer 25 pwc ST7056U OA8ST7053 Measurement condition is for all pixels on display WN C2002M 1GLY d 4 24 User s Manual 1 3 Interface Pin Function JP1 NO SYMBOL I O FUNCTION 1 Vss P POWER S
3. 35 B 2 1 Control and l 35 B 3 Function 36 BS Byte recente aaa 42 User s Manual Appendix Keypad Display Interface Expansion Kit 43 Keypads 44 iat e A ep ED RENE 45 C2 LED Displays lla Ai 48 C2 J 2 20 Character LCD ee OR tin Reh pee 49 C 2 2 4 X 20 Character LCD siii ped tee PU e DI EE ian 49 CIZME NU O i d DU nei 50 Configuring Key Code Indexes and Physical Keypad Arrangement sess 54 C 4 1 Basics of Assigning Key Code 54 4 2 Expansion ete p ote e ed deett ier 56 24 21 3 AIRGY Pad n 56 4 2 2 2x 6 Keypad sree A ABSORBED 57 C 4 2 3 AX 10 Keypad n a iaia HD ee ble ri 58 5 22 lt 6 Keypad Datasheet etn dene ep A 59 C 6 3 X 4 Keypad Datasheet oe Eti p erii eae en entre n repente 60 7 4 2 10 Keypad Datasheet entere aaa 61 38 2 x20 Character ECD Datasheets 43 5 god pei ERREUR et Det boca 62 C 9 4 x 20 Character LCD Datasheet pepe eere dte tei ie e teens 86 Notice to U
4. 2 D dimensions Keypad Display interface 29 DIN rail mounting 3 components 3 Dynamic C L 2 downloading RabbitNet libraries 13 libraries iere 12 E Expansion Kit 2 datasheets 2 x 20 character LCD 62 2 x 6 keypad 59 3 x 4 keypad 60 4 x 10 keypad 61 4 x 20 character LCD 86 keypad connections 44 LCD connections 48 2 x 20 character LCD 49 4 x 20 character LCD 49 templates 2 x 6 keypad 45 3 x 4 keypad 46 4 x 10 keypad 47 F TC ates scri 2 J jumper configurations Keypad Display interface 32 LED backlight 32 jumper locations 32 LED backlight 32 peripheral cards connection to master 33 34 physical mounting Keypad Display interface 31 pinout RabbitNet Keypad Display interface headers 6 power supplies RabbitNet Keypad Display Interface Li 4 wiring diagram 5 R RabbitNet Ethernet cables to connect pe ripheral cards 33 34 general description 33 peripheral cards 34 physical implementation 35 RabbitNet Keypad Display interface connection to master 4 power supplies 4 5 sample programs
5. 14 RabbitNet Keypad Display interface ALPHANUM C 15 45 49 BUZZER C 15 KEYBASIC C 15 45 LCDBASIC C 15 49 PONG C 15 45 49 ZMENU C 15 50 RabbitNet operation 14 ECHOTERM C 14 HWATCHDOG C 14 SWATCHDOG C 14 software 2 12 downloading RabbitNet libraries 13 libraries 12 RN BL25 LIB 12 RN BL26 LIB 12 OP72 LIB 12 RNET LIB 12 36 RNET DRIVER LIB 12 RNET KEYIF LIB 12 LCDIF LIB 12 RabbitNet Keypad Display interface buzzer rn keyBuzzer 17 rn keyBuzzerAct 17 display rn dispBacklight 23 rn dispClear 24 rn dispCmd 27 rn dispCursor 25 rn dispData 26 rn dispGoto 24 rn dispInit 22 rn dispOnoff 23 rn dispPrintf 25 rn dispPutc 26 keypad rn keyConfig 19 rn keyGet 21 rn keylInit 19 rn keyProcess 21 rn keyUnget 21 LEDs keyLedOut 18 User s Manual 95 RNET LIB rn comm status 41 rn device 36 rn echo iii 37
6. WM C2002M 1GLYd 19 24 80 RabbitNet Keypad Display Interface RN1600 M ws 07 Cracked glass The LCD with extensive crack is acceptable 0 65 2 5 0 65 2 5 0 65 2 5 Backlight elements gt Soldering 8 1 Illumination source flickers when lit 8 2 Spots or scratches that appear when lit must be judged using LCD spot lines and contamination standards 8 3 Backlight doesn t light or color is wrong 9 1 Bezel may not have rust be deformed or have fingerprints stains or other contamination 9 2 Bezel must comply with job specifications 10 1 COB seal may not have pinholes larger than 0 2mm or contamination 10 2 COB seal surface may not have pinholes through to the IC 10 3 The height of the COB should not exceed the height indicated in the assembly diagram 10 4 There may not be more than 2mm of sealant outside the seal area on the PCB And there should be no more than three places 10 5 No oxidation or contamination PCB terminals 10 6 Parts on PCB must be the same as on the production characteristic chart There should be no wrong parts missing parts or excess parts 10 7 The jumper on the PCB should conform to the product characteristic chart 10 8 If solder gets on bezel tab pads LED pad zebra pad or screw hole pad make sure it is smoothed down 11 1 No unmelted solder paste may be present on the PCB 11 2 No cold solder joints missing solder connections oxid
7. End of icitislirstun Basy flag be checked aber following insirucione compieimi busy dag is nct checked fe waiting time between insiructione should longer fan the Execulion time of these instructions User s Manual 89 Higher 4 bit D4 to D7 of Character Code n adecimal DO RAM ji sila Tu v dida 21 norek et ee ree oom SEU e e E amp 6FUfu shz3p SMI LEGHAMNX 1981 D9IViu ue zantj SERE a FEO P SEALY PEPPE TSM Ime n ew O Io RabbitNet Keypad Display Interface RN1600 Electrical Characteristics Symbol Condition Min Typ Max Input Voltage high Vih H Level 22V Vdd Input Voltage low Vil L Level OV 0 6 V 0 C 4 8 V 54 Recommended LCD Driving Voltage Vdd Vo 25 C 42 V 4 6 V Standard Temp 50 C 3 9V 4 3 V 209 64 7 2N Recommended LCD 0 4 8 V Driving Voltage Vdd Vo Wide Temp 50 C 43V 70 C 3 7 V 4 2 V Power Supply Vdd 5 0 V Current Idd V 270 kHz 0 5 mA 1 0 mA P VE R 680 4 6V 5 0V Voltage eee If R 6 8 Q 240 mA 480 mA Current User s Manual 91 92 RabbitNet Keypad Display Interface RN1600 NOTICE USERS Z WORLD PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL CO
8. amp 1 Modified Spec Style 20 Aug 1996 Sample Change as follow by Wintek SPEC amp HS 1 Modified Spec Style 30 Nov 1996 sample ar Change as follow by Wintek SPEC amp d4 12 1 Modified IC 13 Jul 2000 Sam I 15 KS0066UP 00CC gt ST7066 0A Contents Wi 14 Change as follow by Wintek SPEC amp d5 12 1 Modified 15 Jan 2001 5 I ie ST7066 0A KS0066UP 00CC ampie Contents 1 1 Change as follow Wintek SPEC amp 46 12 1 Modified 28 2001 Sai le 1 KS0066UP 00CC ST7066U 0A p Change as follow by Wintek SPEC amp gn 4 Modify Spec Style 16 0ct 2001 Sample WM C2002M 1GLYd 2 24 User s Manual 63 Contents Page 1 Electronic Units ae 4 1 1 Absolute Maximum Ratings ise i B B 4 1 3 ant 5 1 4 Power Supply for LCD Module 6 1 5 Block Diagram with Display RAM Address and Initialization Table 7 1 6 CGROM Map 8 2 Electro optical Un 9 2 1 Electro optical Characteristics 9 2 2 Optical Mer Si bi i a nenne nenna nnan 9 3 Mechanical RU cmm 11 3 1 Mechanical Specification 440 1 0
9. estab lish the handle nrows is the number of lines or rows in the display max 4 rows ncols is the number of columns in the display max 20 columns RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn dispCmd rn dispClear 22 RabbitNet Keypad Display Interface RN1600 Turns the display backlight on or off This is not supported on some LCDs or vacuum fluorescent dis plays PARAMETERS handle is an address index to device information Use device orrn find estab lish the handle onOff turns the backlight on or off 1 turn the backlight on 0 turn the backlight off reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn dispOnoff Sets the display screen on or off Data are preserved when the screen is off PARAMETERS handle is an address index to device information Use rn device orrn find to estab lish the handle onOff turns the display screen on or off turn the display screen on 0 turn the display screen off reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not
10. device orrn find estab lish the handle style is one of the following cursor macros RNDISP_CUROFF cursor off RNDISP CURON cursor on RNDISP_CURBLINKOFF cursor blink off RNDISP CURBLINKON cursor blink on reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master 2 means that the cursor style is not valid SEE ALSO rn dispClear rn dispGoto rn dispCmd Prints a formatted string to the display and will line wrap The format is similar to that in the printf call This function will block approximately 1 ms per character byte Therefore the size of the formatted string should be kept to a minimum PARAMETERS handle is an address index to device information Use device orrn find to estab lish the handle reserved is reserved for future use Set to 0 pcFormat is the formatted output string whose character buffer size should not exceed 128 bytes Any other parameters are arguments RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn dispPutc rn dispData User s Manual 25 a character the display and will automatically increment to next cursor position and line wrap PARAMETERS handle is an address index t
11. 1 4 Definition of area A Area Viewing area B Area Out of viewing area Outside viewing area 5 2 Basic principle 5 2 1 It will accord to the AQL when the standard can not be described 5 2 2 The sample of the lowest acceptable quality level must be discussed by both supplier and customer when any dispute happened 5 2 3 Must add new item on time when it is necessary 5 3 Standard of inspection Unit mm ss WM C2002M 1GLYd 16 24 User s Manual 77 6 Inspection specification Criterion AQL 1 1 Missing vertical horizontal segment segment contrast defect 1 2 Missing character dot or icon 1 3 Displav malfunction Electrical 1 4 No function or no display Testing 1 5 Current consumption exceeds product specifications 1 6 LCD viewing angle defect 1 7 Mixed product types 1 8 Contrast defect Black or white 2 1 White and black spots on display 0 25mm no more than 02 spots on LCD three white or black spots present display only a odd spaced more than two spots or lines within 3 1 Round type As following drawing 2 SIZE Acceptable QTY 20 10 Acceptno dense 0 10 lt 0 20 LCD black spots white spots contamination non display Length Width Acceptable Q TY Y 0 02 Accept no dense eX UR 230 00200 03 em gt Ht L 25 0 03 lt w 0 05 a 0 05 sW round type WM C2002M 1GLYd 17 24 78 RabbitNet Keypad Disp
12. RabbitNet Keypad Display interface the interface does not need DCIN power NOTE Even if you are not drawing power from a BL2500 or BL2600 master you will need to at least connect the RabbitNet Keypad Display interface ground to the ground on your master The GND pin on header J1 should be used At the present time the number of peripheral cards you can use with one master is limited by the number of RabbitNet ports on the master Only one Keypad Display interface per master is supported at the present time 4 RabbitNet Keypad Display Interface RN1600 1 2 1 Power Supply Connections Figure 4 illustrates the assembled friction lock connector wiring diagram for the power sup plies used to supply power to the RabbitNet Keypad Display interface DCIN pin 1 on header J1 is not used by the Keypad Display interface and does not have to be connected 5 5 V GND Figure 4 Power Supply Connections Use 18 gauge AWG wire 1 mm for power supply connections up to 10 m away from the master If the wire LN L length is less than 3 m 22 Chain CIJ gauge AWG wire 0 4 mm is acceptable Do not daisy chain the power sup X ply connections between dif Star ME ferent peripheral cards but use a star configuration from the master when there are several peripheral cards Figure 5 Daisy Chain vs Star Configurations It is best to use a type of cable where the wires for
13. case of bit MPU TIMING CHART Enable Pulse Width High Level Enable Rise and Decay Time WRITE DATA FROM MPU TO MODULE READ DATA FROM MODULE TO MPU User s Manual 87 Execution Time E han 1 vr i per eos ops porno _ mmc Clear Clears entire display and sets DO RAM address Din address 1 64 ms Display Sets DO address in address counter Also retuma Home display being shifted 12 original 1 584 peailion DD contenta remain unchanged Sets cursor move direction and Entry Mode a species shift of daplay These atua 521 i operations performed during data wrile and read Sets OMIOFF of entire display ele Dj Cursor ON OFF C and 40 blink of cursor position Bo Moves cursor amp shits display rairai A gc RAL without changing DD RAM 40 contenta sets interface dala length DL Function Set DI Fja number of display lines L and 40 05 character fonts F Mi Sets address A data is seri and received after 0 UB this setting Sets DD RAM address OG RAM data is seni and received after 40 us this setting Reads Busy flag BF indicating internal cperaion is being dos performed and reads address counter contents Wirila Data to CG er 00 Write Data Wines data into DD or 40 us RAM RAM Read Data l from CG or Read Data ea data into DD ram or 40 us DD R
14. connected to the master SEE ALSO rn dispBacklight rn dispClear User s Manual 23 Clears the display and homes cursor to the upper left corner of the display This function will wait approximately 3 ms for the display to settle PARAMETERS handle is an address index to device information Use device or rn_find to estab lish the handle reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn_dispOnoff rn dispGoto rn dispCursor Positions the cursor PARAMETERS handle is an address index to device information Use zn device orrn find to estab lish the handle wX is the column position the typical range is 0 to 19 and depends on the actual display type you are using wY is the row position the typical range is 0 to 3 and depends on the actual display type you are using reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master 2 means that the row or column position is not valid SEE ALSO rn dispClear rn dispCursor 24 RabbitNet Keypad Display Interface RN1600 Sets cursor type to be on off or blinking PARAMETERS handle is an address index to device information Use
15. erasing the STDIO window and for turning the backlight on or off if the character display is equipped with a backlight Depending on the actual display you may have to scroll down to see all the options The data entry menu demonstrates the data entry capability for longs floats strings passwords and a time date stamp The TCP IP menu demonstrates how to change IP addresses via the keypad User s Manual 15 As selections made the current menu number and the selection made are displayed in the STDIO window When a data entry or a TCP IP menu selection is made the appropriate values entered are also be displayed in the STDIO window The ZMENU C sample program is built around the Zmenu_Config function which is described in Appendix C 3 16 RabbitNet Keypad Display Interface RN1600 2 3 RabbitNet Keypad Display interface Function Calls The RabbitNet Keypad Display interface uses keypad function calls that are similar to those used by other Z World devices such as the OP6800 the 7200 and the LCD keypad module 2 3 1 Buzzer The buzzer on the RabbitNet Keypad Display interface can be programmed in software to sound for specified time intervals or to provide an audible click when a keypress occurs These function calls are provided in RNET_KEYIF LIB library Turns the buzzer on or off This function will override any setting by rn_keyBuzzerAct Calling rn_keyBuzzer does not affect the keypress buzz
16. external shock Don t apply excessive force on the surface Liquid in LCD is hazardous substance Must not lick and swallow when the liquid is attach to your hand skin cloth etc Wash it out thoroughly and immediately Don t operate it above the absolute maximum rating Don t disassemble the LCM 4 3 2 Storage Store in an ambient temperature of 5 to 45C andina relative humidity of 40 to 60 Don t expose to sunlight or fluorescent light Storage a clean environment free from dust active gas and solvent Store in anti static electricity container Store without any physical load 4 3 3 Soldering Use the high quality solder 60 63 tin mixed with lead Iron no higher than 260 and less than 3 4 sec during soldering Soldering only to the I O terminals Rewiring no more than 3 times _ WM C2002M 1GLYd 24 24 User s Manual 85 C 9 4 20 Character LCD Datasheet 86 RabbitNet Keypad Display Interface RN1600 EVERBOUQUET WAYTON GENERAL SPECIFICATIONS FOR CHARACTER OD NODULE B PIN ASSIGNMENT mepe a a cv HH D Moder MPU L3 d euo se s Register Select Signal Ht Daia Input Data Bus Line Select L Instruction input DET kisis between Bus line and d bii or Bl bit MPU is available _ transfer made in twice in case of 44 and once in
17. of the 2 x 6 keypad to pin 1 of the Keypad Display interface header J6 as shown in Figure C 1 The 2 x 6 keypad character assignment is as follows LUJLSILLJEBM 1 D P ICE where U scrolls up one menu option D scrolls down one menu option S pages up to the next set of menu items P pages down to the next set of menu items L cursor left used in the data entry section to move the cursor to the next character for selection R cursor right used in the data entry section to move the cursor to the next character for selection delete item used in the data entry section to delete the last character selected add item used in the data entry section to select the character highlighted E selects the highlighted item A keypad template is provided below for your convenience US LR DP E INSERT THIS SIDE 50 RabbitNet Keypad Display Interface RN1600 2 Connect the 4 x 20 display to header J5 Keypad Display interface as shown in Figure C 2 3 Compile and run ZMENU 4 The LCD will display Menu Title followed by user selectable options Use the scrolling and paging keys to view all the items in the menu Choose an item to select then press the E nter key to select the item This sample program can also be used with a 3 x 4 keypad included in the Expansion Kit and with a 4 x 6 keypad included in the Expansion Kit Uncomment the appropriate ZMENU_KEYSTROBELI
18. should be allowed to stand at for 240 Sa operation 0 48 hours under driving condition The sample should be allowed to stand at 70 for 240 0 48 hours under no load condition and then returning it to normal temperature condition and allowing it stand for 30 minutes High temperature resistance The sample should be allowed to stand at 20 C for 240 0 48 hours under no load condition then returning it to normal temperature condition and allowing it stand for 24 hours Low temperature resistance The sample should be allowed to stand at 40 90 96 Moisture resistance RH MAX for 240 0 48 hours under no load condition excluding the polarizer then taking it out and drying it at normal temperature The sample should be allowed to stand the following 10 cycles of operation 40 for 30 minutes normal temperature for 5 minutes gt 80 C for 30 minutes normal temperature for 5 minutes as one cycle Thermal shock resistance Human Model 2000 volt electrical discharge from a 100 pF capacitor to the tested device in series with a 1500 ohm resistor Apply Vop amp Vss to LCD module unit Test for functionality no missing lines after the discharge but LCD module may reset Machine Model 200 volt electrical discharge from a 200 pF capacitor to the tested device with no series resistance Apply to Vbo Vss to LCD module unit without including hand phone Test for functiona
19. that the width of the plastic tray should be 100 mm 3 95 since that is the width of the Digital I O Card 108 mm plastic trays may be used with spacers User s Manual 3 1 2 Connecting Peripheral Cards Use a straight through Ethernet cable to connect the RabbitNet Keypad Display interface RJ 45 RabbitNet jack to a RabbitNet port on the master You may use either port if you are connecting to a BL2500 or other master that has two RabbitNet ports NOTE The RJ 45 RabbitNet jacks are serial I O ports for use with a master and a net work of peripheral cards The RabbitNet jacks do not support connections to an Ethernet network The 7200 master has only one RabbitNet port and does not have a friction lock power terminal WC Master RabbitNet IE 22 Power supply cable Keypad Display Interface Straight through Ethernet cable 2 NES wie wi VU Figure 3 Connect RabbitNet Keypad Display Interface to Master You will also have to provide 5 V DC power to your RabbitNet Keypad Display inter face The power supply is connected via the friction lock terminal at header J1 If you are using a BL2500 or BL2600 as your master you may draw this power from the BL2500 or BL2600 as shown in Figure 3 You may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 2 Although there 15 a stan dard RabbitNet DCIN power supply input on the
20. the ground and positive s of any power supply are bound together or twisted and ideally the power supply wires should not be bundled with other wires If you are not drawing power from the master Z World strongly recommends that you have a physical ground connection between the Keypad Display interface and the master User s Manual 5 1 3 Key RabbitNet Keypad Display Interface Components The locations of key RabbitNet Keypad Display interface components are shown in Figure 6 Auxiliary LCDM Clocked Serial Interface Interface Q lt 5 uoc 8 E 85 2 8 58858558885885822226 66 6 6 6 S Ga a 55668256 oooooom Main LCDM 0000000 Interface kwa 8882545 Contrast DB1 R DISP_ENAB _J Adjustment ST Micro R12 RabbitNet controller Program Port Buzzer 5v Power n c Supply DCIN J6 12345 6 7 8 9 10 1112 13 14 15 16 BACK PWR LIGHT ACT CAVE BAD GOOD Keypad Interface Figure 6 RabbitNet Display Pinouts 1 3 1 Headers and Jacks RabbitNet Keypad Display interfaces are equipped with one 1 x 4 friction lock terminal at J1 DCIN and 5 V power supplies and an RJ 45 RabbitNet jack No header is installed at J3 which is used to program the onboard microcontroller at the factory No header is installed at J8 which is reserved for future use 1 3 1 1 Keypads 1 16 I
21. the buzzer remains activated whenever a key is pressed 0 buzzer does not sound when a key is pressed 1 255 ms enable the buzzer for the specified period for each keypress detected a value of 10 pro duces a short click RETURN VALUE means that device information indicates the Keypad Display interface is not connected to the master Assigns each key with key press and release codes and hold and repeat ticks for auto repeat and debouncing To ensure keypad driver compatibility the keypad must be installed so that a strobe line or data line starts on J6 pin 1 PARAMETERS handle is an address index to device information Use rn_device orrn find to estab lish the handle cRaw is araw key code index 0 63 for 1 64 keys Because keypad configurations will differ assign the raw code indexes according to your keypad configuration For example 2 x 6 keypad matrix with raw key code index assignments in brackets 13 12 11 10 9 8 L 5110 41E 3 E 210 110 0 User s Manual 19 4 10 keypad matrix with raw key code index assignments in brackets 32 33 24 25 16 17 811 91101111 34 35 26 27 18 19 10 36 39 28 31 20 23 12 38 37 30 29 22 21 I4 cPress is a keypress code An 8 bit value or character is returned when a key is pressed 0 Unused For example 1 2 3 4 S 6 7 8 9 O E or 1 1 2 E 310411 510 610 7 810 910 0 A B C D E F G
22. to 0 8 16 24 Pin 1 is networked to 1 9 17 25 Pin 2 is networked to 2 10 18 26 Pin 3 is networked to 3 11 19 27 Pin 4 is networked to 4 12 20 28 Pin 5 is networked to 5 13 21 29 Strobe pins 9 through 6 strobe the key code indexes black blocks Pin 9 strobes key indexes 29 through 24 Pin 8 strobes key indexes 21 through 16 Pin 7 strobes key indexes 13 through 8 Pin 6 strobes key indexes 5 through 0 The remaining pins and indexes are unused User s Manual 55 C 4 2 Expansion Kit Keypads C 4 2 1 3 x 4 Keypad The physical arrangement of the keys has the 3 x 4 arrangement of key code indexing as shown in the shaded area below Physical Connections Pins 15 through 8 are not shown and are unused Pins 6 5 4 are strobe pins and pins 3 through 0 are data pins Key Code Indexes Data pins 3 through 0 determine the key code indexes 19 18 17 16 11 10 9 8 3 2 1 0 Pin 6 strobes key code indexes 19 18 17 16 Pin 5 strobes key code indexes 11 10 9 8 Pin 4 strobes key code indexes 3 2 1 0 The remaining pins and indexes are unused 56 RabbitNet Keypad Display Interface RN1600 4 2 2 2 x 6 Keypad The physical arrangement of the keys has the 2 x 6 arrangement of key coding indexing as shown in the shaded area below Physical Connections Pins 15 through
23. to a Keypad Display interface two types of liquid crystal displays and three keypad styles are included in the Expansion Kit along with various cables and connectors Appendix C provides complete information about the Keypad Display Interface Expansion Kit and its contents Visit our Web site at www zworld com or contact your Z World sales representative or authorized distributor for further information RabbitNet Keypad Display Interface RN1600 1 1 3 DIN Rail Mounting The Keypad Display interface may be mounted in 100 mm DIN rail trays as shown in Figure 2 Keypad Display Interface Modular PC Board Trays DIN Rail Figure 2 Mounting Keypad Display Interface Card in DIN Rail Trays DIN rail trays are typically mounted on DIN rails with feet Table 1 lists Phoenix Contact part numbers for the DIN rail trays rails and feet The tray side elements are used to keep the Digital I O Card in place once it is inserted in a DIN rail tray and the feet are used to mount the plastic tray on a DIN rail Table 1 Phoenix Contact DIN Rail Mounting Components DIN Rail Mounting Phoenix Contact Phoenix Contact Component Part Description Part Number Trays UM 100 PROFIL cm 1959874 Tray Side Elements UM 108 SE 29 59 47 6 Foot Elements UM 108 FE 29 59 46 3 Length of DIN rail tray cm NOTE Other major suppliers besides Phoenix Contact also offer DIN rail mounting hardware Note
24. to device information Use zn device orrn find establish the handle wdttype 0 enables both hardware and software watchdog timers 1 enables hardware watchdog timer 2 enables software watchdog timer RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master SEE ALSO rn_hitwd rn_sw_wdt Hits software watchdog Set the timeout period and enable the software watchdog prior to using this function This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn find establish the handle count is a pointer to return the present count of the software watchdog timer The equivalent time left in seconds can be determined from count x 0 025 seconds RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master SEE ALSO rn_enable_wdt rn_sw_wdt 40 RabbitNet Keypad Display Interface RN1600 Reads the status of which reset occurred and whether watchdogs are enabled PARAMETERS handle is an address index to device information Use zn device or rn_find to establish the handle retdataisa pointer to the return address of the communication byte A set bit indicates which error occurred This register i
25. to the Keypad Display interface by first soldering a 1 x 16 Hi Rel pin strip onto the bottom side of the display printed circuit board the side that does not have the actual display The pins on one side of the pin strip have a slightly larger diameter than the pins on the other side Solder the larger pins into the display Next press the display with the pin strip installed into J5 on the Keypad Display interface Make sure that pin 1 is connected to pin 1 on both sides The pin strip pro vides a tight fit Working from the display side of the display press directly above the pins while working back and forth across the connector until it is fully seated into J5 on the Keypad Display interface The connection was designed to be tighter than normal so the display can stand off the side of the Keypad Display interface without bending The ALPHANUM C sample program illustrates the use of the 4 x 20 character display User s Manual 49 ZMENU C ZMENU C demonstrates a menu system that allows you to list a set of action options for operator to choose from Keypads and character displays included in the Expansion Kit are used with this program the parameters required for the menu system can be set dynamically while the sample program is running and can be changed via the Zmenu Config function included with the sample program The instructions below explain how to set up the hardware and then run ZMENU C 1 Connect pin 1
26. 2 pin Jumper 2 Pinrex MJ1B BGB Straight Through Ethernet Cable 1 Z World 540 0076 User s Manual 43 Peel off the backing to expose the adhesive on the rubber feet included with the Expansion Kit and attach the rubber feet to the bottom side of your Keypad Display interface The rubber feet will help protect the bottom side of your Keypad Display interface from abra sion while you run the sample programs and do your application development C 1 Keypads Three keypads are supplied with the Expansion Kit Each keypad already has its corre sponding flex connector installed Connect pin 1 of the keypad to pin 1 of the Keypad Display interface header J6 as shown in Figure C 1 Follow the pin 1 locations as shown in the diagram and disregard the blue dot that may be present on one side of the connector 0000000000058 REIT VAIN WOT 5827 5 Ro m 5 EREE FM ho 99999099 00090 m0000000 5 00000 190000 TEN MESS HOOT Figure C 1 Connecting Keypads to Keypad Display Interface Header J6 NOTE To insure compatibility with the software driver routines pin 1 on header J6 must always be connected to a keypad strobe or data line do not leave pin 1 unconnected 44 RabbitNet Keypad Display Interface RN1600 Two of the keypads supplied with the kit use 10 connectors and the third keypad uses a 1
27. 3 pin connector Since the Keypad Display interface can support a keypad with up to 16 lines some of the connection points on header J6 will remain unused when using the keypads from the Expansion Kit Flex connectors of this style can be obtained in various widths that will accommodate most keypads with 0 1 trace spacing The connectors are made by FCI Berg and are referred to as series 65801 Clincher They can be purchased online from Mouser Electronics When running one of the sample programs be sure to attach the keypad associated with that sample program Table C 2 Keypads Used In Sample Programs Keypad Sample Program 3x4 PONG C 2x6 ALPHANUM C 4x 10 KEYBASIC C C 1 1 Keypad Templates You may wish to print out then cut and insert the keypad templates into your keypads to facilitate your interactions with the keypad while running the sample programs 2 x 6 Keypad lt gt v DE INSERT THIS SIDE gt User s Manual 45 3 x 4 Keypad 12 3 4 5 6 7 8 9 0 INSERT THIS SIDE gt 46 RabbitNet Keypad Display Interface RN1600 256 sa Ec DS lt gt 2 1154 0410 lalla v osisizjolisimielizji 2 LCD Displays Two LCD displays are supplied with the Expansion Kit The displays do not have any con nectors attached so that you may s
28. 8 are not shown and are unused Pins 7 6 are strobe pins and pins 5 through 0 are data pins Key Code Indexes Data pins 5 through 0 determines the key code indexes 13 12 11 10 9 8 5 4 3 2 1 0 Pin 7 strobes key code indexes 13 12 11 10 9 8 Pin 6 strobes key code indexes 5 4 3 2 1 0 The remaining pins and indexes are unused User s Manual 57 C 4 2 3 4 10 Keypad The physical arrangement of the keys has different arrangement of key code indexing Because of the manufacturer s design the physical arrangement of key indexes will have the following arrangement 32 33 24 25 16 17 8 9 0 1 34 35 26 27 18 19 10 11 2 3 36 39 28 31 20 23 12 15 4 7 38 37 30 29 22 21 14 13 6 5 The 4 x 10 key code indexing is still derived in the same way as the other two keypads Although the diagram below appears to be a 5 x 8 keypad arrangement note that the strobe pins still strobe the same key code indexes as in the 4 x 10 arrangement above 12 11 10 Physical Connections Pins 15 through 13 are not shown and are unused Pins 12 11 10 9 8 are strobe pins and pins 7 through 0 are data pins Key Code Indexes Data pins 7 through 0 determines the key code indexes 39 through 0 Pin 12 strobes key code indexes 39 through 32 Pin 11 strobes ke
29. AM UD incrementi DO RAM Display data RAM Execution time UD O Decrement RAM Character generator changes when 8 t Accompanies display sho RAM frequency changes SIC 1 Displav shift RAM Address Example SIC O Cursor move ADD DO RAM Address When cp or fasc is FIL i 5hill to fe right Corresponds to cursor 270 KHz RIL O Shil to lett address l i DL 1 8 bits DL 04 bits DIE te Ele N 1 2 Lineas 0 1 ling TOU address F 15x 10 dots F 0 Sx 7 dots Tintemally operating EB 88 RabbitNet Keypad Display Interface RN1600 If the power supply conditions for correctly operating the internal reset circuit are not met initialization by instruciion 15 required or use the following procedure for initialization B instructions 1 8 Bit Interface 2 4 bit Interface Wat iims or more G ar rapchus 4 54 bala phis ibra 85 DET OBE DES 084 081 Dez DB CED RS Rm DET DBE 085 Dei 0 1 k i 1 I Wat Lima kalbne lei ria ES gw DB DBS DES Da Dei Deo i Wall 10025 cr mor M3 gw DET DES DSi DEI DEI DB 091 R5 DET DES OH B 0 I 0 2 RS mw DB 66 DES Dii ii i i Wat 100 ps nr mon Busy cannoi ba checked ILI End of lsitialization
30. D to control Use 0 for Microprocessor Bad LED onOff is the LED on off control 0 LED Off 1 LED On reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Display interface is not connected to the master SEE ALSO rn_keyBuzzer 18 RabbitNet Keypad Display Interface RN1600 2 3 3 The functions used to control the keypad are contained in the RNET_KEYIF LIB library located in the Dynamic C RABBITNET library directory This library supports keypads with up to 64 keys Initializes keypad and buzzer control for when a key is pressed Call this function prior to any keypad operations Calling this function more than once will reinitialize key processing queues To ensure keypad driver compatibility the keypad must be installed so that a strobe line or data line starts on J6 pin 1 PARAMETERS handle is an address index to device information Use device orrn find to estab lish the handle iobits isa 16 bit number that consists of 1 s for outputs and 0 for inputs Each bit represents one of the 16 lines available for a keypad interface For example a value of 0x1F00 0001111100000000 assigns strobe lines to 13 12 11 10 and 9 on header J6 of the Keypad Display interface to serve as the output strobe lines The other bit lines are either inputs or are unused buzzerperiod indicates how long
31. DC header at J6 with a 0 1 pitch provides the keypad interface and can accom modate keypads with up to 16 leads A maximum of 64 keys can be handled in an 8 x 8 matrix To insure compatibility with the software driver routines pin 1 on header J6 must always be connected to a keypad strobe or data line do not leave pin 1 unconnected Manufacturers typically supply keypads with flex connector tails and can usually be ordered with or without a connector on the flex connector tail The traces on the connector tails are most often spaced 0 1 center to center and this 15 the only spacing supported by the RabbitNet Keypad Display interface since the pins on header J6 are spaced 0 1 apart Suitable keypads will not necessarily use all the pins that are available on header J6 but will work as long as they meet the other criteria described in this section 6 RabbitNet Keypad Display Interface RN1600 FCI Berg is one manufacturer of connectors that may be used to connect the flex connector tails from the keypad to header J6 on the Keypad Display interface Their connectors called series 65801 Clincher are available in various widths and may be purchased online from Mouser Electronics It is expensive to develop a custom keypad particularly if the anticipated volume will be low A good source for generic keypads is Xymox Technologies Inc 9099 W Dean Rd Milwaukee WI 53224 Their available keypads be viewed online by visiting t
32. H I J KJ L M JINI O P Q R S T U V WI X Y Z lt gt cRelease isa key release code An 8 bit value or character not necessarily the one in CPress is returned when a key is released 0 Unused cCntHoldisa hold tick How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick How many times to repeat 0 None cCntLo is a low speed hold tick How long to hold before going to high speed repeat 0 Slow Only cSpdHi is a high speed repeat tick How many times to repeat after low speed repeat 0 None RETURN VALUE None SEE ALSO rn_keyProcess 20 RabbitNet Keypad Display Interface RN1600 Scans and processes keypad data for key assignment debouncing press and release and repeat This function is able to process a maximum of 64 keys organized as an 8 x 8 matrix Key processing will abort if a busy 1 status byte is detected To ensure keypad driver compatibility the keypad must be installed so that a strobe line or data line starts on J6 pin 1 PARAMETERS handle is an address index to device information Use rn device or rn_find to estab lish the handle reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn_keyConfig rn_keyGet Get the next keypress PARAMETERS h
33. LL 20 4 0 0 3 ZMENU ITEM Toggle Backlight ZMENU_FUNCTION zbacklight ZMENU ITEM Increment LEDs ZMENU SET INT amp ledState 1 ZMENU ITEM Turn Off LEDs ZMENU SET INT amp ledState 0 ZMENU ITEM GOTO DATA MENU ZMENU_SUBMENU 1 ZMENU ITEM LOG MENU ZMENU SUBMENU 2 ZMENU END User s Manual 53 C 4 Configuring Key Code Indexes and Physical Keypad Arrangement The keypads supplied in the Expansion Kit and the sample programs use a keypad driver scheme that has an 8 x 8 matrix array with a maximum of 8 strobe pins This allows a maxi mum of 64 keys in a keypad There is no standard keypad layout and you should check the manufacturer s specifications for the physical key arrangement and for the strobe and data lines Regardless of the keypad you chose a data or strobe pin must be connected to J6 pin 1 of the Keypad Display interface connector for the keypad drivers to work properly The examples in this section explain how to assign key code indexes for the keypads supplied in the Expansion Kit C 4 1 Basics of Assigning Key Code Indexes The sample programs have already set up the key code index assignments and character keypresses for the keypads supplied in the Expansion Kit The cRaw key code index in the rn kevConfig function does this for you The key code index parameter which is explained further in this section First let s look at some basics The keypad interface connector contains 16
34. MPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT REGARDING SUCH INTENDED USE IS ENTERED INTO BETWEEN THE CUSTOMER AND Z WORLD PRIOR TO USE Life support devices or systems are devices or systems intended for surgical implantation into the body or to sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling and user s manual can be reasonably expected to result in significant injury No complex software or hardware system is perfect Bugs are always present in a system of any size In order to prevent danger to life or property it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk involved Z World products are 100 percent functionally tested Additional testing may include visual quality con trol inspections or mechanical defects analyzer inspections Specifications are based on characterization of tested sample units rather than testing over temperature and voltage of each unit Z World products may qualify components to operate within a range of parameters that is different from the manufacturer s recom mended range This strategy is believed to be more economical and effective Additional testing or burn in of an individual unit is available by special arrangement User s Manual 93 94 RabbitNet Display RN1500 C connectivity tools crimp tool
35. NES macro in the configuration section in the sample program Once ZMENU has compiled the menu display information can also be viewed via HyperTerminal Patatine Tera Term or another serial port emulator by moving the programming cable connector on the master med hx single board computer from PROG to DIAG and then cycling the power The HyperTerminal setup is E shown here ime The ZMENU COLUMNS and ZMENU ROWS macros are used to define the size of the display and be no MT gt changed in the configuration section in the sample program m User s Manual 51 The function Zmenu KevConfig is available in the sample program to allow you to lay out your own keypad character assignment Sets up a menu for use with keypads and character displays The function uses identifiers to determine the course of action Each call to Zmenu Config must incorporate one of the two identifiers ZMENU_ TITLE or ZMENU_OPTION and must end with the identifier ZMENU_END PARAMETERS MenuNumber is the menu number to configure The remaining parameters are identifiers and parameters used for the menu IDENTIFIER MACROS ZMENU TITLE identifies the next set of settings to be associated with the menu parameters A 1 param eter following the identifier is the title of the menu a 2 parameter specifies the characteristics of the menu The following characteristics are allowed
36. RabbitNet connection From the mas ter s point of view the transmit function carries information and commands to the periph eral card The receive function is used to read back information sent to the master by the peripheral card A clock is used to synchronize data going between the two devices at high speed The master is the source of this clock A slave select SS function originates at the master and when detected by a peripheral card causes it to become selected and respond to commands received from the master The signals themselves are differential RS 422 which are series terminated at the source With this type of termination the maximum frequency is limited by the round trip delay time of the cable Although a peripheral card could theoretically be up to 45 m 150 ft from the master for a data rate of 1 MHz Z World recommends a practical limit of 10 m 33 ft Connections between peripheral cards and masters are done using standard 8 conductor Ethernet cables Masters and peripheral cards are equipped with RJ 45 8 pin female con nectors The cables may be swapped end for end without affecting functionality B 2 1 Control and Routing Control starts at the master when the master asserts the slave select signal SS Then it simultaneously sends a serial command and clock The first byte of a command contains the address of the peripheral card if more than one peripheral card is connected A peripheral card assumes it is select
37. SO rn_dispData User s Manual 27 2 3 5 Status Byte Appendix B 3 1 provides information on the status bytes returned by various function calls 28 RabbitNet Keypad Display Interface RN1600 APPENDIX RABBITNET DISPLAY SPECIFICATIONS A 1 Electrical and Mechanical Specifications Figure A 1 shows the mechanical dimensions for the RabbitNet Keypad Display interface T9 20 0 16 lt gt 4 46666 OO G00000 666 CLOCKED SERIAL INTERFACE N 4 i Ca EE ay D ooooo oooooooo 5 10 1 1 04 R15 min Sz sal P ICO E Qo amp cio Ez ot 8C O RPA Egle E n E uB MMC off c s ie M Y RP5 RPS QZ E SE DI H5 qs WW 8 O o O 9 win ni nini i i chy i k 000000000 ie Ee Dt 0 250 3 44 Sg 6 4 88 3 94 gt 100 LS 0 77 T 20 3 94 gt 100 Figure 1 RabbitNet Keypad Display Interface Dimensions NOTE All diagram and graphic measurements in inches followed by millimeters enclosed in parentheses User s Manual 29 Table A 1 lists the electrical mechan
38. UPPLY FOR LOGIC OV 2 POWER SUPPLY FOR LOGIC 5 5 3 Vo P CONTRAST ADJUSTMENT 4 RS REGISTER SELECT SIGNAL 5 R W READ WRITE SELECTION 6 E I ENABLE SIGNAL 7 I O 8 DB1 I O 9 DB2 I O 10 DB3 I O I e DATA BUS 12 DB5 I O 13 DB6 14 DB7 I O 15 N C NO CONNECTION 16 N C NO CONNECTION JP2 1 LED P POWER SUPPLY FOR LED 4 2V 2 LEDA CONNECTED TO LED 3 LEDK CONNECTED TO LED 4 LED P POWER SUPPLY FOR LED 0V WM C2002M 1GLYd 5 24 66 RabbitNet Keypad Display Interface RN1600 1 4 Power Supply for LCD Module 1 Signal Supply Voltage Types Vpp Vo LCD Driving Voltage VR 10k 20k 2 Dual Supply Voltage Types Vpp Vo LCD Driving Voltage VR 10k 20k p WM C2002M 1GLVd 6 24 User s Manual 67 1 5 Block Diagram with Display RAM Address and Initialization Table LCD PANEL 100 16DOTS 123 4 5 TOT TT 041142 a3 444546147 49 44 aC ap 4E 50 52 53 2XPAD 63PAD D CLI CL M GND 54 PAD ST7066U 0A VSSVDD VO RS E DB0 DB7 LED LED Relation between DD RAM addresses and positions on the are shown above The DD RAM address ADD is set in the address counter AC and is represented in hexadecimal Initialization Table Instruction Setting Command Description Function Set 00111 Duty 1 16 8 bit mode 2 line display 5x8 d
39. ZMENU_BORDER places a border around the menu ZMENU_KEYPAD uses the keypad to control the menu These parameters can be OR ed together as needed A 3 parameter after ZMENU_TITLE is a pointer to the font that will be used for the menu and its associ ated items NULL can be used if the menu is being used on a character style LCD that has no fonts ZMENU_OPTION identifies the next set of parameters to be associated with a particular option within the menu A 1 parameter following the identifier is always the title of the option A 2 parameter is the item action that will be taken if the item is selected The parameter following the action parameter depends on the action parameter itself The following action parameters are allowed ZMENU_FUNCTION The next parameter is a pointer to a user defined function that will be called when the item is selected The function must return a non zero when completed and must be non blocking ZMENU_SUBMENU The next parameter is the menu number to be displayed when the item is selected ZMENU_LASTMENU No parameter is entered The item selected will display the previous menu ZMENU_SET_FLAG Two parameters are required The first parameter is a pointer to an int that this item is associated with the next parameter is the value to place in that int ZMENU_ LONG is a data entry function Two parameters are required The first parameter is a long pointer to a long value that will be used for data entry The
40. ZVVORLD Keypad Display Interface RN1600 RabbitNet LAN Interface Card User s Manual 019 0138 gt 040415 RN1600 User s Manual Part Number 019 0138 040415 A Printed in U S A 2004 Z World Inc All rights reserved Z World reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Rabbit 3000 are registered trademarks of Rabbit Semiconductor RabbitNet is a trademark of Z World Inc Dynamic C is a registered trademark of Z World Inc Z World Inc 2900 Spafford Street Davis California 95616 6800 USA Telephone 530 757 3737 Fax 530 753 5141 www zworld com RabbitNet Keyapd Display Interface RN1600 TABLE OF CONTENTS Chapter 1 Overview 1 1 1 RabbitNet Keypad Display Interface Features 2 INIMICI a I n A EE aria 2 1 1 2 Connectivity Tools and Expansion 2 1 13 DIN Rall MOUntnp A e ps Ba tebgha 3 1 2 Connecting Peripheral Cards 4 1 2 1 Power Supply 8 iii 5 1 3 Key RabbitNet Keypad Display Interface Components eese eene 6 132 Headers and ues eee n eter dnte 6 TOU 6 1 3 1 2 Liquid Crystal Displays sia en
41. ach other A communica tion path is established and controlled by the master and each master can in theory control up to 196 peripheral cards RabbitNet connections are made point to point and until a port expansion method is available a RabbitNet master port can only be connected directly to a peripheral card and the number of peripheral cards is limited by the number of available RabbitNet ports on the master SLAVE TT Straight through Ethernet cable abbit 30009 Microprocessor MASTER Crossover Ethernet cable MASTER Aer gt 23 Straight through Ethernet cable Figure B 1 Connecting Peripheral Cards to a Master User s Manual 33 Use straight through Ethernet cable connect the master to slave peripheral cards unless you are using a device such as the OP7200 that could be used either as a master or a slave In this case you would use a crossover cable to connect an OP7200 that is being used as a slave Distances between a master unit and peripheral cards can be up to 10 33 ft The following low cost peripheral cards are currently available e Digital I O 24 inputs 16 push pull outputs 4 channels of 10 bit A D conversion with ranges of to 10 V 0 to 1 V and 0 25 to 0 25 V The following connectors are used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connect
42. andle is an address index to device information Use device or rn_find to estab lish the handle reserved is reserved for future use Set to 0 RETURN VALUE The next keypress or 0 if none SEE ALSO rn_keyProcess rn_keyUnget Pushes the value of cKey to the top of the input queue which is 16 bytes deep PARAMETERS handle is an address index to device information Use device orrn find estab lish the handle cKey is the value to be pushed reserved is reserved for future use Set to 0 RETURN VALUE None SEE ALSO rn_keyProcess rn_keyGet User s Manual 21 2 3 4 Display The functions used to control the character display are contained in RNET_LCDIF LIB library located in the Dynamic C RABBITNET library directory Initializes the display Specifically the function call reinitializes the display controller by 1 sending an 8 bit interface command 3 times to reset setting the display to 1 or 2 lines or rows setting 5 x 7 dots disabling display shift amp WU N setting the display on and cursor off and 6 clearing the display and putting the cursor in the upper left corner Call this function before invoking any display operations This function may be altered to suit your dis play type Remember to check your display specifications to match the connector pinouts PARAMETERS handle is an address index to device information Use rn device orrn find
43. arton label 2224 3 Label Specifications 1 QC Inspection Label MODEL LOT NO QC CHECK DATE 32 0 Label Color Green 90 0 e 2 Carton Label Wintek Part No WM C2002M 1GLYd Purchase Order No According to each order Label Color White According to shipping 105 0 Remark WM C2002M 1GLYd 14 24 User s Manual 75 4 1 Specification of Quality Assurance 1 Purpose This standard for Quality Assurance should affirm the quality of LCD module products to supply to purchaser by WINTEK CORPORATION Supplier 2 Standard for Quality Test 2 1 Inspection Before delivering the supplier should take the following tests and affirm the quality of product 2 2 Electro Optical Characteristics According to the individual specification to test the product 2 3 Test of Appearance Characteristics According to the individual specification to test the product 2 4 Test of Reliability Characteristics According to the definition of reliability on the specification for testing products 2 5 Delivery Test Before delivering the supplier should take the delivery test 2 5 1 Test method According to MIL STD 105E General Inspection Level II take a single time 2 5 2 The defects classify of AQL as following Major defect AQL 0 65 Minor defect AQL 2 5 Total defects AQL 2 5 3 Nonconforming Analysis amp Deal With Manners 3 1 Nonconformi
44. ation or icicle 11 3 No residue or solder balls on PCB 11 4 No short circuits in components on WM C2002M 1GLYd 20 24 User s Manual 81 T oxidation contamination curves bends on interface Pin OLB of TCP No cracks on interface pin OLB of TCP No contamination solder residue or solder balls on product The IC on the TCP may not be damaged circuits The uppermost edge of the protective strip on the interface pin must be present or look as if it cause the interface pin to sever 12 6 residual rosin or tin of soldering component or chip component is not burned into brown or black color 12 7 Sealant on top of the ITO circuit has not hardened 12 8 Pin type must match type in specification sheet 12 9 LCD pin loose or missing pins 12 10 Product packaging must the same as specified on packaging specification sheet 12 11 Product dimension and structure must conform to product specification sheet 12 12 The appearance of Heat Seal should not admit any dirt and break General appearance _ WM C2002M 1GLYd 21 24 82 RabbitNet Keypad Display Interface RN1600 4 2 Standard Specification for Reliability 1 Standard Specifications for Reliability of LCD Module No Item Description High temperature The sample should be allowed to stand at 50 for 240 01 operation 0 48 hours under driving condition Low temperature The sample
45. ce ettet en NERO EIS 7 TZ EE 7 1 3 3 asst E p eot iti EY poe 7 1 4 Liquid Crystal Display BacklightS nesa 8 1 5 Display Conitrast uil LE olii 9 Chapter 2 RabbitNet Keypad Display Interface Software 11 21 Dynamic Hibranes uranio Rain ani 12 2 1 1 Accessing and Downloading Dynamic Libraries 13 22 Sample ProsramMS d V G 14 2 2 1 General RabbitNet Operation i 14 2 2 2 RabbitNet Keypad Display Interface i 15 2 3 RabbitNet Keypad Display interface Function Calls ii 17 2321 BUZZED ag 17 232 805 Lu 18 2 3 3 Keypad 19 ZIA DISPLAY ET 22 23 9 Status Byte tt 28 Appendix RabbitNet Display Specifications 29 Electrical and Mechanical 29 Physical 31 A 2 Jumper c bri ite 32 Appendix RabbitNet 33 General RabbitNet 1 2 86 1 ia rie 33 B 2 Physical Implementation EEEE ette EM see iab bees
46. ed Pay close attention when using the 0 Q resistance setting to source 5 V to the LCD 8 RabbitNet Keypad Display Interface RN1600 For example let s consider a case where the specifications indicate that the typical LED voltage is 4 2 and the typical LED backlight current is 200 mA 1 Subtract 4 2 V from 5 V 5 0 V 4 2 V 0 8 V 2 Divide by the current 08V _ 200 mA Choose the next higher resistance 5 Q which is the default factory setting As a sanity check the maximum current in Table 2 for this configuration is 222 mA and so the back light current of 200 mA is safely below the maximum 1 5 Display Contrast Each different size and configuration of a liquid crystal display often requires a unique contrast setting Even otherwise identical liquid crystal displays with the same part num ber from the same vendor sometimes require different settings The contrast or viewing angle of the liquid crystal display can be adjusted using potentiometer R12 on the Keypad Display interface The contrast setting is sensitive and can be somewhat difficult to achieve until some expe rience is obtained A good way to set the contrast is to first connect the liquid crystal dis play to the RabbitNet Keypad Display interface and then power up the complete RabbitNet system Do not run any of the sample programs at this time Adjust the contrast potentiometer until the liquid crystal display shows 1 or 2 rows of full
47. ed as soon as it receives the select signal For direct master to peripheral card connections this is as soon as the master asserts the select sig nal The connection is established once the select signal reaches the addressed slave At this point communication between the master and the selected peripheral card is estab lished and data can flow in both directions simultaneously The connection is maintained so long as the master asserts the select signal User s Manual 35 Function Calls The function calls described in this section are used with all RabbitNet peripheral cards and are available in the RNET LIB library in the Dynamic RABBITNET folder Resets initializes or disables a specified RabbitNet port on the master single board computer During initialization the network is enumerated and relevant tables are filled in If the port is already initialized calling this function forces a re enumeration of all devices on that port Call this function first before using other RabbitNet functions PARAMETERS portflagisa bit that represents a RabbitNet port on the master single board computer from 0 to the maximum number of ports A set bit requires a service If port flag 0x03 both RabbitNet ports 0 and 1 will need to be serviced servicetype enables or disables each RabbitNet port as set by the port flags 0 disable port 1 enable port RETURN VALUE 0 Returns an address index to device information from a gi
48. egin the installation InstallShield will install the files for you at a location you desig nate and a pop up readme file will explain the available options to add the files to your existing Dynamic C installation or to modify the relevant files in your existing Dynamic C installation You will now be ready to use Dynamic C with the RabbitNet Keypad Display interface and you will continue to be able to use Dynamic C with all the other Z World products you were able to use before User s Manual 13 2 2 Sample Programs Sample programs are provided in the Dynamic C SAMPLES folder The various folders contain specific sample programs that illustrate the use of the corre sponding Dynamic C libraries For example the sample program PONG C demonstrates the output to the STDIO window The RABBITNET folder provides sample programs specific to the RabbitNet peripheral cards Each sample program has comments that describe the purpose and function of the program Follow the detailed instructions at the beginning of the sample program to help you set up your boards to run the sample program To run a sample 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 Rabbit Net peripheral card must be connected to a master such as the BL2500 The BL2500 or other master must be in Program Mode and must be connected via the programming cable to a PC Mo
49. elect connectors from the Expansion Kit that will be convenient for your testing J4 ONIMINVYDONd 801 O or at m FOVAYIINI 000000000000000 NQOTXIV coo n onn Figure 2 Connecting Displays to Keypad Display Interface Headers J4 and 5 48 RabbitNet Keypad Display Interface RN1600 C 2 1 2 x 20 Character LCD The 2 x 20 display does not have a backlight so the jumpers on header J7 do not need to be set and may be left in place as is This display uses the dual row 2 x 8 connector Two ways are available to attach the display to the Keypad Display interface 1 To attach the 2 x 20 display directly to the Keypad Display interface solder a 2 x 8 socket to the bottom side of the display printed circuit board the side that does not have the actual display The display can now be attached to the Keypad Display inter face at header J4 Make sure that pin one on the display is aligned with pin 1 on J4 2 A 6 flat ribbon cable included with the Expansion Kit can also be used to attach the 2 x 20 display The cable has 2 x 8 female IDC connectors at each end To use the cable solder a 2 x 8 header
50. er setting PARAMETERS handle is an address index to device information Use rn device orrn find estab lish the handle is the buzzer on off control 0 buzzer off 1 buzzer on reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn keyBuzzerAct Activates the buzzer for a specified interval of time Buzzer will override this function Calling rn keyBuzzerAct does not affect the keypress buzzer setting PARAMETERS handle is an address index to device information Use device orrn find to estab lish the handle period is the length of time the buzzer will be activated Select 1 65535 ms reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn keyBuzzer User s Manual 17 2 3 2 LEDs The functions used to control any LEDs are contained in RNET_KEYIF LIB library located in the Dynamic C RABBITNET library directory The Microprocessor Bad LED is user controllable and can be set to a specified state until called again PARAMETERS handle is an address index to device information Use rn_device or rn_find estab lish the handle led is the LE
51. erface Features accepts one generic keypad with a maximum of 16 terminals a maximum of 64 keys in an 8 x 8 matrix and with a flex connector tail whose traces are spaced 0 1 center to center supports one character liquid crystal display with up to 4 x 20 characters with or with out a backlight accepts standard 1 x 16 or 2 x 8 connectors with 0 1 pitch onboard series resistance configuration for backlight LEDs on liquid crystal display onboard contrast adjustment for liquid crystal display 5 LED status indicators can be mounted in standard 100 mm DIN rail trays sold by other suppliers Interfaces with master through RabbitNet serial protocol at 1 Megabit per second using standard Ethernet cable can be up to 10 m 33 ft away from master 1 1 Software The RabbitNet Keypad Display interface is a preprogrammed slave the master to which it is connected is programmed using version 8 50 or later of Z World s Dynamic 1 1 2 Connectivity Tools and Expansion Kit Z World also has available additional tools and parts to allow you to make your own wir ing assemblies to interface with the connectors on the RabbitNet Display Crimp tool Z World Part No 998 0013 to secure wire in crimp terminals Keypad Display Interface Expansion Kit Z World Part 101 0887 provides the necessary hardware components required to run the sample programs and to demonstrate the functionality of the Keypad Display interface In addition
52. heir Web site at www xymox com and searching for stock membrane switches 1 3 1 2 Liquid Crystal Displays A 2 x 8 IDC header at J4 and a 1 x 16 socket at J5 with a 0 1 pitch provide the interface for character liquid crystal displays either with or without a backlight A standard signal pin assignment is used by most manufacturers for each of the two types of connectors The command set is the same across all character liquid crystal displays Pins 15 and 16 are reserved for the backlight function In some cases when there is no backlight or the backlight is internal to the liquid crystal display the manufacturer some times uses a 1 x 14 in line or a 2 x 14 dual row connector In this case pins 15 and 16 on the Keypad Display interface are not used and you need to only connect pins 1 14 to the corresponding pins on the liquid crystal display 1 3 2 LEDs The RabbitNet Keypad Display interface has five status LEDs Backlight Activity Alive Microprocessor Bad and Power Good The Backlight LED at DS4 turns on to indicate that the backlight was turned on by the rn dispBacklight software function call The Activity LED at DS2 indicates network activity in that data are being transferred between the Keypad Display interface and the master The Alive LED at DS5 blinks continuously once the onboard microprocessor has per formed its self tests and is running properly The microprocessor is not working properly if this LED remain
53. ht and set its intensity To provide the 5 voltage source install 2 pin jumpers across pins 7 8 and 9 10 on header J7 When the LCD backlight specifications call for a current source the series resistors on the Keypad Display interface are used to limit the current The series resistance can be set from 3 3 Q to 20 Q with the 2 pin jumpers on header J7 The liquid crystal display speci fications list the voltage required across its internal LEDs and indicate the allowable range of current corresponding to the LED intensity Subtract this LED voltage from 5 V then divide that by the current for the selected LED intensity to determine the required series resistance Install 2 pin jumpers on header J7 to configure the resistance value closest to that calculated without exceeding the maximum current in the specification Table 2 gives the resistance values and maximum current corresponding to various jumper settings Table 2 Header J7 Pins to Jumper to Configure LCD Series Resistance Header J7 Pins 1 2 3 4 5 6 7 8 9 10 mA 0 00 Q m 1000 T 20 0 Q in infinite 0 Factory default NOTE Make sure that the jumpers are set appropriately before connecting the liquid crystal display to the Keypad Display interface The backlight on your liquid crystal display may be destroyed when subjected to a current above the maximum specifi
54. ical and environmental specifications for the Rabbit Net Keypad Display interface Table A 1 RabbitNet Keypad Display Interface Specifications Feature Specification Microprocessor ST72F264G Keypad Handles any keypad with up to 16 pins and with up to 64 keys traces on flex connector tail are at a 0 1 pitch Display Accepts one character liquid crystal display from 1 x 8 to 4 x 20 characters with or without backlight using standard 1 x 16 or 2 x 8 connectors with 0 1 pitch 5 0 V Contrast and backlight support are provided LEDs 5 hardware or software driven 1 red 1 green 3 yellow RabbitNet Serial Port RS 422 SPI 1 Mbits s Power Vec 5 V DC 60 mA maximum Temperature cds P 09 to 50 typ with customer supplied LCD Humidity 596 to 9596 noncondensing IDC connectors one 1 x 16 header with 0 1 pitch one 1 x 16 socket with 0 1 pitch Connectors one 2 x 8 header with 0 1 pitch Friction lock connectors one polarized 4 position header with 0 156 pitch One RJ 45 RabbitNet jack Board Size 2 95 x 3 94 x 0 77 75 mm x 100 mm x 20 mm Current specified does not included current consumed by LCD or backlight 30 RabbitNet Keypad Display Interface RN1600 A 1 1 Physical Mounting Figure A 2 shows position information to assist with interfacing other boards with the Keypad Display interface
55. is reset 1 soft reset only the microprocessor logic is reset RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master Sets software watchdog timeout period Call this function prior to enabling the software watchdog timer This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn find toestablish the handle timeout is a timeout period from 0 025 to 6 375 seconds in increments of 0 025 seconds Entering a zero value will disable the software watchdog timer RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master User s Manual 39 Enables the hardware and or software watchdog timers a peripheral card The software on the periph eral card will keep the hardware watchdog timer updated but will hard reset if the time expires The hardware watchdog cannot be disabled except by a hard reset on the peripheral card The software watch dog timer must be updated by software on the master The peripheral card will soft reset if the timeout set by rn_sw_wdt expires This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index
56. l card using costatements This program will first look for a peripheral card that is connected directly to each master port using rn device The last peripheral card found will be used The software watchdog will be set for 2 5 seconds The watchdog will be hit at an ever increasing timeout until the timeout is longer than 2 5 seconds A software reset will occur and the software watchdog will be disabled 14 RabbitNet Keypad Display Interface RN1600 2 2 2 RabbitNet Keypad Display Interface The SAMPLES RABBITNET RN1600 subdirectory contains the following sample pro grams You will need to install the specified keypad and or the specified display provided in the RabbitNet Keypad Display Interface Expansion Kit before you run these sample programs Appendix C provides details and diagrams showing how to attach the appropri ate keypad or LCD display needed to run a sample program Each sample program has complete setup and operating instructions ALPHANUM C Demonstrates the use of the 2 x 6 keypad and the 4 x 20 display pro vided in the RabbitNet Keypad Display Interface Expansion Kit The sample program demonstrates how you can create messages with the keypad and then display them on the LCD e BUZZER C Demonstrates control of the buzzer on the RabbitNet Keypad Display interface by using the function calls kevBuzzer and rn keyBuzzerAct Although the buzzer is monotone some pitch and motorboat effects can be demon st
57. lay Interface RN1600 If bubbles are visible Acceptable Q judge using black spot Polanzer bubbles specifications mot easy ta find must check in specify direction Follow NO 3 LCD black spots white spots contamination Symbols x Chip length y Chip width zZ Chip thickness Seal width t Glass thickness a LCD side length L Electrode pad length amp 1 General glass chip amp 1 1Chip on panel surface and crack between panels x 7 Z Chip thickness y Chip width x Chip length k Not exceed 1 Bif there are 2 or more chips x is the total length of each chip 6 1 2 Comer crack i d z Chip thickness yi Chip width Chip length Not over viewing area Not exceed 173k B If there are 2 or more chips x is the total length of each chip WM C2002M 1GLYd 18 24 User s Manual Symbols x Chip length y Chip width z Chip thickness k Seal width t Glass thickness LCD side length L Electrode pad length 82 Protrusion over terminal amp 2 1 Chip on electrode pad uf E y Chip width x Chiplength 2 Chip thickness 822 Non conductive portion Cf the chipped area touches the ITO terminal over 2 3 af the ITO must remain and be inspected according te electrode terminal specifications CIF the product will be heat sealed by the customer the alignment mark must not be damaged 823 Substrate protuberance and internal crack
58. lity no any missing line after the discharge but LCD module can be reset if display off 07 ESD Electrostatic Discharge i e _ ee WM C2002M 1GLYd 22 24 User s Manual 83 2 Testing Conditions and Inspection Criteria For the final test the testing sample must be stored at room temperature for 24 hours after the tests listed in Table 4 2 Standard specifications for Reliability have been executed in order to ensure stability Test Model Inspection Criteria The current consumption should conform to the product specification Current Consumption Refer To Specification After the tests have been executed the Contrast Refer To Specification contrast must be larger than half of its initial value prior to the tests Appearance Visual inspection Defect free 3 Life Time Functions performance appearance etc shall be free from remarkable deterioration within 50 000 hours under ordinary Life time operating and storage conditions room temperature 25 10 normal humidity 45 20 RH and in area not exposed to direct sun light Life time of backlight please refer to Data about backlight Note From our experience the life time of high humidity operation and high temperature operation as above mentioned could be achieved ss WM C2002M 1GLYd 23 24 84 RabbitNet Keypad Display Interface RN1600 4 3 Precautions in Use of LCM 4 3 1 Handling of LCM Don t give
59. ng analysis 3 1 1 Purchaser should supply the detail data of non conforming sample and the non suitable state 3 1 2 After accepting the detail data from purchaser the analysis of nonconforming should be finished in two weeks 3 1 3 If supplier can not finish analysis on time must announce purchaser before two weeks 3 2 Disposition of nonconforming 3 2 1 If find any product defect of supplier during assembly time supplier must change the good product for every defect after recognition 3 2 2 Both supplier and customer should analyze the reason and discuss the disposition of nonconforming when the reason of nonconforming is not sure WM C2002M 1GLYd 15 24 76 RabbitNet Keypad Display Interface RN1600 4 Agreement items Both sides should discuss together when the following problems happen 4 1 There is any problem of standard of quality assurance and both sides think that it must be modified 4 2 There is any argument item which does not record in the standard of quality assurance 4 3 Any other special problem 5 Standard of The Product Appearance Test 5 1 Manner of appearance test 5 1 1 The test must be under 20W x 2 or 40W fluorescent light and the distance of view must be at 30 cm 5 1 2 When test the model of transmissive product must add the reflective plate 5 1 3 The test direction is base on about around 45 of vertical line eyes eyes 45 45 5
60. o device information Use rn_device orrn find estab lish the handle cByte is the character to display reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn_dispPrintf rn_dispData This function is a low level routine to send a byte to the display data register PARAMETERS handle is an address index to device information Use rn_device orrn find estab lish the handle cData is the character to display msdelay is the delay from 0 to 255 ms that is needed between each command 1 delay of 1 ms is rec ommended unless otherwise specified reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command SEE ALSO rn dispPutc rn dispPrintf rn dispCmd 26 RabbitNet Keypad Display Interface RN1600 This function is a low level routine to send a command to the display control register PARAMETERS handle is an address index to device information Use rn_device orrn find estab lish the handle cmd is the command to send to the display msdelay is the delay from 0 to 255 ms that is needed between each command 1 delay of 1 ms is rec ommended unless otherwise specified reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command SEE AL
61. or e A D converter 8 channels of programmable gain 12 bit A D conversion configurable as current mea surement and differential input pairs 2 5 V reference voltage is available on the con nector The following connectors are used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector e D A converter 8 channels of 0 10 V 12 bit D A conversion The following connectors are used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector Display Keypad interface allows you to connect your own keypad with up to 64 keys and one character liquid crystal display from 1 x 8 to 4 x 20 characters with or without backlight using standard 1 x 16 or 2 x 8 connectors The following connectors are used Signal 0 1 headers or sockets Power 0 156 friction lock connectors RabbitNet RJ 45 connector Relay card 6 relays rated at 250 V AC 1200 V A or 100 V DC up to 240 W The following connectors are used Relay contacts screw terminal connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector Visit Z World s Web site for up to date information about additional cards and features as they become available The Web site also has the latest revision of this user s manual 34 RabbitNet Keypad Display Interface RN1600 B 2 Physical Implementation There are four signaling functions associated with a
62. ots format display mode WM C2002M 1GLYd 7 24 68 RabbitNet Keypad Display Interface RN1600 1 6 CGROM NO DA EET ma HI ZB U as n WM C2002M 1GLYd 8 24 User s Manual 69 2 Electro optical Units 2 1 Electro optical Characteristics ITEM SYMBOL CONDITION MIN TYP MAX UNIT VIEW ANGLE V CR 2 40 40 deg VIEW ANGLE CR 2 40 40 deg CONTRAST RATIO CR Ta 25 C 5 RESPONSE TIME tr 25 200 300 ms RESPONSE TIME td 25 200 300 ms 0 4 8 VOLTAGE 25 _ 45 _ V Ta 50 C 4 2 DUTY 1 16 DRIVE METHOD BIAS 1 5 LCD TYPE STN Gray Positive Transflective VIEWING DIRECTION 6 O CLOCK 2 2 Optical Definitions Nonselected Nonselected Condition Condition Selected Condition 100 Rise Time Decay Time fall time tf Response Time WM C2002M 1GLYd 9 24 70 RabbitNet Keypad Display Interface RN1600 12 00 Wier Angle Bishi cure of curva of ncaxglacied Driving Voltage Perpendicular lina ce cn Brightness ni non
63. pins which you configure as strobe pins and data pins using the rn_keyInit function 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Keypad drivers follow scheme that assigns key code indexes in a 8 x 8 matrix array The table below shows a representation of the array with the key code index ranging from 0 to 63 in an 8 x 8 matrix 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 54 RabbitNet Keypad Display Interface RN1600 Combining the two tables our indexing table might look like this 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 99 Ome 23 22 21 20 19 18 17 16 14 13 i2 ihi 10 9 8 7 5 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 3 1 0 The shaded blocks describe how key code indexes are arrived at using strobe and data pins ina 4 x 6 arrangement of keys Physical Connections Pins 15 through 10 are shown but are unused Pins 9 8 7 and 6 are strobe pins Pins 5 through 0 are data pins Assigning Key Code Indexes Data pins 5 through 0 determine the key code indexes shaded area Pin 0 is networked
64. rated with this sample program KEYBASIC C Demonstrates the keypad function using the 4 x 10 keypad provided in the RabbitNet Keypad Display Interface Expansion Kit The sample program demon strates the following features Custom ASCII keypad return values Use of the buzzer on the RabbitNet Keypad Display interface Keypad character assignment for a specific example provided Once you compile and run this program press each key on the keypad The results are displayed in the Dynamic C STDIO window e LCDBASIC C Demonstrates the use of the 2 x 20 display provided in the RabbitNet Keypad Display Interface Expansion Kit The sample program demonstrates various display functions Note that the backlight function will work only on displays that are equipped with a backlight PONG C Demonstrates the use of the 3 x 4 keypad and the 2 x 20 display provided in the RabbitNet Keypad Display Interface Expansion Kit ZMENU C Demonstrates a menu system that allows you to list a set of action options for an operator to choose from Keypads and character displays included in the Expan sion Kit are used with this program All the parameters required for the menu system can be changed via the Zmenu Config function included with the sample program This sample program has three menus a main menu a data entry menu and a TCP IP menu The main menu allows you to select either of the other two menus and includes provisions for
65. re complete information on Dynamic C is provided in the Dynamic C User s Manual 2 2 1 General RabbitNet Operation The SAMPLES RABBITNET subdirectory contains the following sample programs ECHOCHAR C Demonstrates a simple character echo to any RabbitNet peripheral card This program will first look for a peripheral card that is connected directly to each master port using rn_device The last peripheral card found will echo characters sent by the master Otherwise the status byte will indicate there is no connection ECHOTERM C Demonstrates a simple character echo to any RabbitNet peripheral card through a serial terminal on the master This program will first look for a peripheral card connected directly to each master port using rn device The last peripheral card found will echo characters sent by the master Otherwise the status byte will indi cate there is no connection e HWATCHDOG c Demonstrates setting the hardware watchdog on a RabbitNet periph eral card This program will first look for a peripheral card that is connected directly to each master port using device The last peripheral card found will be used The hardware watchdog will be set and a hardware reset should occur in approximately 1 5 seconds The hardware watchdog will be disabled after the reset is done and the hard ware reset bit will be set SWATCHDOG C Demonstrates setting and hitting the software watchdog on a Rabbit Net periphera
66. rn enable wdt 40 rn find Lee 37 rn hitwd 40 iine 36 rn read 2 2 2 38 ID reset 4 39 rn rst status 41 rn SW Wdt eene 39 ID Write 38 sample programs 14 ZMENU Zmenu Config 52 specifications Keypad Display interface 29 dimensions 29 electrical 30 header footprint 31 physical mounting 31 relative pin 1 locations 31 temperature 30 status byte 42 96 RabbitNet Display RN1500 SCHEMATICS 090 0192 RabbitNet Keypad Display Interface Schematic www zworld com documentation schemat 090 0192 pdf The schematics included with the printed manual were the latest revisions available at the time the manual was last revised The online versions of the manual contain links to the latest revised schematic on the Web site You may also use the URL information provided above to access the latest schematics directly User s Manual 97
67. ry are discussed in the eDisplay OP7200 User s Manual RNET LIB provides functions unique to the RabbitNet protocol Function calls for this library are discussed in Appendix B RabbitNet RNET_DRIVER LIB provides background functions unique to the SPI data transmis sion protocol RNET_KEYIF LIB provides function calls for the RabbitNet Keypad Display keypad interface These function calls are described in this chapter RNET LCDIF LIB provides function calls for the RabbitNet Keypad Display LCD display interface These function calls are described in this chapter Other functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference User s Manual Functions relevant to the other peripheral cards are described in the manual specific to the peripheral card 12 RabbitNet Keypad Display Interface RN1600 2 1 1 Accessing Downloading Dynamic Libraries The libraries needed to run the RabbitNet Keypad Display interface are available on the CD included with the Tool Kit for the master single board computer or they may be downloaded from http www zworld com support downloads on Z World s Web site When downloading the libraries from the Web site click on the product specific links until you reach the links for the RabbitNet peripheral cards download Once you have downloaded the RabbitNetExpansionCards exe file double click on the file name to b
68. s cleared when read 7 reset has occurred 6 SW reset has occurred 5 HW watchdog enabled 4 SW watchdog enabled 3 2 1 0 Reserved RETURN VALUE The status byte from the previous command PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle retdataisa pointer to the return address of the communication byte A set bit indicates which error occurred This register is cleared when read 7 Data available and waiting to be processed MOSI master out slave in 6 Write collision MISO master in slave out 5 Overrun MOSI master out slave in 4 Mode fault device detected hardware fault 3 Data compare error detected by device 2 1 0 Reserved RETURN VALUE The status byte from the previous command User s Manual 41 B 3 1 Status Byte Unless otherwise specified functions returning a status byte will have the following format for each designated bit 00 Reserved 01 Ready 10 Busy 11 Device not connected 0 Device 1 Router 0 No error 1 Communication error Reserved for individual peripheral cards Reserved for individual peripheral cards 0 Last command accepted 1 Last command unexecuted 0 Not expired x 1 HW or SW watchdog timer expired Use the function zn comm status to determine which error occurred T Use the function zn rst s
69. s either on or off The red Microprocessor Bad LED at DS3 indicates the status of the RabbitNet Keypad Display interface Following a reset DS4 will be ON and will remain ON while the micro code on the onboard microprocessor performs its self tests This LED is turned off if the self test completes successfully and can subsequently be user controlled in the application The green Power Good LED at DSI indicates when power is applied to the RabbitNet Keypad Display interface and that Vcc is above 3 6 V The LED turns off when the Rab bitNet Keypad Display interface is being reset 1 3 3 Buzzer An audible buzzer can be turned on in software for variable intervals of time User s Manual 7 1 4 Liquid Crystal Display Backlights Liquid crystal displays are manufactured with and without backlighting Electrolumines cent EL cold cathode fluorescent CCFL vacuum fluorescent VFD or LED back lighting are the types of backlighting available The RabbitNet Keypad Display interface supports only LED backlighting because this is the most common type and is the most likely to require external support Liquid crystal displays with LED backlighting derive their voltage or current via pins 15 and 16 of header 14 or 75 In those cases where a voltage source is used the Keypad Display interface can be configured to supply 5 V to the liquid crystal display Series resis tors on the liquid crystal display limit the current to the LED backlig
70. s greater than 15 SEE ALSO rn read Reads a string from the specified device and register Waits for results This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn find establish the handle regno is the command register number as designated by each device recdata is a pointer to the address of the string to read from the device datalen is the number of bytes to read 0 15 NOTE A data length of 0 will transmit the one byte command register number RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master and 2 means that the data length was greater than 15 SEE ALSO rn_write 38 RabbitNet Keypad Display Interface RN1600 Sends a reset sequence to the specified peripheral card The reset takes approximately 25 ms before the peripheral card will once again execute the application Allow 1 5 seconds after the reset has completed before accessing the peripheral card This function will check peripheral card information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle resettype describes the type of reset 0 hard reset equivalent to power up All logic
71. s the handle of the first device matching the criteria 0 indicates no such devices were found SEE ALSO rn_device The peripheral card sends back the character the master sent This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn to establish the handle sendecho is the character to echo back recdata isa pointer to the return address of the character from the device RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master User s Manual 37 Writes string to the specified device and register Waits for results This function will check device infor mation to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to device information Use zn device orrn find establish the handle regno is the command register number as designated by each device data is a pointer to the address of the string to write to the device datalen is the number of bytes to write 0 15 NOTE A data length of 0 will transmit the one byte command register number RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master and 2 means that the data length wa
72. second parameter is the maximum number of digits that the long value will have in decimal format when this item is selected A data entry window will be displayed to allow the operator to enter a numeric value ZMENU_FLOAT is a data entry function Two parameters are required The first parameter is a float pointer to a float value that will be used for data entry The second parameter is the maximum number of digits that the float value will have in decimal format when this item is selected A data entry window will be displayed to allow the operator to enter a numeric value 52 RabbitNet Keypad Display Interface RN1600 ZMENU STRING 15 a data entry function Two parameters are required The first parameter is a char pointer to a char array value that will be used for data entry The second parameter is the maximum number of digits that the char array value will have in decimal format when this item is selected A data entry window will be displayed to allow the operator to enter an alphanumeric value ZMENU_TIMEDATE is a data entry function The only parameter required is a pointer to the time structure that will be used for the data entry When this item is selected a data entry window will be displayed to allow the operator to enter a time date value ZMENU_PASSWORD can be OR ed with the above data entry functions to enable password protection EXAMPLE int Zmenu_Config 0 ZMENU TITLE MAIN MENU ZMENU_KEYPAD ZMENU_BORDER NU
73. selected segment HZ Contrast milion Hrightress ni selected segment ET Contrast ration WM C2002M 1GL Yd 10 24 User s Manual 3 Mechanical Units 3 1 Mechanical Specification ITEM NUMBER OF DOTS CHARACTER FORMAT APPROX WEIGHT BACK LIGHT WM C2002M 1GLYcl STANDARD VALUE 20 CHARACTERS x 2LINES 5x8 DOTS 116 0 W 2 37 0 H 14 5 MAXIT 84 0 W 18 6 73 5 WW 11 5 iH 3 20 W 5 55 3 70 W 5 85 0 65 H 0 65 Wi 0 70 H 5 LED YELLOW GREENM 11 24 72 RabbitNet Keypad Display Interface RN1600 N JECTI PRO p ENS DS SESS LE SG 25 i5 WM C2002M 1GLYd 12 24 A 7 User s Manual 73 3 3 Backlight Specification 1 LED Backlight Styles Bottom Type The LED chips are distributed over the whole light area of the illumination unit which gives the most uniform ligh
74. sers 93 Index 95 Schematics 97 RabbitNet Keypad Display Interface RN1600 1 OVERVIEW Chapter 1 describes the features and the use of the RabbitNet Keypad Display interface one of the peripheral I O cards designed for use with the RabbitNet expansion ports on Z World s Coyote BL2500 and Badger BL2600 single board computers and on the eDisplay OP7200 operator control panel The RabbitNet expansion ports enable a modular and expandable embedded control system whose configuration of I O cards key pads and displays can be tailored to a large variety of demand ing real time control display and data acquisition applications A typical RabbitNet system consists of a master single board computer and one or more peripheral I O cards A high performance Rabbit 3000 or Rabbit 20009 microprocessor on the master provides fast data processing and the master also provides the DCIN and 5 V power for the peripheral cards Figure 1 shows a conceptual view of the RabbitNet Key pad Display Interface connected to a master RabbitNet LAN Keypad Display Interface Card KEYPAD SLAVE MASTER e DISPLAY Rabbit 3000 Microprocessor Figure 1 RabbitNet Keypad Display Interface Slave Connected to Master NOTE Only one RabbitNet Keypad Display interface per master is supported at this time NOTE The 7200 master does not supply any power to the slave User s Manual 1 1 1 RabbitNet Keypad Display Int
75. t 2 Data About LED Backlight PARAMETER SYMBOL MIN TEST CONDITION Voltage Reverse Voltage Luminous Intensity 60 Peak Emission Wavelength op Life Time 20000 NOTE 1 Backlight Only Luminous Intensity Uniformity 2 Average Luminous Intensity Of Pi PS MIN n 3 Luminous Intensity Uniformity MAX 100 3 MEASURED METHOD i Elfective spatial Distribution i Hele Diameter lwl ot per Position Measured Lumincus Intensity WM C2002M 1GLYcl 13 24 74 RabbitNet Keypad Display Interface RN1600 3 4 Packing Method 1 Packaging Material per carton Detail B Tray 4 i Tray 3 gt Tray 2 ua Tray 1 Rotate tray 180 degrees and place on top of stack Check the tray stack using Fig B QC inspection label NO Item Model Dimensions mm Unit Weight Kg Quantity 1 LCM Module WM C2002M 1GLYd 116 0 37 0 0 054 240 2 Tray V146 PETA 320 217 0 06 40 3 Product Box C01 320 219 70 0 131 10 4 Carton C61 475 345 389 1 208 1 5 Package Bag 5 467 321 0 08 0 023 10 6 Total Weight 17 9 5 2 Packaging Specifications and Quantity 1 LCM quantity per tray no per row 2 x no per column 4 8 2 quantity per box no of trays 8 x quantity pertray 3 24 3 Total LCM quantity in carton no of boxes 24 quantity perbox 10 240 Use empty tray Use package bag C
76. tatus to determine which timer expired 42 RabbitNet Keypad Display Interface RN1600 APPENDIX KEYPAD DISPLAY INTERFACE EXPANSION KIT Z World offers a Keypad Display Interface Expansion Kit for that includes a Keypad Display interface Z World part number 101 0879 and provides the necessary hardware components required to run the sample programs and to demonstrate the functionality of the Keypad Display interface Table C 1 lists the items in the Expansion Kit along with their part numbers Table C 1 Keypad Display Interface Card Expansion Kit Parts Description Quantity Supplier Part Number Rubber Foot 4 Z World 804 0023 4 x 20 Character Display 1 Z World 535 0026 2 x 20 Character Display 1 Z World 535 0031 3 x 4 Keypad 1 Z World 505 0013 2 x 6 Keypad 1 Z World 505 0027 Eur Flex Connector for above 2 65801 010 4 x 10 Keypad 1 Z World 505 0004 2 Flex Connector for above 1 65801 013 2 x 8 IDC Header 2 Pinrex PH1S 208GB 1160 2 x 8 IDC Socket 2 Pinrex SBQ 16P D 100 TG 1 x 16 Male Male Hi Rel Pin Strip 1 MilMax 800 10 016 10 0001 1 x 16 Hi Rel Socket Strip 2 Pinrex MSS 116SB 6 2 x 8 F F IDC Ribbon Cable 1 DigiKey M3AAA 1606J ND 1 x 16 Male Male 4 Flex Strip 1 Amp Tyco 5 1437145 7 1 x 16 IDC Header 2 Pinrex PH1S 116GB 1160 0 156 4 position Friction Lock Housing 2 Molex 09 50 3041 0 156 Crimp Pins 8 Molex 08 50 0108 0 1
77. to the top side of the display printed circuit board the same side that has the actual display Now you can use the 6 flat ribbon cable to connect the display to header 14 on the Keypad Display interface making sure that pin 1 is con nected to pin 1 on both sides When you port this design to your own use the ribbon cable can be up to 2 m long The LCDBASIC C and PONG sample programs illustrate the use of the 2 x 20 display C 2 2 4 x 20 Character LCD The 4 x 20 display has an LED backlight and the factory default jumpers at J7 are already set to provide the necessary series resistance for the LED backlight The factory default is for 2 pin jumpers across pins 3 4 5 6 and 9 10 which provides a series resistance of 5 00 4 x 20 display uses a 1 x 16 in line connector interface Three ways are available to attach the display to the Keypad Display interface 1 Solder one end of the 1 x 16 male male 4 flex strip into either the top or bottom side of the LCD display printed circuit board Press the other end is into the socket strip at J5 on the Keypad Display interface When installing the flex strip into 5 work from one end towards the other inserting 3 or 4 pins as you go The flex strip provides a tight fit to the socket strip Make sure that pin 1 is connected to pin 1 on both ends of the cable When you port this design to your own use the flex strip can be up to 2 m long 2 The display can be connected directly
78. ven physical node address This function will check device information to determine that the peripheral card is connected to a master PARAMETER pna is the physical node address indicated as a byte 7 6 2 bit binary representation of the port number on the master 5 4 3 Level 1 router downstream port 2 1 0 Level 2 router downstream port RETURN VALUE Pointer to device information 1 indicates that the peripheral card either cannot be identified or is not connected to the master SEE ALSO rn find 36 RabbitNet Keypad Display Interface RN1600 Locates the first active device that matches the search criteria PARAMETER srch is the search criteria structure rn_search unsigned int flags status flags see MATCH macros below unsigned int ports port bitmask char productid product id char productrev product rev char coderev code rev long serialnum serial number Use a maximum of 3 macros for the search criteria RN_MATCH_PORT match port bitmask RN_MATCH_PNA match physical node address RN_MATCH HANDLE match instance reg 3 RN_MATCH PRDID match id version reg 1 RN MATCH PRDREV match product revision RN MATCH CODEREV match code revision RN MATCH SN match serial number For example rn search newdev newdev flags RN MATCH PORT RN MATCH SN newdev ports 0x03 search ports 0 and 1 newdev serialnum E3446C01L handle rn_find amp newdev RETURN VALUE Return
79. y code indexes 31 through 24 Pin 10 strobes key code indexes 23 through 16 Pin 9 strobes key code indexes 15 through 8 Pin 8 strobes key code indexes 7 through 0 The remaining pins and indexes are unused 58 RabbitNet Keypad Display Interface RN1600 5 2 x 6 Keypad Datasheet 0 4 0 4 pocket window 12 places 0 62R typ 0 525 typ 0 31 2 exposed contact area near side User s Manual 59 C 6 3 x 4 Keypad Datasheet 0 62 corners 0 25 0 25 window 2 places exposed contact area top side 60 RabbitNet Keypad Display Interface RN1600 C 7 4 x 10 Keypad Datasheet COMIC NC e e C 8 2 20 Character LCD Datasheet pasa INTER TORP SPECIFICATIONS FOR LCD MODULE CUSTOMER STD WM C2002M 1GLY d MODEL VER 7 CUSTOMER APPROVED APPROVED BY CHECKED BY ORGANIZED BY APPROVAL FOR SPECIFICATIONS ONLY APPROVAL FOR SPECIFICATIONS AND SAMPLE PRETE 427 SIM HORSE 9 2 9 2 CHIEN KUO RDO TEPZ TANTZU TAICHUNG 427 TAIWAN R O C TEL 886 4 25347 288 FAX 886 4 25310868 62 RabbitNet Keypad Display Interface RN1600 Version Chap Contents Date Note d1 New Version 06 May 1996 SPEC d2 Change as follow by Wintek SPEC
80. y filled character cells Now run one of the sample programs that corresponds to the liquid crystal display being used and further adjust R12 for optimum contrast User s Manual 9 10 RabbitNet Keypad Display Interface RN1600 2 RABBITNET KEYPAD DISPLAY INTERFACE SOFTWARE The RabbitNet Keypad Display interface operates via Dynamic C program running on the master Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Z World and other single board computers based on the Rabbit microprocessor Chapter 2 provides the libraries function calls and sample programs related to the Rabbit Net Keypad Display interface User s Manual 11 2 1 Dynamic Libraries In addition to the library associated with the master single board computer such as the BL2500 BL2600 or 7200 several other libraries are needed to provide function calls for the RabbitNet Keypad Display interface RN CFG BL25 LIB used to configure the BL2500 for use with RabbitNet peripheral cards Function calls for this library are discussed in the Coyote BL2500 User s Manual RN CFG BL26 LIB used to configure the BL2600 for use with RabbitNet peripheral cards Function calls for this library are discussed in the Badger BL2600 User s Manual RN_CFG_0P72 LIB used to configure the 7200 for use with RabbitNet peripheral cards Function calls for this libra
Download Pdf Manuals
Related Search
Related Contents
AT-320 SIP Phone User Manual EN Security of NFC applications 複写機及び複合機の表示基準 - JBMIA(一般社団法人 ビジネス機械 C-Splash 2 User Guide Courrier Ambroise - AGEFOS PME Ile-de Network Camera EKFMAHTB IM 4PW61465-1A EN tcm135 Fujitsu ESPRIMO Mobile U Series U9210 Copyright © All rights reserved.
Failed to retrieve file