Home

RabbitNet Peripheral Cards

image

Contents

1. p 1 83 46 5 1 21 30 7 V rust iu ty or X stades fis 10 c BITS f us 8 B 9 E d H 8 ci z d wo H Gn is 88 o i ell Oh 282 8 cl fe gt Eb ol g of IF Onl 2 IT IT IT TIT IT 1 TIT H aO IL mnrnnannnn nil imppnnnnn ni 1 8 Y e EEE eee toy D 0 250 3 45 gt og 6 4 88 B 3 95 gt 100 Qc 0 67 o 17 3 95 100 Figure 14 Digital I O Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses User s Manual 45 A G o Q 5 Table 3 lists the electrical mechanical and environmental specifications for the Digital Card Table 3 Digital I O Card Specifications Feature Specification Microprocessor ST72F264G Digital Inputs 24 protected to 40 V DC switching threshold is 1 5 V nominal Digital Outputs 16 sink or source up to 200 mA each 40 V DC max individually software configurable as sinking or sourcing Analog Inputs Four buffered channels 10 bit resolution 8 bit accuracy conversion time 28 us channel Input ranges 2 channels 0 10 V single ended 1 channel 0 1 V single ended 1 channel
2. ie eden 142 6 8 Electrical and Mechanical 142 6 8 1 Physical Mounting e eet eie e quede 144 Appendix A Keypad Display Interface Expansion Kit 145 AJ iiti tem esse agerent recitato ite ie 146 Keypad Templates itr Perte Biete eite e Sies dis 147 A2 ECD DISPlays CE 150 2 1 25 lt 20 151 AL2 2 420 Character TC D iii tee tote e lesus 151 As3 EN 152 A 4 Configuring Key Code Indexes and Physical Keypad 0 156 A 4 1 Basics of Assigning Key Code Indexes 156 42 Expansion Kit Keypads eoe ttti tir e er EEr p co 158 A42 SIXA Keypad e beaten a etae 158 ASAD 2 2 6 Key id 3 soin roni n eom oen 159 A 4 2 3 4x 10 Keypad ide Pun qe Dil 160 AS 2x 6 Keypad interpre rte tee eee reote breites 161 A 6 3x 4 Keypad Datasheet eee 162 A 4x10 Keypad Datasheet aie t o FUHR THERE E GERE PUERUM IR
3. 100 4 6 2 Physical Mounting sis nne Pere e ERRARE RR Ete Te Y 102 Chapter 5 Relay Card 103 221 E ELE 104 Dil L SoftWare d E 104 2 2 855 eee etre roe s eee oco eR ERU TEE 105 5 2 1 PowersSupply trennen pite tete petere tee i peru lo 106 2 9 PINOUE esee RO E A G RIPE CUN HU ESPERE a 108 5 3 1 EASES ccrte A Ae RR PDC ELM 108 53 2 Indi ator i LEDS eei H E Em 108 SA Relay Outputs coat e EO eee tegere petet eI Te E eet Ritter 109 MIO CIC C 110 5 5 Dynamic C Libraries sia ee ee a RSO 110 5 5 2 Sample Programs oie en edite e EN cree ORE REESE MERE 110 5 5 3 Relay Card Function Calls ms snin nn tran nee nemen nete entere ene 112 2 24 Status Byte eee ne eG DH Dep ire it Pet pote reis 115 RabbitNet Peripheral Cards 5 6 5 A ee Aa ees 116 5 6 1 Electrical and Mechanical Specifications 116 5 6 2 Physical pet e IP van he e eere ero ite 118 Chapter 6 Keypad Display Interface 119 6 T Features eR L ERR ERE DI eee Hes 120 SOPWate eite etel eie
4. 26 2 3 1 Single Ended e 27 2 5 2 Differential Inputs eiie 27 2 5 3 Calibrating the Analog nnne nter nennen nene 27 2 5 3 1 Calibration Constants i ssir e Aces Geeta cds aaron note ae ieee 28 2 5 3 2 Calibration Recommendations essen ener en enne entree 28 2 5 3 9 titer HERE Rt eie eve 29 MONIO 30 26 21 Dynamic C Libraries mop Ea EEI Ia pest Fa 30 2 0 2 Sample silusizisz razzist 30 2 6 2 30 2 6 2 2 Analog Inputs otiose rto UHR e ERR ER eben 32 2 6 3 Digital O Card Function Calls eret eene bee etur rente SSB ENE been Od 34 2 6 3 1 Digital Input Function Calls eeseesseceneecseceeneceseeesaecenceceececsaeeeeeeaecesaeceeeceaeeeneeeaters 34 2 6 3 2 Digital Output Function Calls 35 2 6 3 3 Analog Input Function Calls eese nere enne enne nere nennen 37 20 4 Status Byte 44 2 7 SpeeifICatlols cuoi rer e e kd pe ge HERR EEUU dete oben 45 2 7 1 Electrical and Mechanical Specifications 0202
5. 4 1 3 Interface Pin 5 1 4 Power Supply for LCD Module sse 6 1 5 Block Diagram with Display RAM Address and Initialization Table 7 1 46 a eee keta ena 8 2 edgup RUnome 9 2 1 Electro optical Characteristics 0 2 22222044402 4 9 VOIE i 9 3 Mechanical rq 11 3 1 Mechanical Specification 0 00 2022 00000 000000000000 11 3 2 Mecnanical DIada lt 12 3 3 Back light Specification 13 3 4 Packing Method EP PR 14 4 Quality i naina ea aaar aia 15 4 1 Specification of Quality 15 4 2 Standard Specification for Reliabilitv 22 4 3 Precautions in Use 2004 0 000 00 24 Reference Data Sitronix ST7066U 0A amp ST7063 Specifications Ss WM C2002M 1GLYd 3 24 166 RabbitNet Peripheral Cards WINTEK 1 Electronic Units 1 1 Absolute Maximum Ratings ewe m mm me X STORAGE TEMPERATURE Ta c 70 4145
6. 1 1 1 2 RabbitNet Peripheral Cards naui 2 1 1 3 Connectivity Tools M 3 1 14 DIN Mounting iii i aa ER TE Pn 4 1 2 Physical Implementation nee nennen ner AO EEEE EEE kea 5 IPAE eni EUREIOUDUPEEER DER 5 1 3 Dynamic C pass M 6 3 1 ana E OEE ENE EEEE EEEE ERTEN 6 1 3 1 1 Accessing and Downloading Dynamic C Libraries seren 7 1 3 2 Sample 2200 8 1 3 3 General RabbitNet Operation nn 8 1 3 4 General RabbitNet Function 9 1 3 5 Status Byte eeepc atari OE 15 Chapter 2 Digital I O Card 17 PANT cc E xc 18 2AT SG WATE M 18 2 2 COMMECTIONS P 19 2 2 1 Power Supply escrir eioen ao E e EE E EA AE EA ie RE Reb 20 pu 22 23 11 Headers M EE 22 PAPIER 22 24 Digital soiree tese eene ote ti tette Dor Pag 23 DAM Digital Inputs eec ete a tette toe es 23 24 2 Digital NCC X 24 PAP Unam ss g
7. 122 JP1 Figure 16 Location of Digital I O Card Configurable Positions 48 RabbitNet Peripheral Cards Table 4 lists the configuration options Standard pluggable jumpers are used A o 5 Table 4 Digital IO Card Jumper Configurations Factorv Header Description Pins Connected Default l 2 Pulled up to 5 V x 1 1 IN16 IN23 3 4 Pulled up to DCIN 5 6 Pulled up to K2 7 8 Pulled down 1 2 Pulled up to 5 V x JP2 INOS IN15 3 4 Pulled up to DCIN 5 6 Pulled up to K1 7 8 Pulled down 1 2 Pulled up to 5 V x JP3 IN00 INO7 3 4 Pulled up to DCIN 5 6 Pulled up to K1 7 8 Pulled down User s Manual 49 50 RabbitNet Peripheral Cards 3 A D CONVERTER CARD Chapter 3 describes the features and the use of the A D Con verter Card one of the peripheral cards designed for use with the RabbitNet expansion ports on selected Rabbit Semiconductor single board computers operator interfaces and RabbitCore Prototyping Boards Figure 17 shows a conceptual view of the A D Converter Card connected to a master RabbitNet LAN A D Converter MASTER Card SLAVE ANALOG a INPUTS Rabbit 3000 Microprocessor Figure 17 A D Converter Card Slave Connected to Master NOTE The OP7200 master and the RabbitCore Prototyping Boards do not supply any powe
8. Figure 11 Digital I O Card Digital Outputs 24 RabbitNet Peripheral Cards 00 07 powered by to and OUTO8 OUT15 are powered by 2 K1 and K2 can each be up to 36 V and should be able to supply up to 1 6 A K1 and K2 don t have to be same The actual voltage depends on the requirements of the loads you plan to connect to the digital outputs A G o Q 5 a All the sinking or sourcing current which could be up to 1 6 A per bank of outputs is returned K1 K2 through the GND pins Be sure to use a suitably A sized GND as explained in Section 2 2 1 and d 7 keep the distance to the power supply as short as possible LOAD A 1 For bridge which is shown Figure 12 K1 and K2 should be the same if two digital outputs used for the H bridge are on different banks Figure 12 H Bridge User s Manual 25 2 5 Analog Inputs The microprocessor on the Digital I O Card has four 10 bit A D converter channels Each channel is identical and can convert a range of voltages between 0 V and Vcc where Vcc is the 5 V reference that powers the microprocessor These four channels are configured as follows on the Digital I O Card e 2 buffered channels 0 10 V raw input voltage range single ended e buffered channel 0 1 V raw input voltage range single ended e 1 buffered channel 0 25 0 25 V raw
9. User s Manual 147 1600 3 x 4 Keypad 1 4 7 OI N on e INSERT THIS SIDE e 148 RabbitNet Peripheral Cards 25 LE ae x o92 s Ec oot lt gt 0 2 AXI MAI A S M O d O N W 1 M lalallala 0 6 8 719 4 21 1600 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 select connectors from the Expansion Kit that will be convenient for your testing J4 ONINAVXDOMA 40 BOOOO kl er E E Eg ar at m 9 GHAZ WOOT XNV IHON a DI 000000000000000 di anny ALIALOY xovg ave qoos Figure A 2 Connecting Displavs to Kevpad Displav Interface Headers J4 and J5 150 RabbitNet Peripheral Cards A 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 d
10. gt oO lt Mode Single Ended mA Differential Gain 1 2 45 8 10 16 20 4 1 24 5 8 10 16 20 Input 5 Nu For the single ended mode there are calibration constants for each channel and for each of its gains for a total of 64 sets of calibration constants The 4 20 mA mode covers 4 20 mA actually 0 25 mA currents Separate calibration and read back routines are provided for this Since only one range of current measurement is provided these routines use only one gain 4 One set of calibration constants is provided for each of the eight input channels The differential mode routines use a pair of input channels to make measurements In this case calibration constants are stored for each pair of channels and for each of the eight gains for a total of 32 sets of calibration constants When a calibration is performed it fills in one of the squares in the table with a set of cal ibration constants representing the corresponding mode channel and gain These con stants are stored in flash memory on the A D Converter Card and are thus maintained even when power is been removed from the A D Converter Card Note that calibration constants are stored for each of the modes Since A D converter read routines select the appropriate calibration constants based on the mode it is possible for
11. 1600 ZMENU C 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 Expansion Kit are used with this program All 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 of the 2 x 6 keypad to pin 1 of the Keypad Display interface header J6 as shown in Figure A 1 The 2 x 6 keypad character assignment is as follows U ES LI R IC 1 D P 1 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 152 RabbitNet Peripheral Cards 2 Connect the 4 x 20 display to h
12. 290 22555555 5 NEIN MESO Figure 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 146 RabbitNet Peripheral Cards Two of the keypads supplied with the kit use 10 pin connectors and the third keypad uses a 13 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 A 2 Keypads Used In Sample Programs Keypad Sample Program 3x4 PONG C 2x6 ALPHANUM C 4x10 KEYBASIC C A 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 A A B v CD E INSERT THIS SIDE
13. 90 DAC CAL C 9 DAC READ CAL 91 DAC 91 Digital I O Card 30 A D converter inputs AIN_CALDIFF_CH C 28 32 28 32 AIN RDSE CH C 28 33 AIN SAMPLE C 33 196 RabbitNet Peripheral Cards sample programs Digital I O Card continued digital I O DIGBANKIN C 30 DIGIN C 31 DIGOUT C 32 RabbitNet Keypad Display interface 128 ALPHANUM C 128 147 151 BUZZER C 128 KEYBASIC C 129 147 LCDBASIC C 129 151 PONG C 129 147 151 ZMENU C 129 152 RabbitNet operation 8 8 ECHOTERM C 8 HWATCHDOG C 8 SWATCHDOG C 8 Relay Card 110 RELAY ALL 110 RELAY LOW PWR C 111 RELAY SEQUENCE C isi bee decipi es 111 software 18 52 84 104 120 downloading RabbitNet libraries 7 libraries 6 A D Converter Card 62 D A Converter Card 90 Digital I O Card 30 RabbitNet Keypad Display interface 128 Relay Card 110 RN BL26 LIB 6 RNET AIN LIB 30 62 AOUT LIB 90 DIO LIB 30 KEYIF LIB 128 R
14. A G LI o LI gt oO a a NOTE This sample program must be compiled to flash e DAC CAL C This program demonstrates how to recalibrate a D A converter channel using two known voltages and defines the two coefficients gain and offset that will be rewritten into the D A Converter Card s EEPROM simulated in flash memory This program will first look for a device using rn_find and the product RN1300 as the search criteria and will use the first D A Converter Card found Before you run this sample program make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range you will be selecting Connect a voltmeter to the output channel DACO DAC7 you are going to be using then compile and run this program You will prompted with additional instruc tions via the Dynamic C STDIO window during the execution of this sample program NOTE The calibration constants set at the factory will be overwritten when you run this sample program e DAC READ CALDATA C Dumps the calibration data for all the D A converter channels The calibration gain factor offset values and mode of operation will be displayed for each channel via the Dynamic C STDIO window User s Manual 91 4 5 3 D A Converter Card Function Calls Configures the D A Converter Card to the desired voltage range Once the D A Converter Card has been con
15. Bo 2 24 23 22 18 17 16 14 13 12 11 10 9 8 7 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 The shaded blocks describe how key code indexes are arrived at using strobe and data pins in a 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 to 0 8 16 24 Pin 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 157 1600 A 4 2 Expansion Kit Keypads A 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
16. 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 zn device or rn_find to estab lish the handle ledis the LED to control Use 0 for Microprocessor Bad LED onOf f 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 User s Manual 131 1600 6 6 3 3 The functions used to control the keypad are contained in 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 or rn_find to estab lish the handle iobits is a 16 bit number that consists of 175 for outputs and 07 for inputs Each bit represent
17. S WE us rome 5 Crete Pret m mu DB0 DB7 psy LA wa WRITE DATA FROM MPU TO MODULE READ DATA FROM MODULE TO MPU User s Manual 189 1600 1 64 ms 0 5 Execution Time max ipti hen f f i ant EFFEFEEEES nelli ih Clear Clears entire display and sets DD RAM address 0 in address 1 64 ms Display counter address counter Also returns display being shifted to original position DD RAM contents Sets cursor move direction and Entry Mode Hm specifies shift of display These id ug Set operations are performed during data write and read Display Sets ON OFF of entire display On Off 1 C D Cursor ON OFF C and 40 us blink of cursor position character Control B Moves cursor amp shifts display Cursor oF sic RIL without changing DD RAM 40 us Display Shift contents Set CG Sets CG RAM address CG RA RAM data is sent and received after 40 us Address this setting Set DD Sets DD RAM address CG RAM RAM data is sent and received after 40 us Address this setting Reads Busy flag BF indicating performed and reads address counter contents Write Data Writes data into DD RAM or to CG or DD Write Data 40 us CG RAM RAM 1 Increment DD RAM Display data Execution time 0 Decrement CG RAM Character generator changes when 1 Acc
18. Z3 81 switching threshold 23 jumper locations 81 D digital outputs 24 Digital Card 49 inki ing 24 igital i D A Converter Card sinking sourcing digital inputs 49 power supplies 19 JP1 RS 485 bias and termi connection to master 85 sample programs 30 nation resistors 49 D A converter outputs 88 i asenelisenons uo data ke dimensions jumper locations 48 2 Be 89 A D Converter Card 78 Keypad Display interface 89 D A Converter Card 100 jumper locations 126 Digital I O Card 45 calibration constants 89 Ll Keypad Display interface 142 power limits 88 Relay Card 116 AR GARA User s Manual 195 K Digital I O Card 25 Keypad Display Interface Ex pansion Kit datasheets 2 x 20 character LCD 164 2 x 6 keypad 161 3x4 keypad 162 4 x 10 keypad 163 4 x 20 character LCD 188 keypad connections 146 LCD connections 150 2 x 20 character LCD 151 4 x 20 character LCD 151 templates 2 x 6 keypad 147 3x4 keypad 148 4 x 10 keypad 149 P peripheral cards connection to master 1 2 physical mounting A D Converte
19. x Chip length 25102 12 lt 2524 Not exceed 1 3k CIf there are 2 or more chips x is the total length of each chip 6 1 2 Corner crack _ 2 2 Chip thickness y Chip width x Chip length 25102 1 2t lt z lt 2t Not exceed 1 3k If there are 2 or more chips x is the total length of each chip WM C2002M 1GLYd 18 24 User s Manual 181 1600 06 Symbols x Chip length Chip width 2 Chip thickness Seal width t Glass thickness a LCD side length L Electrode pad length 6 2 Protrusion over terminal 6 2 1 Chip on electrode pad y Chip width Chip length 2 Chip thickness 6 2 2 Non conductive portion Glass crack Chip width x Chip length 2 Chip thickness lf the chipped area touches the ITO terminal over 2 3 of the ITO must remain and be inspected according to electrode terminal specifications Olf the product will be heat sealed by the customer the alignment mark must not be damaged 6 2 3 Substrate protuberance and internal crack width x length 1 31 WM C2002M 1GLYd 19 24 182 RabbitNet Peripheral Cards M ws 07 Cracked glass The LCD with extensive crack is not acceptable 8 1 Illumination source flickers when lit 0 65 Backlight 8 2 Spots or scratches that appear when lit must be judged 2 5 elements using LCD spot lines and contamination standards 8 3 Backlig
20. 112 RabbitNet Peripheral Cards Sets the state of all the relays with the given bitwise control value Connects the relay common contact to either the relay normally closed contact or to the relay normally open contact PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle control establishes the bitwise control of Relays 0 5 The bit positions 0 5 correspond directly to Relays 0 5 with the bit value controlling the relay as follows 0 common connected to normally closed contact 1 common connected to normally open contact 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 Relay Card is not connected to the master SEE ALSO rnRelayPwr rnRelay EXAMPLE rn RelayAll handle 0x05 0 Sets the relays to have the following connections Relay0 Common connected to Normally Open contact Relayl Common connected to Normally Closed contact Relay2 Common connected to Normally Open contact Relay3 Common connected to Normally Closed contact Relay4 Common connected to Normally Closed contact Relay5 Common connected to Normally Closed contact ke L G gt 49 oc User s Manual 113 RN1400 Sets the specified relays to be in a power reduction save mode The power save mode is activated after the relay has been active for at least 50 ms a
21. 20 V DC differential Ke A G E gt oO lt RabbitNet Serial Port RS 422 SPI 1 Mbits s Power 5 V DC 100 mA Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Friction lock connectors one polarized 9 position terminals with 0 1 pitch Somes one 4 position terminal with 0 156 pitch One RJ 45 RabbitNet jack Board Size 1 97 x 3 94 x 0 67 50 mm x 100 mm x 17 mm User s Manual 79 3 6 2 Physical Mounting Figure 25 shows position information to assist with interfacing other boards with the A D Converter Card E 3 375 85 7 1 000 25 4 86 TIN sal 88 Figure 25 User Board Footprint for A D Converter Card RabbitNet Peripheral Cards 80 3 7 Jumper Configurations Figure 26 shows the header and jumper locations used to configure the various A D Con verter Card options Ke A G o LI D gt m m a Figure 26 Location of A D Converter Card Configurable Positions Table 8 lists the configuration options Standard pluggable jumpers are used Table 8 A D Converter Card Jumper Configurations ae Factory Header Description Pins Connected Default 1 2 Connect for 4 20 mA option on AINO n c 3 4 Connect for 4 20 mA option on AIN1 n c JP1 Analog Voltage 4 20 mA O
22. Keypad Display Interface RabbitNet Peripheral Cards RabbitNet LAN Cards User s Manual 019 0146 070629 D RabbitNet Peripheral Cards User s Manual Part Number 019 0146 07029 D e Printed in U S A 2005 2007 Rabbit Semiconductor Inc All rights reserved No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permission of Rabbit Semiconductor Permission is granted to make one or more copies as long as the copyright page contained therein is included These copies of the manuals may not be let or sold for any reason without the express written permission of Rabbit Semiconductor Rabbit Semiconductor reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Dynamic C are registered trademarks of Rabbit Semiconductor Inc RabbitNet is a trademark of Rabbit Semiconductor Inc The latest revision of this manual is available on the Rabbit Semiconductor Web site www rabbit com for free unregistered download Rabbit Semiconductor Inc www rabbit com RabbitNet Peripheral Cards TABLE OF CONTENTS Chapter 1 The RabbitNet Protocol 1 1 1 General RabbitNet EErEE EEE E EEEE EEEE 1 1 11 5
23. sound for specified time intervals or to provide an audible click when a keypress occurs These function calls are provided in the KEXIF LIB library Turns the buzzer on or off This function will override any setting by rn_keyBuzzerAct Calling rn kevBuzzer does not affect the keypress buzzer setting PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle onO f 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 Display 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 Call ing rn kevBuzzeraAct does not affect the keypress buzzer setting PARAMETERS handle is an address index to device information Use zn device orrn find to estab lish the handle period is the length of time the buzzer will be activated Select 165535 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 Display interface is not connected to the master SEE ALSO rn keyBuzzer 130 RabbitNet Peripheral Cards 6 6 3 2 LEDs The functions used to control any LEDs are contained in
24. 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector 2 RabbitNet Peripheral Cards e D A Converter Card 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 e 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 e Relay Card relays rated at 250 V AC 1200 or 100 V DC up to 240 W The following connectors used Relay contacts screw terminal connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector The OP7200 operator interface may serve as a RabbitNet peripheral card display in a RabbitNet system Visit our 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 1 1 3 Connectivity Tools Rabbit Semiconductor also has available additional tools and parts to allow you to make your own wiring assemblies to interface with the friction lock connectors the Rabbit Net peripheral cards e Conn
25. 0 25 0 25 V differential RabbitNet Serial Port RS 422 1 Mbits s 5 V DC 20 mA Power DCIN 9 32 V DC 12 V min if using analog inputs 500 mW K1 K2 5 36 V DC 1 6 A each Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Friction lock connectors six polarized 9 position terminals with 0 1 pitch Connectors two 2 position power terminals with 0 156 pitch one 4 position terminal with 0 156 pitch One RJ 45 RabbitNet jack Board Size 3 55 x 3 95 x 0 67 90 mm x 100 mm x 17 mm 46 RabbitNet Peripheral Cards 2 7 1 1 Physical Mounting A G o Q 5 5 a Figure 15 shows position information to assist with interfacing other boards with the Digital I O Card 3 500 88 9 B 3 100 ol 78 7 0 025 0 800 0 6 20 3 i ee Ae of Og OL to Eb e E P 2 J9 2 J8 Qu OO o J6 uS 8558 1 BENE J4 Ji Y J3 J2 g Y 0 315 8 0 _0750_ 19 0 E 1 850 NI 47 0 B 3 000 76 2 Figure 15 User Board Footprint for Digital I O Card User s Manual 47 2 7 2 Jumper Configurations Figure 16 shows the header and jumper locations used to configure the various Digital I O Card options JP3
26. AIN3 AIN3 4 AIN4 AIN4 AINS AIN4 5 AINS AINS 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 These channels need to be configured for current measurements as explained in Section 3 4 1 opmode is the mode of operation for the specified channel RNS INGLE single ended input line RNDIFF differential input line RNmAMP 4 20 mA input line gaincode is the gain code of 0 to 7 use a gain code of 4 for 4 20 mA operation Voltage Range Gain Code Multiplier Single Ended Differential 0 0 20 V 20V 1 x2 0 10 V 10V 2 x4 0 5 V 5V 3 x5 0 4 V 4V 4 x8 0 2 5 V 2 5 5 x10 0 2 2V 6 x16 0 1 25 V 1 25 V 7 x20 0 1 V 1V rn AinData adata isa pointer to the structure where the calibration constants gain and offset are written to after being calculated reserved is reserved for future use Set to 0 User s Manual 75 A G o LI gt o a RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn analInWrCalib rn anaInCalib 76 RabbitNet Peripheral Cards 3 5 4 Status Byte Section 1 3 5 provides information on the status bytes returned by various function calls Ke G E gt o
27. RETURN VALUE 0 if successful if not able to make calibration constants SEE ALSO rn anaInWrCalib User s Manual 41 G o 5 1100 Writes the calibration constants gain and offset previously calculated by rn_anaInCalib into the analog device flash memory A hardware reset reset and a read reset register rn __ rst status must be issued after this function is called NOTE Typical calibration constants are loaded at the factory This function should be used when you need more precise calibration or recalibration or the calibration constants were corrupted in the device PARAMETERS handle is an address index to device information Use zn device orrn to estab lish the handle channel is the channel number 0 to3 Channel Single Ended Differential 0 AINOO 1 AINOI 2 AINO2 3 AINO3 opmode is not used Set to 0 gaincode is the gain code Use 0 for the Digital I O Card rn AinData adata isa structure pointer to where the calibration constants gain and offset values are to be written after being calculated reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn_anaInRdCalib rn_anaInCalib 42 Ra
28. amp Spikes Figure 10 RN1100 Digital Input Protected Range User s Manual 23 2 4 2 Digital Outputs The Digital I O Card has 16 digital outputs OUTOO OUT15 which can each sink or source up to 200 mA Figure 11 shows a wiring diagram for using the digital outputs in a sinking or a souring configuration The rn digoutConfig function call simultaneously configures all the output chan nels to a safe state on power up for sinking or sourcing outputs by setting the channels to a high impedance The safe state is considered to be all zeros a disabled state for sourcing outputs All the digital outputs sink and source actively They can be used as high side drivers low side drivers or as an H bridge driver When the Digital I O Card is first powered up or reset all the outputs are disabled that is at a high impedance status until the rn _ digOutConfig software function call is made The digoutConfig call sets the initial state of each digital output according to the configuration specified by the user and enables the digital outputs to their initial status SINKING OUTPUT K1 or K2 L D REF OUTPUT 00 15 External Supply ate il FA SOURCING OUTPUT K1 or K2 External Power Supply D REF 100 15 LOAD E GN
29. disposition of nonconforming when the reason of nonconforming is not sure WM C2002M 1GLYd 15 24 178 RabbitNet Peripheral Cards 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 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 WM C2002M 1GLYd 16 24 User s Manual 179 1600 6 Inspection specification Criterion AQL 1 1 Missing vertical horizontal segment segment contr
30. power terminal poss pos 7 Relav Card LU 6 kf 8 gt Straight through amp CAT 5 6 Ethernet cable Figure 35 Connect Relay Card to Master You will also have to provide a separate 5 V DC power supply to your Relay Card This power supply is connected via the polarized friction lock terminal at header J7 You may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 3 If you are using a BL2500 as your master you may draw this power from the BL2500 as shown in Figure 35 See Section 5 2 1 for detailed wiring diagrams 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 User s Manual 105 RN1400 5 2 1 Power Supply Figure 36 illustrates the assembled friction lock connector wiring diagram for the power supplies used to supply power to the Relay Card DCIN 5 V If you are not drawing power from the master connect the Z grounds of the two power supplies together at the power supplies Figure 36 Power Supply Connections NOTE The DCIN connection on 1 is not used Only the 5 DC and ground power supply connections are needed as shown NOTE If you are using a separate DC power supply for 5 V to the Relay Card because you are not drawing this power from the master note that the crimp pins used in the friction
31. tary calibration on the A D Converter Card The factory performs a single ended calibra tion on each of the eight channels with a gain of 1 0 20 V range The remaining single ended calibration constants for the other seven gains are approximated and are filled in based on the initial calibration The milli amp and differential portions of the table are filled in using typical expected values All read routines will work properly with these fac tory initialized calibration constants but only the single ended mode should be expected to return accurate results over a range of 0 20 V until you recalibrate the A D Converter Card for your use Sample programs are provided to illustrate how to read and calibrate the various A D inputs Mode Read Calibrate Single Ended one channel AIN RDSE CH C AIN CALSE CH C Single Ended all channels AIN CALSE ALL C 4 20 mA Current AIN RDMA AIN Differential AIN RDDIFF CH C AIN CALDIFF CH C These sample programs are found in the in the SAMPLES RABBITNET RN1200 directory See Section 3 5 2 Sample Programs for more information on these sample programs and how to use them User s Manual 61 Ke A G E gt oO lt 3 5 Software This section provides the libraries function calls and sample programs related to the A D Converter Card 3 5 1 Dynamic Libraries In addition to the
32. 1 5 Block Diagram with Display RAM Address and Initialization Table LCD PANEL 100 16DOTS 123 4 5 6 7 8 9 10 1112 13 14 15 16 17 18 19 20 poe por espo on re octo or oTi 273 cows 2XPAD 63 PAD D CLI 2 M GND 54 PAD ST7066U 0A Bee ees cee ashe ates sashes ec eS 225 22 6525228 eens VSSVDD VO RS E 7 LED Relation between DD RAM addresses positions on the 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 dots format display mode a WM C2002M 1GLVd 7 24 170 RabbitNet Peripheral Cards 1 6 CGROM Map NO a 0 Tr eg lol Me C go HAHHA elo me HSEUEu 247160 EME ean AEE rot EHEH mese me mee elol epe n H BB WM C2002M 1GLYd 8 24 User s Manual 171 1600 2 Electro optical Units 2 1 Electro optical Characteristics ITEM SYMBOL CONDITION MIN TYP MAX UNIT VIEW ANGLE V 9 CR22 40 40 deg VIEW ANGLE H CR22 40 40 deg CONTRAST RATI
33. 1 means that device information indicates the Keypad Dis play interface is not connected to the master SEE ALSO rn dispPutc rn dispData 138 RabbitNet Peripheral Cards Puts character on the display and will automatically increment to next cursor position line wrap PARAMETERS handle is an address index to device information Use zn device or rn_find to 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 zn device orrn find to 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 User s Manual 139 1600 This function is low level routine to send command to the display control register PARAMETERS handle is an address index to device information Use zn or rn_find to esta
34. 29 59 463 Length of DIN rail tray in cm NOTE Other major suppliers besides Phoenix Contact also offer DIN rail mounting hard ware Note that the width of the plastic tray should be 100 mm 3 95 since that is the width of a RabbitNet peripheral card 108 mm plastic trays may be used with spacers 4 RabbitNet Peripheral Cards 1 2 Physical Implementation There are four signaling functions associated with a RabbitNet connection From the mas ter s point of view the transmit function carries information and commands to the periph eral 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 Rabbit Semiconductor recommends a practical limit of 10 m 33 ft Connections between peripheral cards and masters are done using standard 8 conductor CAT 5 6 Ethernet cables Masters and peri
35. 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 158 RabbitNet Peripheral Cards A 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 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 159 1600 4 2 3 4 x 10 Keypad The physical arrangement of the keys has a different arrangement of key code indexing Because of the manufacturer s design the physical arrangement of key indexes will have the following arrangement 32 133 24 25 16 17 8 9 36 39 28 31 20 23 12 15 0 34 35 26 27 18 19 10 11 2 3 4 6 38 37 30 29 22 21 14 13 The 4 x 10 key code indexing is still derived in the same way as the other two keypads Although the diag
36. 95 Calibrates the response of the desired analog output channel as a linear function using the two conversion points provided Values are calculated and the results are sent to the analog output device using the func tion anaOutWrCalib Each channel will have the following information linear constant or gain voltage offset NOTE Typical calibration constants are loaded at the factory This function should be used when you need more precise calibration or recalibration or the calibration constants in the device were corrupted PARAMETERS channel is the channel number 0 to 7 corresponding to AOUTO AOUT7 valuel is the first raw analog output value 0 4095 volts1 is the voltage corresponding to the first output value value2 is the second raw analog output value 0 4095 volts2 is the voltage corresponding to the second output value DacCal table is a pointer to a table structure that contains the calibration constants reserved is reserved for future use Set to 0 RETURN VALUE 0 if successful if not able to make calibration constants SEE ALSO rn anaOutWrCalib rn anaOutRdCalib 96 RabbitNet Peripheral Cards Writes the calibration constants gain and offset previously calculated by zn anaOutCalib into the device flash memory NOTE Typical calibration constants are loaded at the factory This function should be used when you need more precise calibration or recalibration or the calibration constants in th
37. 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 MENU ZMENU KEYPAD ZMENU BORDER NULL 20 4 0 0 3 ZMENU ITEM Toggle Backlight ZMENU FUNCTION zbacklight ZMENU ITEM Increment LEDs ZMENU SET INT amp ledState l ZMENU ITEM Turn Off LEDs ZMENU SET INT amp ledState 0 ZMENU ITEM GOTO DATA MENU ZMENU SUBMENU 1 ZMENU ITEM GOTO LOG MENU ZMENU SUBMENU 2 ZMENU END User s Manual 155 1600 A 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 pr
38. AOUT2 AOUT7 RabbitNet Serial Port RS 422 SPI 1 Mbits s 5 V DC 20 mA DCIN 9 32 V 100 mA Temperature 40 C to 85 C Humidity 5 to 95 noncondensing Friction lock connectors C one polarized 9 position terminals with 0 1 pitch onnectors one 4 position terminal with 0 156 pitch One RJ 45 RabbitNet jack Board Size 1 97 x 3 94 x 0 67 50 mm x 100 mm x 17 mm User s Manual 101 A LI LI gt oO lt m 4 6 2 Physical Mounting Figure 33 shows position information to assist with interfacing other boards with the D A Converter Card 3 375 1 000 25 4 85 7 0 100 2 5 J1 J2 1 150 29 2 Figure 33 User Board Footprint for D A Converter Card RabbitNet Peripheral Cards 102 5 RELAY CARD Chapter 5 describes the features and the use of the Relay Card one of the peripheral cards designed for use with the RabbitNet expansion ports on selected Rabbit Semiconductor single board computers operator interfaces and RabbitCore Prototyping Boards Figure 34 shows a conceptual view of the Relay Card connected to a master RabbitNet LAN MASTER L G gt m oc ee Rabbit 30009 Microprocessor Figure 34 Relay Card Slave Connected to Master NOTE The OP7200 master and the RabbitCore Prototyping Boards do not suppl
39. BL2500 for use with RabbitNet peripheral cards Function calls for this library are discussed in the Coyote BL2500 User s Manual e RN CFG BL26 LIB used to configure the BL2600 for use with RabbitNet peripheral cards Function calls for this library are discussed in the Wolf BL2600 User s Manual e RN CFG OP72 LIB used to configure the OP7200 for use with RabbitNet peripheral cards Function calls for this library are discussed in the eDisplay OP7200 User s Manual e RN PowerCoreFLEX LIB used to configure the PowerCore FLEX modules for use with RabbitNet peripheral boards on the PowerCore FLEX Prototyping Board Function calls for this library are discussed in the PowerCore FLEX User s Manual e RN CFG RCM33 LIB used to configure the RCM3300 RCM3310 RCM3360 and RCM3370 for use with RabbitNet peripheral boards on the RCM3300 Prototyping Board Function calls for this library are discussed in the RCM3300 RCM3310 User s Manual and in the RCM3360 RCM3370 User s Manual e RNET LIB provides functions unique to the RabbitNet protocol Function calls for this library are presented below e DRIVER LIB provides background functions unique to the RabbitNet data transmission protocol Function calls specific to individual RabbitNet peripheral cards are described in the chap ters specific to the individual RabbitNet peripheral card Other functions applicable to all devices based on Rabbit microprocess
40. D A Converter Card is a slave the master to which it is connected is programmed using version 8 01 or later of Rabbit Semiconductor s Dynamic C If you are using a BL2500 or an OP7200 as your master with an earlier version of Dynamic C Rabbit Semi conductor recommends that you upgrade your Dynamic C installation Contact your autho rized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information on Dynamic C upgrades 84 RabbitNet Peripheral Cards 4 2 Connections Use straight through CAT 5 6 Ethernet cable to connect the D A Converter Card s RJ 45 RabbitNet jack to a RabbitNet port on the master You may use either port if you are con necting to a master such as the BL2500 that has more than one RabbitNet port NOTE The RJ 45 RabbitNet jacks are serial I O ports for use with a master and a net work of peripheral boards The RabbitNet jacks do not support Ethernet connections Some masters have only one RabbitNet port and do not have a friction lock power terminal 7 Master Power supply cable D A Converter N 7 o a Lo VA AS Straight through O ie L7 Ae 5 5 6 Ethernet cable Figure 28 Connect D A Converter Card to Master You will also have to provide two separate DC power supplies to your D A Converter Card 5 V and a DCIN of 9 32 V These power supplies are connected via the polarized friction lock terminal at header J1 You
41. Sets the state of a digital output PARAMETERS handle is an address index to device information Use zn orrn find to estab lish the handle channel is the output channel number 0 to 15 senddata is the output data 1 set bit 0 reset bit 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 Digital I O Card is not connected to the master SEE ALSO rn digOutConfig rn digBankOut rn digIn User s Manual 35 1100 Writes the state of a block of designated digital output channels The first bank consists of channels 0 7 and the second bank consists of channels 8 15 PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle bank is the bank of digital output channels to write 0 for all the digital outputs 0 to 15 in both banks 1 for bank of digital outputs 0 to 7 2 for bank of digital outputs 8 to 15 senddata is 16 bit output value where each bit corresponds to one channel Channel 0 and channel 8 are considered the least significant bit O when using single bank access When accessing both banks channel 0 is the least significant bit 0 and channel 15 is the most significant bit 15 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 Digit
42. already comes from the master L G gt m oc User s Manual 107 RN1400 5 3 Pinout The Relay Card pinouts are shown in Figure 38 Power Relay 2 Relay 1 Relay 0 Supply e 2 B 22 o z o o gt z oda 8 o z 2 o z sos sos sees OOO J1 J2 J3 J7 RabbitNet cm DS3 DS7 DS6 T J6 J9 Ses 2 2 ST Micro 2 2 controller Program Relay 3 Relay 4 Relay 5 Port Figure 38 Relay Card Pinouts 5 3 1 Headers Relay Cards are equipped with six screw terminal headers J1 J6 a 1 x 4 friction lock terminal J7 DCIN and 5 V power supplies and an RJ 45 RabbitNet jack No header is installed at J9 which is used to program the Relay Card at the factory 5 3 2 Indicator LEDs An indicator LED DS7 located below the RabbitNet connector at J8 turns on when the Relay Card is powered up then goes off when the Relay Card has completed its initializa tion process and is running The LED will be on while the Relay Card is receiving a trans mission from the master Additional indicator LEDs 051 056 located near each relay will turn on while the cor responding relay Relay 1 Relay 6 is energized 108 RabbitNet Peripheral Cards 5 4 Relay Outputs The Relay Card has six SPDT relays each of which is rated to handle up to 250 V AC 1200 V A max 10 A or up to 30 V DC 240 W max
43. are being written If the D A Converter Card is set to the synchronous mode of operation all the D A converter outputs will be updated with the raw data values previously written or default value of zero when the rn_anaOutStrobe function is executed The voltage range of the D A converter outputs will be 0 10 V default or one of the other voltage range options previously set with the anaInConfig function Make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range g you will be selecting L A Configuration Voltage Ranges 2 Channels 0 1 Channels 2 7 0 0 2 5 V 0 10 V 8 1 0 5 0 10 V lt 2 0 10 V 0 10 V a 3 0 5 V 0 20 V 4 0 10 V 0 20 V 5 0 20 V 0 20 V Default setting after reset PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle channel is the channel number 0 to 7 corresponding to AOUTO AOUT7 rawdata is the raw data value 2 bytes reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the D A Converter Card is not connected to the master SEE ALSO rn_anaOutConfig rn_anaOutVolts rn_anaOutStrobe User s Manual 93 Sets analog output channel to a voltage
44. device information indicates the Digital I O Card is not connected to the master SEE ALSO rn anaInConfig rn anaIn rn anaInVolts 40 RabbitNet Peripheral Cards Calibrates the response of an analog input channel as a linear function using the two conversion points provided Four values are calculated and the results are sent later to the analog input device using the function anaInWrCalib Each channel will have the following information a linear constant or gain a voltage offset NOTE Typical calibration constants are loaded at the factory This function should be used when you need more precise calibration or recalibration or the calibration constants were corrupted in the device PARAMETERS channel is the channel number 0 to3 Channel Single Ended Differential 0 AINOO 1 AINOI 2 AINO2 3 AINO3 opmode is not used Set to 0 gaincode is the gain code Use 0 for the Digital I O Card valuel is the first raw data value read from the A D converter channel voltsl is the voltage corresponding to the first input value 0 to 10 V 0 to 1 V or 250 mV value2 is the second raw data value read from the A D converter channel volts2 is the voltage corresponding to the second input value 0 to 10 V 0 to 1 V or 250 mV rn AinData adataisa structure pointer to where the calibration constants gain and offset values are to be written after being calculated
45. gt m m a 3 2 1 Power Supply Figure 19 illustrates the assembled friction lock connector wiring diagram for the power supplies used to supply power to the A D Converter Card RABBIT NET Figure 19 Power Supply Connections 54 RabbitNet Peripheral Cards 3 3 Pinout The A D Converter Card pinouts are shown in Figure 20 g Power a Supply D E GND 5 AIN7 6 2 AINS RabbitNet ST Micro Ana Analog lt controller AIN3 Inputs Program AIN2 Port AIN1 AINO J3 82222 051 Figure 20 A D Converter Pinouts 3 3 1 Headers A D Converter Cards are equipped with one polarized 1 x 9 friction lock terminals at J4 a 1 x 4 friction lock terminal at J2 DCIN and 5 V power supplies and an RJ 45 RabbitNet jack No header is installed at J3 which is used to program the A D Converter Card at the factory 3 3 2 Indicator LED An indicator LED DS 1 located near the header J3 location turns on when the A D Converter Card is powered up then goes off when the A D Converter Card has completed its initial ization process and is running The LED will be on while the A D Converter Card is receiving a transmission from the master User s Manual 55 3 4 Analog Inputs The single A D converter used in the A D Converter Card has a resolution of 11 bits single ended mode or 12 bits differential
46. handle onOf f turns the display screen on or off 1 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 connected to the master SEE ALSO rn dispBacklight rn dispClear 136 RabbitNet Peripheral Cards 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 zn 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 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 Ke
47. handle retdata is a 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 Wirite 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 14 RabbitNet Peripheral Cards 1 3 5 Status Byte Unless otherwise specified functions returning a status byte will have the following format for each designated bit 7 6 5 00 Reserved 01 Ready x x 10 Busy 11 Device not connected 0 Device x 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 1 HW or SW watchdog timer expired Use the function zn comm status to determine which error occurred T Use the function zn rst status to determine which timer expired User s Manual 15 16 RabbitNet Peripheral Cards 2 DIGITAL I O CARD Chapter 2 describes the features and the use of the Digital I O Card one of the peripheral cards designed for use with the Rabbit Net expansion
48. input voltage range differential 0 10 V single ended 0 1 V single ended AIN 2 10 KQ ADC 025 V 0 25 V differential AIN 3 AIN 3 gt gt Figure 13 Digital I O Card Analog Inputs 26 RabbitNet Peripheral Cards 2 5 1 Single Ended Inputs There are three single ended A D converter inputs on the Digital I O Card A 5 V refer ence voltage is used for the single ended inputs Two single ended inputs that handle 0 10 V are filtered by a network of resistors and a capacitor The resistors form a 2 1 attenuator and the capacitor protects the A D converter input against electrostatic transients The input impedance is approximately 200 kQ The third single ended input handles 0 1 V and is filtered by a network of resistors and capacitor which stabilize the circuit against oscillation and electrostatic transients The op amp and feedback resistors form a x5 amplifier The input impedance is of the order of several megohms 2 5 2 Differential Inputs Differential measurements actually require two analog inputs As the name differential implies the difference in voltage between the two inputs is measured rather than the difference between the input and ground A 2 5 V reference voltage is used for the differential inputs to shift the center point of operation to 2 5 V The input impedance of eac
49. it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripheral card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL 2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC The SAMPLES RABBITNET RN1300 subdirectory contains the following sample pro grams When running these sample programs the D A Converter Card may be connected to either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports The sample program will use ind and the product RN1300 as the search criteria to first find any D A Converter Cards connected to the master The first D A Converter Card found will run the sample program e DAC ASYNC C This sample program outputs a voltage that can be read with a voltme ter The output voltage is calculated using the calibration constants located on the D A Converter Card EEPROM simulated in flash memory The D A Converter Card is set up for the asynchronous mode of operation which updates a D A converter output at the time it is being accessed via the anaOutVolts or anaOut functions i e the anaOutStrobe function is not used to update the D A converter outputs The sample program SYNC C illustrates the synchronous mode of operation Before you run this s
50. line as the basis to calculate calibration constants that will be used to adjust for the slope of the line and the offset from 0 0 The calibration routines typically use input voltage points that are 10 of the voltage range less than the maximum and 10 of the voltage range more than the minimum readings possible for the A D converter on any given range User s Manual 27 A o 5 When calibrating the A D converter its output depends the accuracy of the meter used to measure the voltage source used in the calibration process Therefore use the best digital voltmeter available that meets or exceeds the 10 bit accuracy of the A D converter chip 2 5 3 1 Calibration Constants The A D converter has four individual input channels available To get the best results form the A D converter it is necessary to calibrate each channel The following table pro vides a grid for each possible set of calibration constants Single Ended Differential Channel AINO AIN1 AIN2 AIN3 AIN3 Input When a calibration is performed it fills in one of the squares in the table with a set of cal ibration constants representing the corresponding channel These constants are stored in flash memory and are thus maintained even when power is been removed from the Digital Card The sample programs listed in the table below are provided to illustrate how to read and calibrate the
51. lock connector assembly can only hold one wire each Connect the one GND wire from the friction lock connector assembly to the ground on one of the two power supplies then use a separate wire to connect the power supply grounds together 106 RabbitNet Peripheral Cards Use 18 gauge AWG wire 1 mm for power supply connec tions up to 10 m away from the master or router If the wire length is less than 3 22 gauge AWG wire 0 4 mm is acceptable Do not daisy chain the power supply connections between different peripheral cards but use a star configura tion from the master or router when there are several periph eral cards Figure 37 Daisy Chain vs Star Configurations It is best to use a type of cable where the wires for the ground and positive s of any power supply are bound together or twisted and ideally the power supply wires should not be bun dled with other wires Large transient currents flow in the ground and positive supply wires when the relay output drivers are switched on off and it is imperative that any ground differential resulting from resistive or inductive loss in the ground wire be kept as low as possible lt 4 V Use the GND pin on header J7 on the Relay Card if you have separate power supplies Rabbit Semiconductor also recommends that you have a physical ground connection between the Relay Card and the master which you will have if the power to header J7 on the Relay Card
52. mechanical dimensions for the Relay Card EON IANO IHON ON OH WO OON H3MOd LI88VA ZION ZAWO an ia Il d i ES LBA E l Ooi amp y 8 o u we 8 eor v TA IER 03 T Dii DS3 42 oS eL je NUS NY 26 L a v w NOLS OM KS NG Ks CM K4 NC K4 No K5 CMK5 Y Y BT 0 2501 L 5 37 R 5 6 4 136 p 5 87 gt 150 Re 0 82 I 21 5 87 150 Figure 40 Relay Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 116 RabbitNet Peripheral Cards Table 10 lists the electrical mechanical and environmental specifications for the Relay Card Table 10 Relay Card Specifications Feature Specification Microprocessor ST72F264G Six SPDT relays with snubbers max contact settling time 10 ms max switching voltage 250 V AC 30 V DC Relay Outputs max switching current 10 A AC 8 A DC e max switching capability 1200 V A e snubbers built in 47 2 100 nF terminal wire gauge 14 AWG 1 628 mm dia max RabbitNet Serial Port RS 422 1 Mb
53. mode There are eight channels of A D conversion the differential mode uses two channels for each differential mode input Figure 21 shows a pair of A D converter input circuits Each A D converter input essen tially consists of resistors and a capacitor The resistors form 10 1 attenuator and the capacitor protects the A D converter input against electrostatic discharges y User Circuits A me 2 048 V gt AINO ANA e ADC G i G e gt 953 gt AIN1 AAA e is AGND ae Figure 21 A D Converter Inputs The A D converter chip can make either single ended or differential measurements depending on the value of the opmode parameter in the software function call which turns the appropriate MOSFETs on or off and configures the A D converter chip Adjacent A D converter inputs are paired when you make differential measurements For single ended conversions the A D converter chip works only with positive voltages for the ranges listed in Table 5 Table 5 Positive A D Converter Input Voltage Ranges i Amplifier Min Moo Max Ens mV per Tick 0 0 20 0 1 10 0 0 10 0 2 3 0 0 5 0 4 2 5 0 0 4 0 5 2 0 0 0 42 5 8 1 25 0 0 42 0 10 1 0 0 0 41 25 16 0 625 0 0 1 0 20 0 500 56 RabbitNet Peripheral Cards Many other possible ranges possible by physically changing the resistor
54. of the given A D converter channel gt 1 read given channel x times and average the readings taken reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the voltage input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn anaInConfig rn anaIn rn anaInmAmps rn anaInDiff 68 RabbitNet Peripheral Cards Reads the state of an analog input channel Set the sample parameter greater than one to average the ke readings G o PARAMETERS D handle is an address index to device information Use zn device or rn_find to estab T lish the handle 2 channel is the channel number 0 2 4 6 8 channel DIFF lt 0 2 AIN2 AIN3 4 AIN4 AINS 6 AIN6 AIN7 retdata is pointer to the voltage value if there is a data overflow or an out of range error the value will be set to 4096 as defined by the macro ADOVERFLOW sample is x number of samples 1 read current value of the given A D converter channel gt 1 read given channel x times and average the readings taken reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the voltage input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn anaInCo
55. power supply is set at O V and is turned off between one of the analog input channels GND with 500 02 resistor and an ammeter connected as shown in the diagram If you do not use the 500 Q resistor to simulate a 4 20 mA current source from a voltage swing of 0 10 V your power supply voltage output cannot exceed 2 0 V Ke A G o LI gt m m a Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supplv on and follow the prompts in the Dvnamic C STDIO window e CALSE ALL C Demonstrates how to recalibrate all the single ended A D con verter channels for one gain using two known voltages to generate constants for each chan nel that are rewritten into the A D Converter Card flash memorv A hardware reset will be issued to complete writes to flash memorv once the constants are written and the hardware watchdog will be set Before vou run this sample program make sure vour 0 10 V external power supplv is off and is set to 0 V Connect the power supply between one of the AINOO AINO 7 analog channels and GND Connect a voltmeter across the power supply connections Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window e CALSE CH C Demonstrates how to recalibrate one single end
56. 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 fully 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 127 1600 6 6 Software This section provides the libraries function calls sample programs related to the RabbitNet Keypad Display interface 6 6 1 Dynamic C Libraries In addition to the library associated with the master single board computer such as the BL2500 or OP7200 two other libraries are needed to provide function calls for the RabbitNet Keypad Display interface e KEYIF LIB provides function calls for the RabbitNet Keypad Display keypad interface These function calls are described this chapter e LCDIF LIB provides function calls for RabbitNet Keypad Display LCD display interface These function calls are described in this chapter Functions relevant to RabbitNet peripheral cards in general are described in Section 1 3 4 Other functions applicable to all devices based on Rabbit microprocessors are descri
57. software calls to move from one mode to another without recalibration 3 4 2 3 Calibration Recommendations It is imperative that you calibrate each of the A D converter inputs in the same manner as they are to be used in the application For example if you will be performing floating dif ferential measurements or differential measurements using a common analog ground then calibrate the A D converter in the corresponding manner The calibration table only holds calibration constants based on mode channel and gain Other factors affecting the cali bration must be taken into account by calibrating using the same method mode and gain setup as in the intended use It is not necessary to fill out the entire calibration table Only the entries associated with the modes channels and gains that you will be using are necessary This fact can be used to simplify and speed up the calibration process 60 RabbitNet Peripheral Cards Each calibration is normally done at 10 less than the maximum and 10 more than the minimum within a given voltage range defined by the mode channel and gain However if an application is known to use only portion of a particular range it is possible to obtain improved accuracy by using calibration points that are 10 less than the expected maxi mum and 10 greater than the expected minimum 3 4 2 4 Factory Calibration Because of the large number of possible calibrations the factory performs only a rudimen
58. the Dynamic C STDIO window A o 5 e AIN RDSE CH C Reads and displays the voltage and equivalent values of one single ended analog input channel Coefficients are read from the Digital I O Card The computed raw data and equivalent voltages will be displayed Before you run this sample program connect a 0 10 V power supply between analog input AINOO or AINO1 and GND Connect a second 0 1 V power supply between analog input AINO2 and GND Now compile and run the sample program Follow the prompts in the Dynamic C STDIO window AIN SAMPLE C Demonstrates how to use the A D driver on the single ended inputs The voltage average of 10 samples that is present on the A D channels will be displayed continuously Before you run this sample program connect 0 10 V power supply and a voltmeter between the analog input and GND of the analog input channel you will be using The analog input voltage range can be 0 10 V for AINOO and AINOI 0 1 V for AINO2 and 0 25 V for AINO3 Now power up the master and the Digital I O Card and compile and run the sample program Vary the voltage from the power supply over the design range for the channel you are using and observe the voltmeter reading and the reading displayed in the Dynamic C STDIO window User s Manual 33 1100 2 6 3 Digital I O Card Function Calls 2 6 3 1 Digital Input Function Calls Reads the undeglitched or raw data state of the sele
59. the upper left corner Call this function before invoking anv displav operations This function mav be altered to suit vour dis plav tvpe Remember to check vour displav specifications to match the connector pinouts PARAMETERS handle is an address index to device information Use zn device or rn_find to 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 User s Manual 135 1600 Turns the display backlight or off This is not supported on some LCDs or vacuum fluorescent dis plays PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle onOf f turns the backlight on or off 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 orrn find toestab lish the
60. to AOUTO AOUT7 voltage is the desired output voltage which must be less than or equal to the maximum voltage in the voltage range specified by the anaInConfig function rn dacCalTable tables isa pointer to a table structure that contains the calibration constants for channels 0 7 for the selected mode reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the voltage input data 1 means that device information indicates the D A Converter Card is not connected to the master SEE ALSO rn anaOutConfig rn anaOut rn anaOutStrobe RabbitNet Peripheral Cards Strobes the D A Converter Card to update all the D A converter outputs with the raw data values previ ously written or a default value of zero NOTE This function is only valid if the D A Converter Card is set to the synchronous mode of operation using the rn_anaOutConfig function call PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the voltage input data 1 means that device information indicates the D A Converter Card is not connected to the master SEE ALSO rn anaOutConfig rn anaOut rn anaOutVolts Ke A G oO o LI gt o a a User s Manual
61. to device information Use rn_device orrn find to 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 User s Manual 11 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 rn_device orrn find to establish the handle resettype describes the type of reset 0 hard reset equivalent to power up All logic 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 enabl
62. use of the corre sponding Dynamic C libraries For example the sample program PONG C demonstrates the output to the STDIO window To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripheral card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC 2 6 2 1 Digital I O The SAMPLES RABBITNET RN1100 DIO subdirectory contains the following sample programs When running these sample programs the Digital I O Card may be connected to either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports The sample program will use rn_find and the product RN1100 as the search criteria to first find any Digital I O Cards connected to the master The first Digital I O Card found will run the sample program DIGBANKIN C Demonstrates the use of the digital inputs by using the Demonstration Board to read a bank of input channels while an individual channel is toggled from high to low by pressing a pushbutton switch on the Demonstration Board Before you run this sample program connect K1 and GND on connector J4 of the Digital card to an external 5 V power supply Make sure the digital inpu
63. values that make up the attenuator circuit Differential measurements require two channels As the name differential implies the dif ference in voltage between the two adjacent channels is measured rather than the differ ence between the input and analog ground Voltage measurements taken in the differential mode have a resolution of 12 bits with the 12th bit indicating whether the difference is positive or negative When using the differential mode the input can be either positive or negative but do not exceed the maximum range by more than 20 If a device such as a battery is connected across two channels for a differential measurement and it is not referenced to analog ground then the current from the device will flow through both sets of attenuator resistors as shown in Figure 22 This will generate a negative voltage at one of the inputs ADCI which will almost cer tainly lead to inaccurate A D conversions To allow for such differential measurements the A D Converter Card uses a 2 048 V reference voltage This allows input voltages that are negative with respect to analog ground Table 6 provides the differential voltage ranges for this setup Figure 22 Current Flow from Ungrounded or Floating Source Table 6 Differential Voltage Ranges Min Differential Max Differential Amplifier Voltage Voltage mV Tick Gain 0 20 0 10 0 10 0
64. various A D inputs Mode Read Calibrate Single Ended one channel AIN RDSE CH C AIN CALSE CH C Differential analog ground AIN RDDIFF CALDIFF CH C These sample programs are found in the AIN subdirectory in SAMPLES RABBITNET RN1100 ADC See Section 2 6 2 Sample Programs for more information on these sample programs and how to use them 2 5 3 2 Calibration Recommendations Calibrate each of the A D converter inputs in the same manner as they are to be used in the application For example if you will be performing floating differential measurements or differential measurements using a common analog ground then calibrate the A D con verter in the corresponding manner It is not necessary to fill out the entire calibration table Only the entries associated with the channels that you will be using are necessary This will simplify and speed up the cali bration process 28 RabbitNet Peripheral Cards Each calibration is normally done at 10 less than the maximum and 10 more than the minimum within a given voltage range defined by the channel However if an application is known to use only portion of a particular range it is possible to obtain improved accu racy by using calibration points that are 10 less than the expected maximum and 10 greater than the expected minimum A G o Q 5 Q 2 5 3 3 Factorv Calibration Calibration constants are not measured and load
65. when there are sev eral peripheral cards Figure 45 Daisy Chain vs Star Configurations It is best to use a type of cable where the wires for the ground and positive s of any power supply are bound together or twisted and ideally the power supply wires should not be bun dled with other wires If you are not drawing power from the master we strongly recommend that you have a physical ground connection between the Keypad Display interface and the master 122 RabbitNet Peripheral Cards 6 3 Key RabbitNet Keypad Display Interface Components Figure 46 shows the locations of key RabbitNet Keypad Display interface components Auxiliary LCDM Clocked Serial Interface Interface Q lt 3 8 3 2 g agloozxourob5c g2 kai 19 7 8885885888885222236 6666 gt e m 2 BRSRRE SS ooooooom Main OOOOO000 Interface gt Contrast DB1_R DISP_ENAB _ Adjustment ST Micro R12 RabbitNet controller J2 B Program J3 Port J6 12345 6 7 8 910111213141516 uP PWR LIGHT AENE BAD GOOD Keypad Interface Figure 46 RabbitNet Keypad Display Interface Pinouts 6 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
66. x2 5 0 5 0 4 2 5 0 44 0 5 2 0 0 2 5 8 1 25 0 2 0 x10 1 00 0 1 25 16 0 625 0 1 0 20 0 500 The differential mode described above may also be used to measure negative voltages User s Manual 57 Ke A G o LI gt m m a 3 4 1 Analog Current Measurements The A D converter inputs can also be used with 4 20 mA current sources by measuring the resulting analog voltage drop across a 100 Q 1 precision resistor These 100 Q 1 preci sion resistors are included on the A D Converter Card for analog input channels AINO AIN3 and each of these channels may be configured individually using the jumpers on header JP1 as shown in Figure 23 00 RESISTORS INSTALLED R38 oj AIN3J ca AN exis 4 20 mA Figure 23 Locations of Resistors for 4 20 mA Mode CAUTION The input impedance is low for the 4 20 mA current mode Be careful A not to exceed 2 5 V across the input when using the 4 20 mA current mode to keep the power dissipation by the 100 Q precision resistors below their maximum rating For volume orders of A D Converter Cards configured as 4 20 mA analog inputs 0 surface mounted resistors can be installed at the factory instead of the jumpers o
67. 0 1 1 0 0 0 9 1 1 Wait 100 or more before this instruction Wait 1005 more Busy flag cannot be checked Function set 8 bits RS RW DB 086 DBS 084 083 082 081 080 RS RW DB DB6 085 084 0 0 0 01 1 0 0 0 0 1 Function set B bits Function Set Display Off Display Clear Entry Mode Set RS RW DB 086 DBS 084 083 082 081 DBO je z gt ojs jn jo oj gt DB OBS DB4 0 0 1 0 1 End of Initialization o ojoo e mi G End of Initialization Busy flag be checked after following instructions are completed If busy flag is not checked the waiting time between instructions should be longer than the execution time of these instructions User s Manual 191 1600 8 5 2 gt 5 le 2 Q 2 z a Q 5 e a o T 9 gt Higher 4 bit D4 to D7 of Character Code Hexadecimal o 1 2 s 4 s e 7 s A B C p r F 1 Oe bop RAM CG x ri 1 CG SZ BRERA see CG Pe TTE RAM eee core ufu 47 idw FRR aga m lm Hin um JE CBHxhx ASTM i aw zdnbji CG RAM S EKEk wTEU R CG cy p eLA pas SM Im 2 2 6 C
68. 0 Character LCD Datasheet 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 IMAFPROVAL FOR SPECIFICATIONS AND SAMPLE SPR HE 427 GP CHORES 9 ELT 2 8 2 CHIEN KUO RD TANTZU TAICHUNG 427 TAIWAN R O C TEL 886 4 25347288 FAX BBB 4 25310868 164 RabbitNet Peripheral Cards Version Chap Contents Date Note d1 New Version 06 May 1996 SPEC d2 Change as follow Wintek SPEC amp 1 Modified Spec Style 20 Aug 1996 Sample Change as follow by Wintek SPEC amp 83 4 Modified Spec Style 30 Nov 1996 Sampie Contents Wi 14 Change as follow by Wintek SPEC amp d4 12 1 Modified 13 Jul 2000 S I is KS0066UP 00CC ST7066 0A ampia Contents Wi 14 Change as follow by Wintek SPEC amp d5 12 1 Modified IC 15 Jan 2001 S I is ST7066 0A gt KS0066UP 00CC RBS Contents Wi 14 Change as follow by Wintek SPEC amp 96 12 1 Modified 28 2001 Sam I ie KS0066UP 00CC ST7066U 0A Change as follow by Wintek SPEC amp 97 4 Modify Spec Style 16 0ct 2001 sample WM C2002M 1GLYd 2 24 User s Manual 165 1600 Contents Page 1 Electronic Units iino rri notes weeearndeteeatesueeeosadeteacteseewensanetenctad 4 1 1 Absolute Maximum
69. 1 SS 34113511261 36 39 28 38 37 30 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 1 6 8 11911011 or 111 21131141151161171181191101 A J BIICI IIDI E IFI GIIH I IJ KI LIIMIIN IO IP IQILIRIISIIT U EVILW LIX LY ILIZIE J cRelease is a key release code An 8 bit value or character not necessarily the one in cPress is returned when a key is released 0 Unused cCntHold is a hold tick How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick How many times to repeat 0 None cCntLo is a low speed hold tick 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 User s Manual 133 1600 Scans processes keypad data for key assignment debouncing press 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 or 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 zn or rn_find to estab li
70. 1 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 DigiKev M3AAA 1606J ND 1 x 16 Male Male 4 Flex Strip 1 Amp Tvco 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 2 pin Jumper 2 Pinrex MJIB BGB Straight Through Ethernet Cable 1 Rabbit Semiconductor 540 0076 User s Manual 145 1600 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 A 1 Keypads Three keypads are supplied with the Expansion Kit Each keypad already has its corre sponding flex connector installed Connect pin of the keypad to pin of the Keypad Display interface header J6 as shown in Figure A 1 Follow the 1 locations as shown in the diagram and disregard the blue dot that may be present on one side of the connector E 1 65999 SOVABIN HOOTH NGESINTRGSTRVIR NGUSIN KOTIN lo jo
71. 118 relative pin 1 locations 118 temperature 117 status byte 15 Z ZMENU function calls Zmenu Config 154 User s Manual 198 RabbitNet Peripheral Cards SCHEMATICS 090 0175 Digital I O Card Schematic www rabbit com documentation schemat 090 0175 pdf 090 0178 A D Converter Card Schematic www rabbit com documentation schemat 090 0178 pdf 090 0179 D A Converter Card Schematic www rabbit com documentation schemat 090 0179 pdf 090 0184 Relav Card Schematic www rabbit com documentation schemat 090 0184 pdf 090 0192 RabbitNet Keypad Display Interface Schematic www rabbit com documentation schemat 090 0192 pdf You may use the URL information provided above to access the latest schematics directly User s Manual 199
72. 24 176 RabbitNet Peripheral Cards 3 4 Packing Method 1 Packaging Material per carton 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 C5 467 321 0 08 0 023 10 6 Total Weight 17 9 Kg 3 596 2 Packaging Specifications and Quantity 1 LCM quantity per tray no per row 2 x no per column 4 8 2 LCM 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 gt Use package bag FI 4 EA Tray 3 gt z Tray 2 Tray 1 Rotate tray 180 degrees and place on top of stack Check the tray stack using Fig B QC inspection label 3 Label Specifications Remark 1 QC Inspection Label MODEL i LOT NO Label Color Green DATE L 90 0 4 2 Carton Label Wintek Part No WM C2002M 1GLYd Purchase Order No According to each order a i 9 S Label Color White Q ty According to shipping 105 0 l WM C2002M 1GLYd 14 24 User s Manual 177 1600 4 1 Specification of Quality Assurance 1 Purpose This standard for Quality Assurance should affirm the quality of LCD module produ
73. 4000 2 000000000 45 2 7 1 1 Physical Mounting ier rte S Pete e a 47 2 1 2 Jumper Config raltOns tec er a ap ea 48 User s Manual Chapter 3 A D Converter Card 51 3 1 Beatures o etae eck ead een a a aT p e ee cte en ede iiie s 52 2 1 1 OLLI 52 SEPAMOR ITUR TU E PE es EE 53 3 2 Power SUDply ies torte ten eibi estes veuve eeclesie tees 54 3 3 Pinot A ete ee fitt d ieri tna ERR e dE 22 SEM HE AGELS IUE 55 3 3 2 Indicator WED iuit tette p ceret te etre ia ego ete IE e ER QU eee 55 3 4 Analog Inputs nette t KO E e OPE RE ADIPE e ERE 56 3 4 1 Analog Current Measurements sese enne ennt rene en eren entente 58 3 4 2 Calibrating the A D Converter Chip nn seren nee 59 OSA T ER 59 34 2 2 Calibration Constants eere nter rtr eet Var EP oves 59 3 4 2 3 Calibration Recommendations eese eterne teeth nnne neret 60 3 4 24 Factory Calibration ose aint his citi ete hie ht eR as n S 61 SENIORE 62 3 5 1 Dynatmc C Fabraries eere en ee ap 62 3 2 Sample usur c 62 3 5 3 A D Converter Card Function nne 65 3 5 4 Stat s Byte iiie tbe e ECH
74. 8 A Each relay draws approximately 83 mA from the 5 V power supply when energized This current draw can be reduced by approximately a factor of two by using the rn_RelayPwr function call to engage the power save mode once a relay is energized Figure 39 illustrates one of the six relay output circuits An LED is associated with each relay and is on while the relay is energized 5 1 2 3 5 1 O1 3 NO 100 nF 470 7 1kQ s 4 NC 2 100nF 470 O Figure 39 Relay Output Circuit CAUTION Voltages up to 250 V AC may be present on the screw terminal headers A Exercise appropriate care when handling a wired Relay Card Since a wired Relay Card is likely to be installed as part of an assembly inside an enclosure Rabbit Semiconductor recommends that appropriate warning labels be placed on the enclosure to alert the end user of the high voltage hazard and to refer any repairs or maintenance to a qualified service technician Each relay has built in snubbers which consist of a resistor and a capacitor in parallel with the contacts to reduce arcing Although the original role of the snubbers was to preserve the life of the relay contacts by reducing arcing snubbers are particularly beneficial in cir cuits driving inductive loads where they limit voltage transients and reduce electromag netic interference Depending on the reactive load you plan to operate wit
75. Converter Card may be connected to either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports The sample program will use rn_find and the product RN1200 as the search criteria to first find any A D Converter Cards connected to the master The first A D Converter Card found will run the sample program e CALDIFF CH C Demonstrates how to recalibrate a differential A D converter channel using two known voltages to generate constants for that channel that are rewritten into the A D Converter Card flash memory The voltages being monitored will be displayed continuously Before you run this sample program make sure your 0 10 V external power supply is off and is set to 0 V Connect the power supply to one of the differential channel pairs such as AINO and AINI Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window 62 RabbitNet Peripheral Cards e CALMA CH C Demonstrates how to recalibrate a 4 20 mA A D converter channel using two known currents to generate constants for that channel that are rewritten into the A D Converter Card flash memory The currents being monitored will be displayed contin uously Before you run this sample program place jumpers across pins 1 2 3 4 5 6 and 7 8 of header JP1 on the A D Converter Card Connect an external power supply make sure the
76. DAC_CAL C sample program illustrates how to perform the calibration and save the calibration data The sample program is found in the in the SAMPLES RABBITNET RN1300 directory See Section 4 5 2 Sample Programs for more information on sam ple programs and how to use them User s Manual 89 A G LI o LI gt oO lt a 4 5 Software This section provides the libraries function calls and sample programs related to the D A Converter Card 4 5 1 Dynamic C Libraries In addition to the library associated with the master single board computer such as the BL2500 or OP7200 one other library is needed to provide function calls for the D A Converter Card e AOUT LIB provides functions unique to the analog outputs on the D A Con verter Card Function calls for this library are discussed in this chapter Functions relevant to RabbitNet peripheral cards in general are described in Section 1 3 4 Other functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference User s Manual 4 5 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 To run a sample program open it with the File menu if
77. DIO window Then reverse the power supply and connections and hit the Return key in the Dynamic C STDIO window Now enter the voltage reading again e CALSE CH C Demonstrates how to recalibrate one single ended A D converter channel using two known voltages to generate constants for that channel that are rewritten into the Digital I O Card flash The voltages being monitored will be displayed continuously Before you run this sample program connect a 0 10 V power supply and a voltmeter between the selected analog channel and ground Now compile and run the sample pro gram Follow the prompts in the Dynamic C STDIO window e RDDIFF CH C Demonstrates reading the differential A D converter channel using two known voltages and constants for that channel The voltage being monitored will be displayed continuously Before you run this sample program connect a 0 10 V power supply a voltmeter and a network of resistors to inputs AINO3 and AINO3 as shown for the CALDIFF CH C sample program Adjust the power supply on until the voltmeter shows approxi mately 40 20 V at AINO3 32 RabbitNet Peripheral Cards Now compile and run the sample program Vary the voltage from 0 to 0 25V and observe the voltage readings on the voltmeter and in the Dynamic C STDIO window Then reverse the power supply and connections Again vary the voltage from 0 to 0 25V and observe the voltage readings on the voltmeter and in
78. E TR 163 2 x 20 Character LED Datasheet eee ete teet e ege ara 164 A 0 4x 20 Character LED Datasheet oce A Sb 188 Index 195 Schematics 199 User s Manual RabbitNet Peripheral Cards 1 THE RABBITNET PROTOCOL 1 1 General RabbitNet Description RabbitNet is a high speed synchronous protocol developed by Rabbit Semiconductor to connect peripheral cards to a master and to allow them to communicate with each other 1 1 1 RabbitNet Connections All RabbitNet connections are made point to point A RabbitNet master port can only be connected directly to a peripheral card and the number of peripheral cards is limited by the number of available RabbitNet ports on the master SLAVE TA Straight through CAT 5 6 Ethernet cable Crossover 5 6 Ethernet cable Power Supply Straight through CAT 5 6 Ethernet cable ue Rabbit 30009 Microprocessor MASTER MASTER Figure 1 Connecting Peripheral Cards to a Master User s Manual 1 A typical RabbitNet system consists of a master single board computer and one or two peripheral cards A high performance Rabbit 30009 or Rabbit 20009 microprocessor on the master provides fast data processing and a BL2500 or a BL2600 master also provides the DCIN and 5 V power for the peripheral cards Use a straight through CAT 5 6 Ether net cable to connect the master to slave peripheral cards unless you
79. ED YELLO W GREEN d 174 RabbitNet Peripheral Cards AN A 7 x 1 ESSI Cue 7 1 1j j Pme d AT 1 B SOFOLE 4 y 0 3 062 F TOFO 5 Iz DE f l 4 i 4 l L ij 1 U B i 1 L__JL__ Ti HI ot H __ prm l gt 5 5 E ME E es cs 3 4 2 L E l IN U T in G GL v Z OFS L L gt G Ze 2 OFZ LE WM C2002M 1GLYd 12 24 User s Manual 175 1600 3 3 Backlight Specification 1 LED Backlight Styles Bottom The LED chips are distributed ower the whole light area of the illumination unit which gives the most uniferm light 2 Data About LED Backlight PARAMETER SYMBOL Supply Curent Supply Voltage Reverse Voltage Lumineus Intensity Luminous Intensity Uniformity Peak Emission Wavelength Yellow Green NOTE 1 Backlight Only bo 2 Average Luminous Intensity Of Pi PS MIN 3 Luminous Intensity Uniformity gax SX 100 MEASURED METHOD Effective spatial Distribution i Hele Diameter lwl b 5 per Measured Lumineus Intensity WM C2002M 1GLYcl 13
80. EE o SUPPLY VOLTAGE FOR LCD Ve 10 Be sure that you are grounded when handing LCM 1 2 Electrical CharacteristicsiTa 25 4 5 V 5 5V UPPLY VOLTAGE FOR LOGIC 25 SUPPLY VOLTAGE FOR LCD Var Va Vico L gt u c SUPPLY CURRENT FORO mm Measurement condition is for pixels on display u WN C2002M 1GLY d 4 24 User s Manual 167 1600 1 3 Interface Pin Function JP1 NO SYMBOL 1 0 FUNCTION 1 Vss P POWER SUPPLY FOR LOGIC 0V 2 Vpop P POWER SUPPLY FOR LOGIC 5V 55 3 Vo P CONTRAST ADJUSTMENT 4 RS REGISTER SELECT SIGNAL 5 R W READ WRITE SELECTION 6 E ENABLE SIGNAL 7 DBO 8 DB1 9 DB2 10 DB3 DATA BUS 11 DB4 12 DB5 13 DB6 14 DB7 15 16 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 a WM C2002M 1GLVd 5 24 168 RabbitNet Peripheral Cards 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 ee WM C2002M 1GLYd 6 24 User s Manual 169 1600
81. G sw aN CG ae RO eM 58 192 RabbitNet Peripheral Cards Electrical Characteristics Item Symbol Condition Min Typ Max Input Voltage high Vih H Level 2 2V Vdd Input Voltage low Vil L Level OV 0 6 V 0 C 4 8 V 5 4 V Recommended LCD Driving Voltage Vdd Vo 25 C 4 2 V 4 6 V Standard Temp 50 C 3 9 V 4 3 V 20 C 64V 7 2N Recommended LCD 0 C 4 8 V Driving Voltage Vdd Vo Wide Temp 50 C 43V 70 C 3 7V 4 2 V Power Supply Vdd 5 0 V Current Idd v 2270 kHz 0 5 mA 1 0 mA LED Backlight Vf R 6 8Q 4 6V 5 0V Voltage If R 6 80 240 mA 480 mA Current User s Manual 193 1600 194 RabbitNet Peripheral Cards INDEX A function calls DIN rail mounting 4 rn 22 2 93 components 4 A D Converter Card rn anaOutCalib 96 Dynamic 18 52 84 104 120 A D converter inputs rn anaOutConfig 88 92 downloading RabbitNet 4 20 mA current measure rn anaOutRdCalib 94 98 libraries 7 ments 58 rn anaOutStrobe 88 95 libraries 6 30 62 90 110 128 calibration 59 60 61 rn anaOutVolts 94 differential measurements rn anaOutWrCalib 97 F ku a power supplies 85 105 ities S ll 2 2 ja sample programs 90 Convert
82. MP 0 AINO AINO AINI AINO 1 HAINI HAINI 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 4 AIN4 AIN4 AINS AIN4 5 AINS FAINS 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 FAINT These channels need to be configured for current measurements as explained in Section 3 4 1 opmode is the mode of operation for the specified channel Use one of the following macros to set the mode for the channel being configured RNS INGLE single ended input line background sampling enabled RNDIFF differential input line background sampling enabled RNmAMP 4 20 mA input line background sampling enabled User s Manual 65 Ke A G o LI gt m m a gaincode is the gain code of 0 to 7 use a gain code of 4 for 4 20 mA operation reserved is reserved for future use Set to 0 Voltage Range Gain Code Multiplier Single Ended Differential 0 xl 0 20 V 20 V 1 x2 0 10 V 10V 2 x4 0 5 V 5V 3 x5 0 4 V 4V 4 x8 0 2 5 V 2 5 5 x10 0 2 V 2V 6 x16 0 1 25 1 25 V 7 x20 0 1 V 1 V RETURN VALUE The status byte from the previous command 1 means that device information indicates the A D Con verter Card is not connected to the master SEE ALSO rn anaIn rn_anaInVolts rn anaInDiff rn anaInmAmps 66 RabbitNet Peripheral Cards Reads the raw data value of an analog input channel Set the sample parameter greater
83. NET LCDIF LIB 128 RNET RELAY LIB 110 RabbitNet operation 9 supporting libraries 6 RN BL25 LIB 6 RN OP72 LIB 6 RN PowerCore FLEX LIB 6 RN RCM33 LIB 6 RNET LIB 6 RNET DRIVER LIB 6 specifications A D Converter Card 78 dimensions 78 electrical 79 header footprint 80 physical mounting 80 relative pin 1 locations 80 temperature 79 D A Converter Card 100 dimensions 100 electrical 101 header footprint 102 physical mounting 102 relative pin 1 locations 102 temperature 101 Digital I O Card 45 dimensions 45 electrical 46 header footprint 47 physical mounting 47 relative pin 1 locations 47 temperature 46 Keypad Display interface 142 dimensions 142 electrical 143 header footprint 144 physical mounting 144 relative pin 1 locations 144 temperature 143 Relay Card 116 dimensions 116 electrical 117 header footprint 118 physical mounting
84. O lt User s Manual 77 3 6 Specifications 3 6 1 Electrical and Mechanical Specifications Figure 24 shows the mechanical dimensions for the A D Converter Card 0 80 20 0 125 3 2 W3MOd 1 88 A ot ce 25 7 Qboolll I ALLI l eg m J2 fu n X 7 INT Qi Ba FI MINA o9 fi Jains om oy O fo o oo Rie ot XB y it BS x edP B 3 938 gt 100 0 65 16 a EM B 3 938 100 Figure 24 A D Converter Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 78 RabbitNet Peripheral Cards Table 7 lists the electrical mechanical and environmental specifications for the A D Con verter Card Table 7 A D Converter Card Specifications Feature Specification 8 single ended 11 bit or 4 differential 12 bit analog inputs 1 input impedance 2 5 ksamples s sampling rate all 8 channels can be configured as 11 bit 4 20 mA analog Analog Inputs inputs software controlled ranges 0 1 V 2V 5 V 10 V 20 V DC single ended or 1 V 2 5 V 10 V
85. O A ae TI 3 0 Specification Sean eneo ere eU Ert eye eere eo Deb uve dove e geek UAE Eee HR ES 78 3 6 1 Electrical and Mechanical Specifications essere 78 3 6 2 Physical Mounting onec me sepe Het rte SPA e e 80 3 7 Jumper Configurations 2 ette deter ke tes pee Pre oae bee ct eet eee dedere dee 81 Chapter 4 D A Converter Card 83 4 Features iet eO Ep A RR AE Dawa RE nu a ee 84 84 4 2 CONNEC ON S EPI 85 4 2 1 Power Supply 5 rete tr rei De ette Det bett 86 ZG y 87 4 3 T HEADERS s ied iret ERE a A 87 4 3 2 Indicator LED re FE e ee EYE dere e qe ce 87 4 4 D A Converter O tpuls inerte rentre o Ese PR EXE EUER ee ERE EE Eee tUa erp ere Ere pI ARA 88 4 4 T ce icr t bu 89 2 3 SoftWare i i a RERO Ter erra eden p te epe tesi sepes ee pe 90 4 921 Dynamic C Libr ries ettet hee eoa i iecit 90 4 5 2 Sample Programs esi teen eee tie e RH Ree 90 4 5 3 D A Converter Card Function Calls esee eere nennen eterne tenen nennen 92 CS Miri dur EE 99 4 6 Specifications repe PERIERE UHR 100 4 6 1 Electrical and Mechanical 1
86. O CR 25 5 RESPONSE TIME tr 25 200 300 ms RESPONSE TIME td 25 200 300 ms 0 4 8 2 VOLTAGE Vico 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 Brightness Condition 100 Rise Time Decay Time fall time tf Response Time WM C2002M 1GLYd 9 24 172 RabbitNet Peripheral Cards 12 00 PRA Wier Angle Brightness cure of curve of Driving Voltage Perpendicular ling r Ucr Brightness ai nonselected segment HZ Contrast ration Hrightress qi selected segment ET Contrast ration CR ss WM C2002M 1GLYdl 10 24 User s Manual 173 1600 3 Mechanical Units 3 1 Mechanical Specification STANDARD WALLIE LIMIT ITEM NUMBER OF DOTS CHARACTER FORMAT MODULE DIMENSION VIEW AREA ACTIVE AREA CHARACTER SIZE CHARACTER PITCH DOT SIZE DOT PITCH APPROX WEIGHT BACK LIGHT WMNM C2002M 1GLYd 20 CHARACTERS x 2LINES ixa DOTS 116 0 5 37 0 H 5 14 5 MAXIT 11 24 84 0 W 18 6 73 5 W a 11 5 iH 3 20 W 5 55 3 70 W 3 5 85 0 60 a 0 65 HI 0 65 Wi 0 70 54 L
87. Storage e Store in an ambient temperature of 5C to 45C and in a relative humiditv of 40 to 60 Don t expose to sunlight or fluorescent light Storage in a clean environment free from dust active gas and solvent Store in anti static electricity container Store without 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 e Soldering only to the I O terminals Rewiring no more than 3 times ssa WM C2002M 1GLVd 24 24 User s Manual 187 1600 9 4 20 Character LCD Datasheet 188 RabbitNet Peripheral Cards EVER CATCHER GROUP WE CATCH THE EVERBOUQUET WAYTON GENERAL SPECIFICATIONS FOR CHARACTER LCD MODULE PIN ASSIGNMENT FUNCTION PIN NO SYMBOL LEVEL FUNCTION ov RT H Data Read Module MPU RIW L Data Write Module MPU Write Module L Data Write Module MPU Register Select Signal 7 DBO Register H Data Input HIL Data Bus Line Select L Instruction Input 14 DB7 Interface between Data Bus line and 4 bit or 8 bit MPU is available Data transfer are made in twice in case of 4 bit MPU and once in case of 8 bit MPU TIMING CHART Measuring FEM VALUE ITEM SYMBOL Condition Enable Cycle Time eS Enable Pulse Width High Level PWe Figs 1 2 49 Enable Rise and Decay Time Figs 2
88. acie it rete Rien DR eR IRE 120 6 2 Connections Meet eb esd Wet A aoe RP 121 6 2 T Power Supply oe e emer ect t eit eei EU prre ret 122 6 3 Key RabbitNet Keypad Display Interface Components essere 123 6 3 1 Headers and Jacks nee dente eR edite deep 123 6 3 1 1 Keypads ia ie l e a DI A a IE e 123 6 3 1 2 Liquid Crystal Displays eee IRR repr 124 6 3 2 REDS dentur uU PCR E Dra D En and 124 06 33 3 BUZZetr TE nene mir 124 6 4 Liquid Crystal Display 1 16 2 125 65 Display Contras tice acs See i RS Ree en Be hee eem 127 6 65016 e EA 128 6 6 1 Dynamic C Libraries sissa epe 128 6 6 2 5 uoo eret esie 128 6 6 3 RabbitNet Kevpad Displav interface Function 130 6 6 3 1 130 6 6 3 2 LEDS achat sini mie old Ob m un eet ied 131 6 0 3 3 Keypad entes eerie erede dee eer e 132 6 6 3 4 Display een sto o EO ied RUE Ies ente ee RS 135 6 6 4 51 015 tt EO Re pee Idee p eiie pre 141 6 7
89. akpoint use an ohmmeter to verify that the contacts are connected the ohmmeter reading should be 0 Q for contacts that are connected and high imped ance for the contacts that are not connected NOTE When the relays are toggled the LED for the given relay will also be toggled e RELAY LOW PWR C Demonstrates how to configure the relays to operate in the power save mode A relay is first activated normally for 50 ms and is then pulsed every millisec ond with a 50 duty cycle square wave which essentially cuts the power required to keep the relay energized in half Since the operation of a relay in the power save mode will reduce the relay holding force this mode is not recommended when the relay may be sub ject to shock and vibration The normal relay activation current is 80 mA which is reduced to 40 mA for a given relay with the power save mode Before you run this sample program place an ammeter in series with the power supply GND lead going to the Relay Card to verify that current drawn by the relay is in fact reduced in the power save mode Now compile and run this program Watch the ammeter and the Dynamic C STDIO window to view the current readings for the various relay states ke L G gt 49 oc e RELAY SEQUENCE C Demonstrates how to activate the relays sequenually to keep the peak power surges to a minimum while the relays are being activated Once you have compiled this sample program and it is r
90. al card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC The SAMPLES RABBITNET RN1400 subdirectory contains the following sample pro grams When running these sample programs the Relay Card may be connected to either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports The sample program will use and the product RN1400 as the search criteria to first find any Relay Cards connected to the master The first Relay Card found will run the sample program e RELAY ALL C Demonstrates how to activate all the relays in parallel using the rn RelayAl11 function call surge that may exceed the peak power rating of your power supply Be sure that your CAUTION Activating several relays in short period of time may cause a power power supply can handle at least 500 mA when using this sample program 110 RabbitNet Peripheral Cards Once you have compiled this sample program and it is running use 2 to set a breakpoint on either of the following two statements in mainline for a given relay to verify the relay connections printf All Relays COM is connected to its NO contactw or printf All Relays COM is connected to its NC contact n Once you hit the bre
91. al I O Card is not connected to the master SEE ALSO rn digOutConfig rn digOut rn digBankIn 36 RabbitNet Peripheral Cards 2 6 3 3 Analog Input Function Calls Configures each analog input channel to the desired operation at the desired gain Once all channels have been set to single ended voltages or differential voltages use analn rn anaInVolts orrn anaInDiff to read an A D converter channel PARAMETERS handle is an address index to device information Use or rn_find to estab lish the handle channel is the channel number 0 to3 Channel Single Ended Differential 0 AINO 1 HAINI 2 AIN2 3 AIN3 AIN3 opmode is the mode of operation for the specified channel ADCENABLE enables conversions ADCDISABLE disables conversions gaincode is the gain code Use 0 for the Digital I O Card reserved is reserved for future use Set to 0 RETURN VALUE The status bvte from the previous command 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn anaIn rn anaInVolts rn anaInDiff User s Manual 37 G o 5 1100 Reads the raw data value of an analog input channel Set the sample parameter greater than one to average the readings PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the hand
92. alent values of one single ended analog input channel Coefficients are read from the A D Converter Card The com puted raw data and equivalent voltages will be displayed Before you run this sample program make sure your 0 10 V external power supply is off and is set to 0 V Connect the power supply between one of the AINOO AINO7 analog channels and GND Connect a voltmeter across the power supply connections Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window e AIN READ CALDATA C Dumps the calibration data for all the A D converter channels and the modes of operation The calibration gain factor offset values and mode of opera tion will be displayed for each channel via the Dynamic C STDIO window 64 RabbitNet Peripheral Cards 3 5 3 A D Converter Card Function Calls Configures each analog input channel to the desired operation at the desired gain Once all channels have been set to single ended voltages differential voltages or current use rn_anaIn rn_anaIn Volts rn anaInmAmps orrn anaInDiff to read an A D converter channel PARAMETERS handle is an address index to device information Use orrn_find estab lish the handle channel is the analog input channel number 0 to 7 corresponding to AINO AIN7 channel SINGLE DIFF mA
93. ample approximately 675 us gt 1 sample each sampling will wait for an updated conversion this may take 40 to 160 us longer depending on how many channels are enabled reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn anaInConfig rn anaIn rn anaInDiff User s Manual 39 Ke A G 5 a 1100 Reads the state of a differential analog input channel Set the sample parameter greater than one to average the readings PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the channel number 3 retdata is a pointer to a floating point voltage value which is updated for the channel being accessed represented in units of volts NOTE If there is a data overflow or an out of range error the value will be set to 4096 as defined by the macro ADOVERFLOW sample is x number of samples 1 sample approximately 675 us gt l sample each sampling will wait for an updated conversion this may take 40 to 160 us longer depending on how many channels are enabled reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that
94. ample program make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range you 90 RabbitNet Peripheral Cards will be selecting Connect voltmeter to the output channel DACO DAC7 you going to be using then compile and run this program You will prompted with additional instruc tions via the Dynamic C STDIO window during the execution of this sample program NOTE This sample program must be compiled to flash e DAC SXNC C This sample program outputs a voltage that be read with a voltmeter The output voltage is calculated using the calibration constants located on the D A Con verter Card EEPROM simulated in flash memory The D A Converter Card is set up for the synchronous mode of operation which updates all D A converter outputs at the same time when the anaOut Strobe function executes The outputs are all updated with values previously written using the anaOutVolts and or anaOut functions Before you run this sample program make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range you will be selecting Connect a voltmeter to the output channel DACO DAC7 you are going to be using then compile and run this program You will prompted with additional instruc tions via the Dynamic C STDIO window during the execution of this sample program
95. anual 143 1600 6 8 1 Physical Mounting Figure 49 shows position information to assist with interfacing other boards with the Key pad Display interface 10 0 0 000000000060 0 58898900 J4 rcr 55 56 ae Ne Y 36 0 070 Tai 1 8 3 125 79 4 Figure 49 Board Footprint for Keypad Display Interface 144 RabbitNet Peripheral Cards APPENDIX KEYPAD DISPLAY INTERFACE EXPANSION KIT Rabbit Semiconductor offers a Keypad Display Interface Expansion Kit for that includes a Keypad Display interface Part No 101 0879 and provides the necessary hardware com ponents required to run the sample programs and to demonstrate the functionality of the Keypad Display interface Table A 1 lists the items in the Expansion Kit along with their part numbers Table A 1 Keypad Display Interface Card Expansion Kit Parts Description Quantity Supplier Part Number Rubber Foot 4 Rabbit Semiconductor 804 0023 4 x 20 Character Display 1 Rabbit Semiconductor 535 0026 2 x 20 Character Display 1 Rabbit Semiconductor 535 0031 3 x 4 Keypad 1 Rabbit Semiconductor 505 0013 2 x 6 Keypad 1 Rabbit Semiconductor 505 0027 is Flex Connector for above 2 65801 010 4 x 10 Keypad 1 Rabbit Semiconductor 505 0004 acl Flex Connector for above 1 FCI Berg 6580
96. 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 CAT 5 6 Ethernet cable to connect an OP7200 that is being used as a slave NOTE Even though CAT 5 6 Ethernet cables are used for the RabbitNet connections never connect a RabbitNet port to an Ethernet network Doing so could destroy the RabbitNet SPI driver Distances between a master unit and peripheral cards can be up to 10 m or 33 ft Table 1 lists Rabbit Semiconductor s single board computers and other devices that can be used as the master in a RabbitNet svstem Table 1 RabbitNet Master Capabilities Master Supplies Power Number of RabbitNet Masters Peripheral Cards RabbitNet Ports BL2500 Yes 2 BL2600 Yes 2 OP7200 No 1 RCM3300 RCM3360 No 1 Prototyping Board PowerCore FLEX No 1 Prototyping Board 1 1 2 RabbitNet Peripheral Cards e Digital I O Card 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 used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet 2 RJ 45 connector e A D Converter Card 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
97. ast 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 tvpes 1 8 Contrast defect 2 1 White and black spots on display 0 25mm no more than three white or black spots present Black or white 2 2 Densely spaced No more than two spots or lines within display only ae 3 1 Round type As following drawing b x y y 2 SIZE Acceptable Q TY T 0 10 Acceptno dense 0 10 0 20 LCD black spots white spots contamination non display Length Width Acceptable Q TY Y W 0 02 Accept no dense EN AE ae 25 L 3 0 0 02 W 0 03 1525 0 03 lt W 0 05 7 0 05 lt Ww As round type Y WM C2002M 1GLYd 17 24 180 RabbitNet Peripheral Cards Acceptable Q Accept no dense If bubbles are visible judge using black spot Polarizer ea 0 20 lt 0 50 Bubbles specifications not easy to find must check specify direction Total QTY Follow NO 3 LCD black spots white spots contamination Symbols x Chip length y Chip width 2 Chip thickness k Seal width t Glass thickness LCD side length L Electrode pad length 6 1 General glass chip 6 1 1Chip on panel surface and crack between panels 2 Chip thickness y
98. b 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 ALSO rn dispData 140 RabbitNet Peripheral Cards 6 6 4 Status Byte Section 1 3 5 provides information on the status bytes returned by various function calls User s Manual 141 1600 6 7 Specifications 6 8 Electrical and Mechanical Specifications Figure 48 shows the mechanical dimensions for the RabbitNet Keypad Display interface 0 79 20 0 16 lt gt 4 AUX LCDM INTERFACE CLOCKED SERIAL INTERFACE o00000000000000m UT Tv TS ji joooom ocooooom essence f 00000000 so l teen MINNI Eje i Y ll apis f vx Scio 86 E Y 8 acu H 8 95 aH E 5 El j 98 E miszuin uin nin min nin 5 8 dy seme o a o y EE DEDE TEL T 18000000095000000 l 4 N 0 250 L 44 al Ne 6 4 88 3 94 gt 100 RE 0 77 20 lt 3 94 gt 100 Figure 48 RabbitNet Ke
99. bbitNet Peripheral Cards Reads the calibration constants gain and offset from the analog input device PARAMETERS handle is an address index to device information Use device orrn find to estab lish the handle channel is the channel number 0 to3 Channel Single Ended Differential 0 AINOO 1 AINOI 2 AINO2 3 AINO3 opmode is not used Set to 0 gaincode is the gain code Use 0 for the Digital I O Card rn AinData adataisa structure pointer to where the calibration constants gain and offset values are to be written after being calculated reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn anaInWrCalib rn_anaInCalib User s Manual 43 Ke G 5 a 2 6 4 Status Byte Section 1 3 5 provides information on the status bytes returned by various function calls 44 RabbitNet Peripheral Cards 2 7 Specifications 2 7 1 Electrical and Mechanical Specifications Figure 14 shows the mechanical dimensions for the Digital I O Card
100. bed in the Dynamic C Function Reference User s Manual 6 6 2 Sample Programs Sample programs are provided in the Dynamic 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 To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripheral card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC 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 A 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 e 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
101. ble Do not daisy chain the power supply connections between different peripheral cards but use a star configura tion from the master or router when there are several periph eral cards Figure 6 Daisy Chain vs Star Configurations 20 RabbitNet Peripheral Cards It is best to use a type of cable where the wires for 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 Large transient currents flow in the ground and positive supply wires when the digital output drivers are switched on off and it is imperative that any ground differential resulting from resistive or inductive loss in the ground wire be kept as low as possible lt 4 V Use the GND pin on header J1 J4 or J9 on the Digital I O Card if you have separate power sup plies Rabbit Semiconductor also recommends that you have a physical ground connection between the Digital I O Card and the master which you will have if the power to header J9 on the Digital I O Card already comes from the master For development purposes it is possible to draw the K1 K2 power from DCIN as long as you are careful to use only one digital output at a time to avoid exceeding the maximum current output capability of the DCIN supply You can use a 3 way or a 4 way splice for example Molex Series 19204 connector shells or a terminal block to split the DCIN supply from th
102. chnologies Inc 9099 W Dean Milwaukee WI 53224 Their available keypads be viewed online by visiting their Web site at www xymox com and searching for stock membrane switches 6 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 6 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
103. 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 zn keyBuzzer and rn keyBuzzerAct Although the buzzer is monotone some pitch and motorboat effects can be demon strated with this sample program 128 RabbitNet Peripheral Cards e KEVBASIC 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 e 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 e 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 a
104. cted digital input channel PARAMETERS handle is an address index to device information Usern_device orrn_find estab lish the handle channel is the digital input channel 0 23 to read retdata is a pointer to the return data address of the logic state reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a pointer to the return data logic state 0 or 1 of the input 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn digout rn digBankin Reads the undeglitched or raw data state of a block of designated digital input channels The first bank consists of channels 0 7 the second bank consists of channels 8 15 and the third bank consists of channels 16 23 PARAMETERS handle is an address index to device information Use zn device orrn find to estab lish the handle bank is the bank to read 0 for all banks on the card 1 for bank of digital inputs 0 7 2 for bank of digital inputs 8 15 3 for bank of digital inputs 16 23 retdata is a pointer to the return data address of the logic state reserved is reserved for future use Set to 0 RETURN VALUE The status byte from previous command and a pointer to the return data byte where each bit corresponds to one channel Channels 0 8 and 16 are considered to be the bit O positions If all the banks are requested the pointer to the bank 1 data byte is returne
105. cts 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 Nonconforming 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
106. d with subsequent byte pointers to the next two banks 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn digIn rn digBankOut 34 RabbitNet Peripheral Cards 2 6 3 2 Digital Output Function Calls Configures output channels 0 to 15 to a safe state on power up for sinking or sourcing outputs The channels are set to a high impedance at power up The factory default sets the safe state as zeros consid ered a disabled state for sourcing outputs Ke A G 5 a This function will first compare the requested states and values in the safe state register If there is a match the requested states will not be rewritten to the device to eliminate unnecessary writes Otherwise this function saves states to flash and therefore should be called only once A hardware reset rn reset anda read of the reset register rst status must be issued after this function is called PARAMETERS handle is an address index to device information Use zn device orrn find to estab lish the handle senddata is a bitwise logic representing a state of 0 or 1 for each channel The most significant bit represents channel 15 0 disable sourcing outputs 1 disable sinking outputs RETURN VALUE The status byte from the previous command 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn digOut
107. 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 User s Manual 125 1600 Figure 47 shows the header and jumper locations used to set the current required by LED backlight on a display Figure 47 Location of RabbitNet Keypad Display Interface Resistor Configurations Example For example let s consider a case where the specifications indicate that the typical LED voltage is 4 2 V 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 which is the default factory setting As a sanity check the maximum current in Table 11 for this configuration is 222 mA and so the back light current of 200 mA is safely below the maximum 126 RabbitNet Peripheral Cards 6 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
108. dow or that no card is connected to a particular port e ECHOCHAR C Demonstrates a simple character echo to any RabbitNet peripheral card A character is sent to the RabbitNet peripheral card connected at a physical node address of 0x00 or 0000 octal If a peripheral card is connected the character will be returned back along with the status of the peripheral card Otherwise the status byte will indicate there is no connection e ECHOTERM C Demonstrates a simple character echo to any RabbitNet peripheral card through a serial terminal on the master A character is sent to the RabbitNet peripheral card connected at a physical node address of 0x00 or 0000 octal If a card is connected the char acter will be returned back along with the status of the peripheral card Otherwise the sta tus byte will indicate there is no connection e HWATCHDOG C Demonstrates setting the hardware watchdog on a RabbitNet peripheral card This sample program will first look for a peripheral card that matches the search crite ria 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 e SWATCHDOG C Demonstrates setting and hitting the software watchdog on a RabbitNet peripheral card using costatements This program will first look for a peripheral card matching the search criteria The software watchdog will be set for 2 5 seconds The watch dog will b
109. e 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 C 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 80 for 30 minutes normal temperature for 5 minutes as one cycle Thermal shock resistance Human Body Model 2000 volt electrical discharge from a 100 pF capacitor to the tested device in series with a 1500 ohm resistor Apply amp Vas 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 Vy amp Vss to LCD module unit without including hand phone Test for functionality no any missing line after the discharge but LCD module can be reset if display off ESD Electrostatic Discharge 0 XI WM C2002M 1GLYd 22 24 User s Manual 185 1600 2 Testing Conditions and Inspection Criteria For the final test the testing sample must be stored at room temperature for 24 ho
110. e board computers operator interfaces and RabbitCore Prototyping Boards Figure 42 shows a conceptual view of the RabbitNet Keypad Display interface connected to a master RabbitNet LAN Keypad Display Interface KEYPAD Card MASTER ee SLAVE DISPLAY Rabbit 3000 Microprocessor Figure 42 RabbitNet Keypad Display Interface Slave Connected to Master NOTE Only one RabbitNet Keypad Display interface per master is supported at this time NOTE The OP7200 master and the RabbitCore Prototyping Boards do not supply any power to the slave User s Manual 119 1600 6 1 Features accepts one generic keypad with a maximum of 16 terminals a maximum of 64 keys in 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 6 1 1 Software The RabbitNet Keypad Display interface is a preprogrammed slave the master t
111. e device were corrupted PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle channel is the channel number 0 to 7 corresponding to AOUTO AOUT7 DacCal table is a pointer to a table structure that contains the calibration constants reservedis reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the D A Converter Card is not connected to the master Ke A G oO LI gt c o a a SEE ALSO rn anaOutRdCalib rn anaOutCalib User s Manual 97 Reads the calibration constants gain and offset into a calibration descriptor table dacCalTable PARAMETERS handle is an address index to device information Use rn_device orrn find to establish the handle channel is the channel number 0 to 7 corresponding to AOUTO AOUT7 DacCal table is a pointer to a table structure that contains the calibration constants reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the D A Converter Card is not connected to the master SEE ALSO rn_anaOutWrCalib rn_anaOutCalib 98 RabbitNet Peripheral Cards 4 5 4 Status Byte Section 1 3 5 provides information on the status by
112. e hit at every increasing timeout until the timeout is past 2 5 seconds A software reset will occur and the software watchdog will be disabled 8 RabbitNet Peripheral Cards 1 3 4 General RabbitNet 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 C 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 portflag is a 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 lag 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 given 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
113. e master Remember to do the same for the GND K1 DCIN from master K2 Figure 7 Example of 4 way Splice for DCIN used for development purposes only User s Manual 21 A G o Q 5 5 a 2 3 Pinout The Digital I O Card pinouts are shown in Figure 8 Analog Analog Inputs Ground ST Micro ie u E controller nput ower j Program u Supply 22522323 RERI ooooooonm J11 l J10 ps1 00 m INO1 Digital l 9 Inputs 04 e INO5 e 06 INO7 ND e LO 23 wo 22 21 Fee io IN20 Digital Digital ini Inputs Inputs IN12 IN18 IN13 17 IN14 16 IN15 5 4 1 m 2 oj o 9 Ki Ff K2 Be 2 m ol 2 2 Supply peo oe oooooooo Supply L I igital K1 Digital K2 Outputs Outputs Figure 8 Digital O Card Pinouts 2 3 1 Headers Digital I O Cards are equipped with six polarized 1 x 9 friction lock terminals J2 J3 J5 J6 J7 and J11 a 1 x 4 friction lock terminal JO DCIN and 5 V power supplies two x 2 friction lock terminals JI and JA external K power supplies and an RJ 45 RabbitNet jack No header is installed at J10 which is used to program the Digital I O Card at the factory 2 3 2 Indicator LED An indicat
114. e program Once DIGOUT C is compiled and running the Dynamic STDIO window will prompt you for a channel selection Select output channel OUTOO Next you will be prompted to select the logic level set a high logic level to turn LED DS1 on You can repeat these steps for OUTO1 OUTO03 and LEDs DS2 DS4 You can use a voltmeter to check the volt ages on the remaining outputs 2 6 2 2 Analog Inputs The SAMPLES RABBITNET RN1100 AIN subdirectory contains the following sample programs The sample program will use rn_find and the product RN1100 as the search criteria to first find any Digital I O Cards connected to the master The first Digital Card found will run the sample program NOTE The Demonstration Board does not have to be connected to run these sample programs e CALDIFF CH C Demonstrates how to recalibrate the differential A D converter channel using two known voltages to generate constants for that channel that are rewritten into the Digital I O Card flash memory The voltages being monitored will be displayed continuously Before you run this sample program connect a 0 10 V power supply a voltmeter and a network of resistors to A inputs AINO34 and AINO3 as shown in the diagram Adjust the power supplv starting at 0 V until the voltme ter shows approximately 40 235 V at AINO3 Now compile and run the sample program Enter the voltage reading when prompted by the Dynamic C ST
115. eader J5 on the Keypad Display interface as shown in Figure A 2 3 Compile and run ZMENU C 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 not included in the Expansion Kit Uncomment the appropriate ZMENU KEYSTROBELINES macro in the configuration section in the sample program Once ZMENU C has compiled the menu display 21x information can also be viewed via HyperTerminal Tera Term or another serial port emulator by mov ing the programming cable connector on the master BED single board computer from PROG to DIAG and then cycling the power The HyperTerminal setup is z shown here Parity Non 2 The ZMENU COLUMNS and ZMENU ROWS macros 2 4 are used to define the size of the display and can be changed in the configuration section in the sample program Restore Defaults Cancel User s Manual 153 1600 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 Z
116. ectivity Kit Part No 101 0581 Six 1 x 10 friction lock connectors 0 1 pitch with sixty 0 1 crimp terminals and two 1 x 4 friction lock connectors 0 156 pitch and two 1 x 2 friction lock connectors 0 156 pitch with fifteen 0 156 crimp termi nals Each kit contains sufficient parts to interface with one or more RabbitNet periph eral cards e Crimp tool Part No 998 0013 to secure wire in crimp terminals Contact your authorized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information User s Manual 3 1 1 4 DIN Rail Mounting RabbitNet peripheral cards and the BL2500 master may be mounted in 100 mm DIN rail trays as shown in Figure 2 RabbitNet I O Card Tray Side Modular PC Board Trays DIN Rail Figure 2 Mounting RabbitNet Peripheral Card in DIN Rail Trays DIN rail trays are typically mounted on DIN rails with feet Table 2 lists Phoenix Contact part numbers for the DIN rail trays rails and feet The tray side elements are used to keep the RabbitNet peripheral 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 2 Phoenix Contact DIN Rail Mounting Components DIN Rail Mounting Phoenix Contact Phoenix Contact Component Part Description Part Number Trays UM 100 PROFIL 1959874 Tray Side Elements UM 108 SE 29 59 476 Foot Elements UM 108 FE
117. ed A D converter channel using two known voltages to generate constants for that channel that are rewritten into the A D Converter Card flash memory A hardware reset will be issued to complete writes to flash memory once the constants are written and the hardware watchdog will be set Before you run this sample program make sure your 0 10 V external power supply is off and is set to 0 V Connect the power supply between one of the AINOO AINO7 analog channels and GND Connect a voltmeter across the power supply connections Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window e RDDIFF CH C Demonstrates reading a differential A D converter channel using two known voltages and constants for that channel The voltage being monitored will be displayed continuously in the STDIO window Before you run this sample program make sure your 0 10 V floating point external power supply is off and is set to 0 V Connect the power supply to one of the differential channel pairs such as AINO and AIN1 Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window User s Manual 63 e RDMA CH C Demonstrates reading a 4 20 mA A D converter channel The current being monitored will be displa
118. ed at the factorv for individual Digital I O Cards Default calibration constants gain of 1 offset 0 are stored in flash memorv which will allow vou to use the analog inputs with a tvpical accuracv of about 2 This is suffi cient for manv closed loop applications Rabbit Semiconductor recommends that vou cal ibrate your card as described above only if you have to get the highest accuracy possible when performing analog conversions User s Manual 29 2 6 Software This section provides the libraries function calls and sample programs related to the Digital I O Card 2 6 1 Dynamic C Libraries In addition to the library associated with the master two other libraries have function calls for the Digital I O Card e DIO LIB provides functions unique to the digital I O on the Digital I O Card Function calls for this library are discussed in this chapter e AIN LIB provides functions unique to the analog inputs on the Digital I O Card and the A D Converter Card Function calls for this library are discussed in this chapter Functions relevant to RabbitNet peripheral cards in general are described in Section 1 3 4 Other functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference User s Manual 2 6 2 Sample Programs Sample programs are provided in the Dynamic C SAMPLES folder The various folders contain specific sample programs that illustrate the
119. el volts2 is the voltage corresponding to the second input value minimum and maximum voltage with respect to the limits of the analog input rn AinData adataisa pointer to the structure where the calibration constants gain and offset are written to after being calculated RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO rn_anaInWrCalib 72 RabbitNet Peripheral Cards Writes the calibration constants gain and offset previously calculated by rn_anaInCalib into the analog device flash memory A hardware reset reset and a read reset register rn __ rst status must be issued after this function is called NOTE Typical calibration constants are loaded at the factory This function should be used when you need more precise calibration or recalibration or the calibration constants were corrupted in the device PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the analog input channel number 0 to 7 corresponding to AINO AIN7 channel SINGLE DIFF mAMP 0 AINO AINO AINI AINO 1 HAINI HAINI 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 4 AIN4 AIN4 5 AIN4 5 AINS AINS 6 AIN6 AIN6 AIN7 AING 7 AIN7 FAINT These channels need to be configured for current measurements as explained in Section 3 4 1 opmode is t
120. er Card Pinouts Ke A G oO o LI gt o a a 4 3 1 Headers D A Converter Cards are equipped with one polarized 1 x 9 friction lock terminals at J4 a 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 D A Converter Card at the factory 4 3 2 Indicator LED An indicator LED DS1 located near the header J3 location turns on when the D A Con verter Card is powered up then goes off when the D A Converter Card has completed its initialization process and is running The LED will be on while the D A Converter Card is receiving a transmission from the master User s Manual 87 4 4 D A Converter Outputs Figure 31 shows the D A converter outputs User Circuits AOUTIO 1 gt gt 1nF 14ko 133kQ 7 87kO L Channels A gt AOUTI0 11 E AR ume 2N7002 27 PB 13 57 ko gt 0 2 10 JE LM324 Tole 7 87 kQ Channels AOUT 2 7 AOUTI2 7 gt gt Figure 31 D A Converter Outputs The D A converter outputs are buffered and scaled to provide outputs that are software configurable for voltage ranges of 0 10 V and 0 20 V Channels AOUTO and AOUTI can also be configured in software to provide output ranges of 0 5 NOTE The D A converter out
121. er Catd 2 2 52 Digital I O Card l D A Converter Card 84 Worm 18 8 calibration emen 27 Keypad Display interface 120 L 67 analog input function calls 37 Relay Card 104 m_anaInCalib 71 rn 38 m ana nConfig 65 m analInCalib 41 rn analInDiff 69 rn anaInConfig 37 EN rn anaInmAmps 70 m_analnDiff 40 indicator LED m_anaInRdCalib 75 rn anaInRdCalib 43 A D Converter Card 55 rn anal nVolts 68 rn anaInVolts 39 D A Converter Card 87 rn anaInWrCalib 73 rn anaInWiCalib 42 Digital I O Card 22 connection to master connection to master 17 19 Keypad Display interface 124 Miu 51 53 83 digital T O function calls Relay Card 108 power supplies 34 35 sample programs 62 rn digBankIn 34 C rn digBankOut 36 jumper configurations rn digIn 34 A D Converter Card 81 connectivity tools digOuL 35 JP1 analog voltage 4 20 Connectivity Kit 3 digOutConfig 24 35 mA measurement options crimp tool 3 digital inputs
122. f you are con necting to a master such as the BL2500 that has more than one RabbitNet port NOTE The RJ 45 RabbitNet jacks are serial I O ports for use with a master and a net work of peripheral boards The RabbitNet jacks do not support Ethernet connections Some masters have only one RabbitNet port and i do not have a friction lock power terminal wi Master RabbitNet Power supply cable A D Converter ES Straight through CAT 5 6 Ethernet cable Figure 18 Connect A D Converter Card to Master You will also have to provide 5 V DC power to your A D Converter Card The power supply is connected via the friction lock terminal at header J2 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 18 You may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 3 Although there is a standard Rabbit Net DCIN power supply input on the A D Converter Card the A D Converter Card does not need DCIN power NOTE Even if you are not drawing power from a master you will need to connect the A D Converter Card ground to the ground on your master The GND pin on header J2 should be used At the present time you are limited by the number of RabbitNet ports on the master as to how many peripheral boards may be connected to that master User s Manual 53 Ke A G o LI
123. figured use anaOut zn anaOutVolts and zn anaOutStrobe to control the D A Converter Card outputs PARAMETERS handle is an address index to device information Use zn device orrn find toestablish the handle config is aconfiguration code used to set the voltage ranges for the D A Converter Card channels Make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range you will be selecting Configuration Voltage Ranges Code Channels 0 1 Channels 2 7 0 0 2 5 V 0 10 V 1 0 5 0 10 2 0 10 V 0 10 V 3 0 5 V 0 20 V 4 0 10 V 0 20 V 2 0 20 V 0 20 V Default setting after reset opmode is the mode of operation 0 asynchronous outputs are updated at the time raw data are written default mode after reset 1 synchronous outputs are updated when anaOutStrobe is executed 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 D A Con verter Card is not connected to the master SEE ALSO rn_anaOut rn_anaOutVolts rn_anaOutStrobe 92 RabbitNet Peripheral Cards Sets an analog output channel to a voltage that corresponds to the raw data value If the D A Converter Card is set to the asynchronous mode of operation the default mode the output channel will be updated at the time the raw data
124. fter which the relay will be pulsed every 1 ms with a 50 duty cycle square wave which should provide a power reduction of 50 for the given relay If this function isn t called the relays will operate without going into the power save mode of operation PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle control establishes the bitwise control of Relays 0 5 The bit positions 0 5 correspond directly to Relays 0 5 with the bit value controlling the relay as follows 0 set relay for normal operation 1 set relay for power save mode 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 Relay Card is not connected to the master SEE ALSO rnRelayAll rnRelay EXAMPLE rn RelayPwr handle 0x05 0 Sets the relays for the following operation Relavo Set to power save mode Relavi Set for normal operation Relay2 Set to power save mode Relay3 Set for normal operation Relay4 Set for normal operation Relay5 Set for normal operation 114 RabbitNet Peripheral Cards 5 5 4 Status Byte Section 1 3 5 provides information on the status bytes returned by various function calls L G gt 49 oc User s Manual 115 RN1400 5 6 Specifications 5 6 1 Electrical and Mechanical Specifications Figure 40 shows the
125. gured to supply 5 V to the liquid crystal display Series resis tors on the liquid crystal display limit the current to the LED backlight and set its intensity To provide the 5 V voltage source install 2 pin jumpers across pins 7 8 and 9 10 on header 77 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 11 gives the resistance values and maximum current corresponding to various jumper settings Table 11 Header J7 Pins to Jumper to Configure LCD Series Resistance Header J7 Pins Max Current Resistance mA 0 00 2 320 3 33 Q mm 5 00 Q id 1000 s 13 3 Q n 15 00 All 20 0 2 all infinite 9 Factory default NOTE Make sure that the jumpers are set appropriately before connecting the liquid crystal
126. h differential input is at least 1 MQ The differential input circuit of the Digital I O Card was designed to measure voltages over a range of 250 mV If the negative input is 250 mV and the positive input is 250 mV the output to the A D converter will be 5 V If both inputs are tied together and to ground the output to the A D converter will be 2 5 V The output to the A D converter will drop to 0 V when the negative input reaches 250 mV and the positive input reaches 250 mV 2 5 3 Calibrating the Analog Inputs Manufacturing tolerances for resistors bias currents offset voltages gain and the like introduce errors into the A D conversions Ideally there would be a one to one straight line relationship between the input voltage and the output of the A D converter and a graph of such a line would have a slope of 1 and would pass through the 0 0 coordinate However the errors arising from manufacturing tolerances introduce a deviation between the input voltage that is actually applied and the voltage measurement that is output by the A D converter The actual plot of voltage in vs the voltage out from A D converter is not actually a straight line However a straight line is a very good first order approximation and the calibration routines provided for the Digital I O Card are based on a straight line with a slope of 1 and an offset from 0 0 The calibration routines use two known mea surement points on the voltage in vs voltage out
127. h the Relay Card you may want to change the resistor and capacitor values used for the built in snubber circuit This can be done easily since all the resistors and capacitors used in the snubber circuits are through hole parts User s Manual 109 L G gt m oc RN1400 5 5 Software This section provides the libraries function calls and sample programs related to the Relay Card 5 5 1 Dynamic C Libraries In addition to the library associated with the master single board computer such as the BL2500 or OP7200 one other library is needed to provide function calls for the Relay Card e RELAY LIB provides functions unique to the Relay Card Function calls for this library are discussed in this chapter Functions relevant to RabbitNet peripheral cards in general are described in Section 1 3 4 Other functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference User s Manual 5 5 2 Sample Programs Sample programs are provided in the Dynamic 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 To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripher
128. has formed its self tests and is running properly The microprocessor is not working properly if this LED remains either on or off The red Microprocessor Bad LED at DS3 indicates the status of the RabbitNet Keypad Display interface Following a reset 054 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 6 3 3 Buzzer An audible buzzer can be turned on in software for variable intervals of time 124 RabbitNet Peripheral Cards 6 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 J4 or J5 In those cases where a voltage source is used the Keypad Display interface can be confi
129. he mode of operation for the specified channel RNS INGLE single ended input line RNDIFF differential input line RNmAMP 4 20 mA input line User s Manual 73 Ke A G o LI gt o a gaincode is the gain code of 0 to 7 use a gain code of 4 for 4 20 mA operation Voltage Range Gain Code Multiplier Single Ended Differential 0 xl 0 20 V 20 V 1 x2 0 10 V 10V 2 x4 0 5 V 5V 3 x5 0 4 V 4V 4 x8 0 2 5 V 2 5 5 x10 0 2 V 2V 6 x16 0 1 25 1 25 V 7 x20 0 1 V 1 V rn AinData adata isa pointer to the structure where the calibration constants gain and offset are written to after being calculated reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn_anaInRdCalib rn anaInCalib 74 RabbitNet Peripheral Cards Reads the calibration constants gain and offset from a device with analog inputs PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the analog input channel number 0 to 7 corresponding to AINO AIN7 channel SINGLE DIFF mAMP 0 AINO AINO AINI AINO 1 HAINI HAINI 2 AIN2 AIN2 AIN3 AIN2 3
130. ht doesn t light or color is wrong 0 65 9 1 Bezel may not have rust be deformed or have fingerprints 2 5 stains or other contamination 9 2 Bezel must comply with job specifications 0 65 10 1 COB seal may not have pinholes larger than 0 2mm or 2 5 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 POB gt COB 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 oxidation or 11 Soldering icicle 11 3 No residue or solder balls on PCB 11 4 No short circuits in components on PCB WM C2002M 1GLYd 20 24 User s Manual 183 1600 L T No oxidation contamination curves or 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
131. ice 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 to 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 User s Manual 13 Reads the status of which reset occurred and whether watchdogs are enabled PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle retdata is a pointer to the return address of the communication byte A set bit indicates which error occurred This register is cleared when read 7 HW 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
132. ing 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 to establish 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 12 RabbitNet Peripheral Cards 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 to device information Use rn_device orrn find to 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 dev
133. ion should be used when you need more precise calibration or recalibration or the calibration constants were corrupted in the device PARAMETERS channel is the analog input channel number 0 to 7 corresponding to AINO AIN7 channel SINGLE DIFF mAMP 0 AINO AINO AINI AINO 1 HAINI HAINI 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 4 AIN4 AIN4 5 AIN4 5 AINS AINS 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 7 These channels need to be configured for current measurements as explained in Section 3 4 1 opmode is the mode of operation for the specified channel RNS INGLE single ended input line RNDIFF differential input line RNmAMP 4 20 mA input line User s Manual 71 Ke A G o LI gt a gaincode is the gain code of 0 to 7 use a gain code of 4 for 4 20 mA operation Voltage Range Gain Code Multiplier Single Ended Differential 0 xl 0 20 V 20 V 1 x2 0 10 V 10V 2 x4 0 5 V 5V 3 x5 0 4 V 4V 4 x8 0 2 5 V 2 5 5 x10 0 2 V 2V 6 x16 0 1 25 1 25 V 7 x20 0 1 V 1 V valuel is the first raw data value read from the A D converter channel voltsl is the voltage corresponding to the first input value minimum and maximum voltage with respect to the limits of the analog input value2 is the second raw data value read from the A D converter chann
134. isplay 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 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 J4 on the Keypad Display interface making sure that pin 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 C sample programs illustrate the use of the 2 x 20 display A 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 The 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 int
135. itches 51 54 on the Demon stration Board to toggle the input low on the corresponding channel Inputs INO4 IN23 can be toggled low by touching the line with a GND signal The status of the inputs is displayed in the Dynamic C STDIO window e DIGBANKOUT C Demonstrates writing values to a bank of outputs by using the Demon stration Board whose LEDs are toggled on off via the outputs Before you run this sample program connect K1 and GND on connector J4 of the Digital Card to an external 5 V power supply If you are not drawing power from the master you will also have to connect DCIN 5 V and GND from connector J9 on the Digital I O Card to external power supplies Make the following connections from the Digital I O Card to the Demonstration Board e OUTOO DSI OUTOI DS2 OUTO02 DS3 OUTO03 DS4 K1 5 V GND GND Once this sample program is compiled and running the Dynamic C STDIO window will prompt to select an output bank Select 1 for outputs OUT00 OUTO7 Next you will be prompted to enter a hex byte value for example enter AA to toggle LEDs DS1 and DS3 on off User s Manual 31 e DIGOUT c Demonstrates the use of the outputs by using the Demonstration Board whose LEDs are toggled on off via the outputs Before you run this sample program use the same power supply connections and the same connections between the Digital I O Card and the Demonstration Board as for the DIG BANKOUT C sampl
136. its s Power 5 V DC 500 mA all relays energized Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Six screw terminal headers Friction lock connectors e 4 position terminal with 0 156 pitch D One RJ 45 RabbitNet jack 5 3 94 x 5 87 x 0 82 Bean Sie 100 mm x 150 mm x 21 mm 2 User s Manual 117 RN1400 5 6 2 Physical Mounting Figure 41 shows position information to assist with interfacing other boards with the Relay Card L 4 670 N 118 6 3 175 ji 80 6 gt B 1 690 43 0 053 13 5 ad a lt 2 3 0 010 0 020 0 25 0 5 A ANA Y iri ge m E EE 0 040 J1 J2 J3 J7 dc 1 0 ow 86 ol Y i289 c5 ME 58 J4 J5 J6 bi PEEL EA LA gt 7 7 amm 7 i Ny BS E 2 090 No 53 1 e 3 565 90 6 L 5 070 128 8 0 250 5 37 gt 6 4 136 5 87 gt 150 Figure 41 User Board Footprint for Relay Card 118 RabbitNet Peripheral Cards 6 KEYPAD DISPLAY INTERFACE Chapter 6 describes the features and the use of the RabbitNet Keypad Display interface one of the peripheral cards designed for use with the RabbitNet expansion ports on selected Rabbit Semiconductor singl
137. le channel is the channel number 0 to 3 Channel Voltage Range 0 Oto 10V 1 Oto 10 2 Oto 1 V 3 250 mV retdata is a pointer to the return address of a raw data value 0 1023 for 10 bit A D conversions sample is x number of samples 1 sample approximately 500 us gt 1 sample each sampling will wait for an updated conversion this may take 40 to 160 us longer depending on how many channels are enabled reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the Digital I O Card is not connected to the master SEE ALSO rn anaInConfig rn anaInVolts rn anaInDiff 38 RabbitNet Peripheral Cards Reads the state of a single ended analog input channel Set the sample parameter greater than to average the readings PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the channel number 0 to 2 Channel Voltage Range 0 Oto 10V 1 Oto 10V 2 O0 to 4 1 V retdata isa pointer to a floating point voltage value which is updated for the channel being accessed represented in units of volts NOTE If there is a data overflow or an out of range error the value will be set to 4096 as defined by the macro ADOVERFLOW sample is x number of samples 1 s
138. library associated with the master single board computer such as the BL2500 or OP7200 one other library is needed to provide function calls for the A D Converter Card e AIN LIB provides functions unique to the analog inputs on the Digital I O Card and the A D Converter Card Function calls for this library are discussed in this chapter Functions relevant to RabbitNet peripheral cards in general are described in Section 1 3 4 Other functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference User s Manual 3 5 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 To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripheral card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC The SAMPLES RABBITNET RN1200 subdirectory contains the following sample pro grams When running these sample programs the A D
139. may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 3 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 28 When selecting DCIN note that DCIN must be at least 3 V more than the voltage of the D A converter output For example if AOUTO is configured for 0 20 V DCIN must be at least 23 V otherwise the maximum D A converter output will be DCIN 3 V NOTE Even if you are not drawing power from a master you will need to connect the D A Converter Card ground to the ground on your master The GND pin on header J3 should be used User s Manual 85 L G o LA Lond LA o 2 c e L ien a 4 2 1 Power Supply Figure 29 illustrates the assembled friction lock connector wiring diagram for the power supplies used to supply power to the D A Converter Card DCIN 5 V If you are not drawing power from the master connect the grounds of the two power supplies together at the power supplies RABBIT NET Figure 29 Power Supply Connections 86 RabbitNet Peripheral Cards 4 3 Pinout The D A Converter Card pinouts are shown in Figure 30 Power Supply HIMOd L1188VH GND AOUT7 AOUT6 RabbitNet ST Micro controller AOUT3 Outputs Program AOUT2 Port AOUTI AOUTO J3 mm ps1 Figure 30 D A Convert
140. 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 The residual rosin or tin oil 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 184 RabbitNet Peripheral Cards 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 59 for 240 gi operation 0 48 hours under driving condition Low temperature The sample should be allowed to stand at for 240 RE operation 0 48 hours under driving condition The sample should be allowed to stand at 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 b
141. menu 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 ZMENU_BORDER places a border around the menu ZMENU_KEYPAD uses the keypad to control the menu These parameters can be 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 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 mus
142. microcontroller at the factory No header is installed at J8 which is reserved for future use 6 3 1 1 Keypads A 1x 16 IDC 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 is 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 User s Manual 123 1600 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 Te
143. n header and AIN4 AIN7 can also be configured for use as 4 20 mA analog inputs Contact your Rabbit Semiconductor Sales representative or your authorized distributor for more informa tion on these options and the minimum order quantity The single ended scale of 0 2 56 V with a gain of 8 is used to get an A D current conver sion of 12 5 u A tick 58 RabbitNet Peripheral Cards 3 4 2 Calibrating the A D Converter Chip Manufacturing tolerances for resistors bias currents offset voltages gain and the like introduce errors into the A D conversions Ideally there would be a one to one straight line relationship between the input voltage and the output of the A D converter and a graph of such a line would have a slope of 1 and would pass through the 0 0 coordinate However the errors arising from manufacturing tolerances introduce a deviation between the applied input voltage and the voltage that is output by the A D converter The actual plot of voltage in vs the voltage out from A D converter is not actually a straight line However a straight line is a very good first order approximation and the calibration rou tines provided for the A D Converter Card are based on a straight line with a slope of 1 and an offset from 0 0 The calibration routines use two known measurement points on the voltage in vs voltage out line as the basis to calculate calibration constants that will be used to adjust for the slope of the line and
144. nected to a master PARAMETERS handle is an address index to device information Use zn device or rn_find to establish the handle sendecho is the character to echo back recdata is a 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 10 RabbitNet Peripheral Cards Writes a 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 or rn_find to 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 was 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
145. nfig rn anaIn rn anaInmAmps rn anaInVolts User s Manual 69 Reads the state of a 4 20 mA analog input channel Set the sample parameter greater than one to aver age the readings PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the channel number 0 to 7 corresponding to AINO AIN7 retdata is a pointer to the 4 20 mA value if there is a data overflow or an out of range error the value will be set to 4096 as defined by the macro ADOVERFLOW sample is x number of samples 1 read current value of the given A D converter channel gt 1 read given channel x times and average the readings taken reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the 4 20 mA input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn anaInConfig rn anaIn rn anaInVolts rn anaInDiff 70 RabbitNet Peripheral Cards Calibrates the response of an analog input channel as a linear function using the two conversion points provided Four values are calculated and the results are sent later to the analog input device using the function anaInWrCalib Each channel will have the following information a linear constant or gain a voltage offset NOTE Typical calibration constants are loaded at the factory This funct
146. nstallation Contact your authorized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information on Dynamic C upgrades 18 RabbitNet Peripheral Cards 2 2 Connections Use a straight through 5 6 Ethernet cable to connect the Digital I O Card s RJ 45 RabbitNet jack to a RabbitNet port on the master You may use either port if you are con necting to a master such as the BL2500 that has more than one RabbitNet port 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 Ethernet connections Digital I O Card Power supply cable Some masters have only one RabbitNet port and do not have a friction lock power terminal RabbitNet P ll Straight through CAT 5 6 Ethernet cable Figure 4 Connect Digital I O Card to Master You will also have to provide two separate DC power supplies to your Digital I O Card 5 V and a DCIN of 9 32 V These power supplies are connected via the polarized friction lock terminal at header J9 You may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 3 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 4 If you are using the digital outputs you will need two additional external p
147. o 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 J5 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 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 151
148. o which it is connected is programmed using version 8 50 or later of Rabbit Semiconductor s Dynamic C If you are using a BL2500 or an OP7200 as your master with an earlier ver sion of Dynamic C Rabbit Semiconductor recommends that you upgrade your Dynamic C installation Contact your authorized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information on Dynamic C upgrades 120 RabbitNet Peripheral Cards 6 2 Connections Use a straight through CAT 5 6 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 Some masters have only one RabbitNet port and do not have a friction lock power terminal T m Master RabbitNet Power supply cable Keypad Display b Interface Straight through CAT 5 6 Ethernet cable l Figure 43 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 p
149. ompanies display shift RAM frequency changes 0 move ADD DD RAM Address When fcp or fosc is 1 Shift to the right Corresponds to cursor 270 KHz O Shift to the left address 40 290 37 jis 51i 14 li both DD and CG RAM 1 2 Lines N 0 1 line address 1 5x 10 dots F 0 5x 7 dots 1 Internally operating Sets DD RAM address 0 in Return Home remain unchanged Sets interface data length DL Function Set DL number of display lines L and 40 us character fonts F Read Busy internal operation is being Read Data from CG or Read Data heer data into DD ram or CG 40 us DD RAM 1 Displav shift ACG CG RAM Address Example 1 8 bits DL 0 4 bits AC Address counter used for 0 Can accept instruction 190 RabbitNet Peripheral Cards If the power supply conditions for correctly operating the internal reset circuit not met initialization by instruction is required or use the following procedure for initialization Instructions 1 8 Bit Interface 2 4 bit Interface Power ON Power ON Wait 15ms or more after V reaches 4 5V Wait 15ms or more after V reaches 4 5V before this instruction Busy flag cannot be checked Function set 8 bits RS RIW DB 086 DBS 084 083 DB2 081 DBO RS Rw 087 DB6 OBS 084 0 0 0 0 1 4 0 0 0 0 1 1 Busy flag cannot be checked Function set 8 bits before this instruction RS RIW DB DB6 085 084 DB3 DB2 081 080 RS RW 087 DB6 085 DB4 0 0 0
150. operly The examples in this section explain how to assign key code indexes for the keypads supplied the Expansion Kit A 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_keyConfig 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 pins which you configure as strobe pins and data pins using the 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 8 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 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 156 RabbitNet Peripheral Cards 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 2 SNP
151. or LED DS1 located under the header J10 location turns on when the Digital I O Card is powered up then goes off once the Digital I O Card is running The LED will flicker when the Digital I O Card is receiving a transmission from the master 22 RabbitNet Peripheral Cards 2 4 Digital I O 2 4 1 Digital Inputs The Digital I O Card has 24 digital inputs INOO IN23 each of which is protected over a range of 36 V to 36 V The inputs are factory configured to be pulled up to 5 V but they can also be pulled up to DCIN or K1 INO0 IN15 K2 IN16 IN23 or down to 0 V in banks of eight by changing a jumper as shown in Figure 9 The locations of the headers and the jumper configurations are described in Section 2 7 2 A G o Q 5 5 a Factory Default Microprocessor Figure 9 Digital I O Card Digital Inputs Pulled Up Factory Default NOTE If the inputs are pulled up to K1 K2 the voltage range over which the digital inputs are protected changes to K1 K2 36 V to 36 V in order to keep the power dissipation through the pull up resistor below the rated 62 mW The actual switching threshold is approximately 2 40 V Anything below this value is a logic 0 and Normal Voltage Levels anything above is a logic 1 TT 40 V4 The digital inputs are each fully protected over a o 79V range of 36 V to 36 and can handle short 8 spikes of 40 V 9 sv 5 Q E 8 gt
152. ors are described in the Dynamic C Function Reference User s Manual More complete information on Dynamic C is provided in the Dynamic C User s Manual 6 RabbitNet Peripheral Cards 1 3 1 1 Accessing and Downloading Dynamic Libraries The libraries needed to run the RabbitNet peripheral cards are available on the CD included with the Development Kit for the master single board computer or they may be downloaded from http www rabbit com support downloads on Rabbit Semiconductor 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 file double click on the file name to begin the installation InstallShield will install the files for you at a location you designate 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 be able to use the revamped Dynamic C installation with the RabbitNet periph eral card and you will continue to be able to use this installation with all the other Rabbit Semiconductor products you used before User s Manual 7 1 3 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 libra
153. ower from the BL2500 or BL 2600 as shown in Figure 43 You may assemble a suitable cable using the friction lock connectors from the Connectivity Kit described in Section 1 1 3 Although there is a stan dard RabbitNet DCIN power supply input on the 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 User s Manual 121 1600 6 2 1 Power Supply Figure 44 illustrates the assembled friction lock connector wiring diagram for the power supplies 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 44 Power Supply Connections Use 18 gauge AWG wire 1 mm for power supply connec tions up to 10 m away from the master If the wire length is less than 3 m 22 gauge AWG wire 0 4 mm is acceptable Do not daisy chain the power supply connections between different peripheral cards but use a star configuration from the master
154. ower supplies up to 36 V that can each handle up to 1 6 A for and K2 The actual voltage and current depend on the requirements of the loads you plan to connect to the digital outputs These power supplies are connected to friction lock terminals J1 and J4 on the Digital I O Card You may assemble suitable cables using the friction lock connectors from the Con nectivity Kit described in Section 1 1 3 See Section 2 2 1 for detailed wiring diagrams User s Manual 19 A G o Q 5 5 a 2 2 1 Power Supply Figure 5 illustrates the assembled friction lock connector wiring diagram for the power supplies used to supply power to the Digital I O Card DCIN 5 V If you are not drawing power from the master connect the power supply grounds of the DCIN and 5 V power supplies at the power supplies K1 K2 Figure 5 Power Supply Connections NOTE If you are using separate DC power supplies for DCIN and 5 V because you are not drawing this power from the master note that the crimp pins used in the fraction lock connector assembly can only hold one wire each Connect the one GND wire from the fraction lock connector assembly to the ground on one of the two power supplies then use a separate wire to connect the power supply grounds together Use 18 gauge AWG wire for power supply connections up to 10 m away from the master If the wire length is less than 3 m 22 gauge AWG wire is accepta
155. pData 139 rn dispGoto 137 rn displnit 135 rn dispOnoff 136 rn dispPrintf 138 rn dispPutc 139 keypad function calls rn keyConfig 132 rn keyGet 134 rn 132 rn keyProcess 134 rn keyUnget 134 LEDs function calls rn keyLedOut 131 power supplies 121 sample programs 128 Relay Card connection to master 103 105 function calls rn Relay 112 rn RelayAIl 113 rn RelayPwr 109 114 power supplies 105 relay 109 sample programs 110 RNET LIB function calls rn comm status 14 rn device 8 9 rn echo 10 rn enable wdt 13 rn find 10 30 32 62 90 110 rn 13 TAME EE 9 t read os decree eR 11 Ilreset 12 In rst status 14 rn SW Wdt 12 ID Write 11 5 sample programs 8 A D Converter Card 62 A D converter inputs AIN CALDIFF CH C AIN RDSE ALL C 64 AIN RDSE CH C 61 64 AIN READ CAL DATA 64 D A Converter Card 90 calibration constants GETCALIB C 89 DAC ASYNCC
156. pheral cards are equipped with RJ 45 8 pin female connectors The cables may be swapped end for end without affecting functionality 1 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 selected 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 5 1 3 Dynamic Dynamic is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Rabbit Semiconductor single board computers and other devices based on the Rabbit microprocessor 1 3 1 Dynamic Libraries In addition to the library associated with the master single board computer such as the BL2500 or OP7200 several other libraries are needed to provide function calls for Rabbit Net peripheral cards e RN CFG BL25 LIB used to configure the
157. ports on selected Rabbit Semiconductor single board computers operator interfaces and RabbitCore Prototyping Boards Figure 3 shows a conceptual view of the Digital I O Card connected to a master RabbitNet LAN Digital DIGITAL MASTER pe INPUTS SLAVE DIGITAL Pu OUTPUTS Rabbit 30009 ANALOG Microprocessor INPUTS DCIN 5 V EXTERNAL K SUPPLIES Figure 3 Digital I O Card Slave Connected to Master NOTE The OP7200 master and the RabbitCore Prototyping Boards do not supply any power to the slave User s Manual 17 Ke A G 5 a 2 1 Features e 24 protected and filtered digital inputs e 16 high speed protected digital outputs individually configurable as sinking or sourcing up to 200 mA at up to 36 V DC e four 10 bit analog input channels 2 buffered 0 10 V single ended buffered 0 1 V single ended 1 buffered 0 25 0 25 V differential e can be mounted in standard 100 mm DIN rail trays sold by other suppliers e interfaces with master through RabbitNet serial protocol at 1 Megabit per second using standard CAT 5 6 Ethernet cable can be up to 10 m 33 ft away from master 2 1 1 Software The Digital I O Card is a slave the master to which it is connected is programmed using version 8 01 or later of Rabbit Semiconductor s Dynamic C If you are using a master with an earlier version of Dynamic C Rabbit Semiconductor recommends that you upgrade your Dynamic C i
158. ptions 5 6 Connect for 4 20 mA option on AIN2 n c 7 8 Connect for 4 20 mA option on AIN3 n c User s Manual 81 82 RabbitNet Peripheral Cards 4 D A CONVERTER CARD Chapter 4 describes the features and the use of the D A Con verter Card one of the peripheral cards designed for use with the RabbitNet expansion ports on selected Rabbit Semiconductor single board computers operator interfaces and RabbitCore Prototyping Boards Figure 27 shows a conceptual view of the D A Converter Card connected to a master RabbitNet LAN D A Converter MASTER Card SLAVE ANALOG OUTPUTS Rabbit 30009 Microprocessor Figure 27 A D Converter Card Slave Connected to Master NOTE The OP7200 master and the RabbitCore Prototyping Boards do not supply any power to the slave User s Manual 83 Ke A G oO o LI gt o lt a 4 1 Features e 8 channels of 12 bit analog outputs e 2channels software configurable for output voltage ranges of 0 2 5 V 0 5 V 0 10 V or 0 20 V remaining 6 channels have software configurable output voltage ranges of 0 10 V or 0 20 V e 2 5 kHz update rate e output impedance 8 Q e can be mounted in standard 100 mm DIN rail trays sold by other suppliers e interfaces with master through RabbitNet serial protocol at 1 Megabit per second using standard Ethernet cable up to 10 m 33 ft long 4 1 1 Software The
159. put voltage depends on the original power supply voltage DCIN which must be at least 3 V more than the voltage of the D A converter output For example if AOUTO is configured for 0 20 V DCIN must be at least 23 V other wise the maximum D A converter output will be DCIN 3 V While each D A converter channel can output up to 10 mA the total power dissipation by the LM324 op amp at any instant must be kept below 400 mW or 400 mW DCIN 4 mA per channel The D A Converter Card outputs can be updated asynchronously as raw data are processed and written or they may be updated simultaneously by executing the rn_anaOutStrobe function call with the opmode parameter in the rn_anaOutConfig function call set for synchronous operation Further details are provided in Section 4 5 3 D A Converter Card Function Calls 88 RabbitNet Peripheral Cards 4 4 1 Calibration The D A converter outputs factory calibrated for the 0 10 V output range and typical calibration constants are stored in the flash memory for the other voltage ranges You may recalibrate the D A converter outputs at a later time using the zn anaOutCalib soft ware function described in Section 4 5 3 D A Converter Card Function Calls The calibration constants are stored in flash memory in a table form When you recalibrate your D A Converter Card only the calibration constants related to the voltage range you recalibrated will be overwritten The
160. r Card 80 D A Converter Card 102 Digital I O Card 47 Keypad Display interface 144 Relay Card 118 pinout A D Converter headers 55 D A Converter headers 87 Digital I O Card headers 22 RabbitNet Keypad Display in terface headers 123 Relay Card headers 108 power supplies A D Converter Card 53 D A Converter Card 85 105 Digital I O Card 19 RabbitNet Keypad Display interface 121 Relay Card 105 wiring diagram A D Converter Card 54 D A Converter Card 86 Digital I O Card 20 Keypad Display interface 122 Relay Card 106 R RabbitNet Ethernet cables to connect peripheral cards 1 2 general description 1 peripheral cards 2 A D converter 2 D A converter 3 digital VO 2 display keypad interface 3 OP7200 display 3 relay iecit 3 physical implementation 5 RabbitNet Keypad Display interface buzzer function calls rn keyBuzzer 130 rn keyBuzzerAct 130 connection to master 121 display function calls rn dispBacklight 136 rn dispClear 137 rn dispCmd 140 rn dispCursor 138 rn dis
161. r to the slave User s Manual 51 A G o LI gt a 3 1 Features e 8 single ended 11 bit or 4 differential 12 bit analog inputs e 4 channels can be set with jumpers to be 11 bit 4 20 mA analog inputs all 8 channels be special ordered in quantity to be 11 bit 4 20 mA analog inputs e MQ input impedance e 2 5 ksamples s sampling rate e software controlled voltage ranges 0 1 V 2 V 5 V 10 V 20 V DC single ended or 1 V 2 5 V 10 V x20 V DC differential e can be mounted in standard 100 mm DIN rail trays sold by other suppliers e interfaces with master through RabbitNet serial protocol at 1 Megabit per second using standard Ethernet cable up to 10 m 33 ft long 3 1 1 Software The A D Converter Card is a slave the master to which it is connected is programmed using version 8 01 or later of Rabbit Semiconductor s Dynamic C If you are using a BL2500 or an OP7200 as your master with an earlier version of Dynamic C Rabbit Semi conductor recommends that you upgrade your Dynamic C installation Contact your autho rized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information on Dynamic C upgrades 52 RabbitNet Peripheral Cards 3 2 Connections Use a straight through CAT 5 6 Ethernet cable to connect the A D Converter Card s RJ 45 RabbitNet jack to a RabbitNet port on the master You may use either port i
162. ram 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 8 7 6 5 4 3 2 1 0 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 key 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 160 RabbitNet Peripheral Cards A 5 2 x 6 Keypad Datasheet 109 8 78 b 4 3 271 FLEX CABLE CONTACTS 0 4 x 0 4 pocket window 12 places 0 62R typ im k gt 0 525 typ 0 525 typ Y 0 31 R 2 places exposed contact area near side User s Manual 161 1600 6 3 x 4 Keypad Datasheet 0 62R corners 0 25 x 0 25 window 12 places exposed contact area 162 RabbitNet Peripheral Cards 7 4 x 10 Keypad Datasheet 9 9 9 9 ooo o oio lo olg 0009009000 iel je je iei io 1600 8 2 x 2
163. re 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 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 As selections are 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 A 3 User s Manual 129 1600 6 6 3 RabbitNet Keypad Display interface Function Calls The RabbitNet Keypad Display interface uses keypad function calls that are similar to those used by other Rabbit Semiconductor devices such as the OP6800 the OP7200 and the LCD keypad module 6 6 3 1 Buzzer The buzzer on the RabbitNet Keypad Display interface can be programmed in software to
164. ries 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 instructions at the beginning of the sample program To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The RabbitNet peripheral card must be connected to a master such as the BL2500 with its Demonstration Board con nected as explained in the Coyote BL2500 User s Manual or other user s manual The BL2500 or other master must be in Program Mode and must be connected via the pro gramming cable to a PC More complete information on Dynamic C is provided in the Dynamic C User s Manual 1 3 3 General RabbitNet Operation The SAMPLES RABBITNET subdirectory contains the following sample programs When running these sample programs the RabbitNet peripheral card may be connected to either RabbitNet port on a master such as the BL2500 that has two RabbitNet ports The sample program will use rn device to first look for peripheral cards connected to the master The last peripheral card found will run the sample program The sample program will also display the serial number s of the peripheral cards connected to which RabbitNet port on the master using the STDIO win
165. 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 find User s Manual 9 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 pna physical node address 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 MATCH PORT match port bitmask 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 E3446CO1L handle rn_find amp newdev RETURN VALUE Returns the handle of the first device matching the criteria 1 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 con
166. s one of the 16 lines available for a keypad interface For example a value of Ox1F00 2 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 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 zn 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 5510 41E 3 E 2 E 1 0 132 RabbitNet Peripheral Cards 4 x 10 keypad matrix with raw key code index assignments in brackets 321133112411251116111711 811 9110111
167. sh 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 handle is an address index to device information Use zn 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 to 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 134 RabbitNet Peripheral Cards 6 6 3 4 The functions used to control the character display are contained in the 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 N setting the displav on and cursor off and 6 clearing the displav and putting the cursor in
168. t 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 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 154 RabbitNet Peripheral Cards ZMENU_ STRING is 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
169. tes returned by various function calls G L G LI o gt oO lt a User s Manual 99 4 6 Specifications 4 6 1 Electrical and Mechanical Specifications Figure 32 shows the mechanical dimensions for the D A Converter Card 0 80 20 0 125 32 YANO Lav X Ax PIS Y 5 j jie TRT 0 H 0 aout e S H g C E z GA RP 559 03 NER QS E E ie 5 CI Jor on 8 zi ke MIS coe L 7 Y ue 051 Y Y NG 0 250 3 438 No 6 4 87 3 938 S 100 3 938 100 Figure 32 D A Converter Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 100 RabbitNet Peripheral Cards Table 9 lists the electrical mechanical and environmental specifications for the D A Con verter Card Table 9 D A Converter Card Specifications Feature Specification 8 channels of 12 bit analog outputs 8 2 output impedance 2 5 kHz update rate Analog Outputs e software controlled output voltage ranges 0 2 5 V 0 5 V 0 10 V 0 20 V DC channels AOUTO AOUTI 0 10 V 0 20 V DC channels
170. than one to average the readings This function provides the fastest A D conversion rate PARAMETERS handle is an address index to device information Use zn device or rn_find to estab lish the handle channel is the channel number 0 to 7 corresponding to AINO AIN7 retdata is pointer to a raw data value of 0 2047 for 11 bit A D conversions with a signed 12th bit sample is x number of samples 1 2 read current value of the given A D converter channel gt 1 read given channel x times and average the readings taken reserved is reserved for future use Set to 0 RETURN VALUE The status byte from the previous command and a return pointer to the raw input data 1 means that device information indicates the A D Converter Card is not connected to the master SEE ALSO rn anaInConfig rn anaInVolts rn anaInmAmps rn anaInDiff User s Manual 67 Ke A G o LI gt o a Reads the state of an analog input channel Set the sample parameter greater than one to average the readings PARAMETERS handle is an address index to device information Use zn device orrn find to estab lish the handle channel is the channel number 0 to 7 corresponding to AINO AIN7 retdata isa pointer to the voltage value if there is a data overflow or an out of range error the value will be set to 4096 as defined by the macro ADOVERFLOW sample is x number of samples 2 read current value
171. the offset from 0 0 The calibration routines typically use input voltage points that are 10 less then the maximum and 10 more than the minimum readings possible for the A D converter on any given range Quality calibration procedures are extremely important in obtaining good A D converter results No matter how high a resolution the A D converter has it cannot compensate for improper calibration A D converter results will never be more accurate than the meter used in the calibration process Therefore use the best digital volt and milli amp meter available that meets or exceeds the accuracy of the A D converter chip 3 4 2 1 Modes The A D converter operates in three different modes e the single ended mode e the differential mode and e the 4 20 mA current mode The calibration and read routines provided correspond to these three modes 3 4 2 2 Calibration Constants The A D converter has eight individual input channels and each channel has eight pro grammable gains Additionally the A D converter has the capability for adjacent inputs to be paired to make differential measurements with eight different gains and provision is also made to convert 4 20 mA analog current measurements To get the best results from the A D converter it is necessary to calibrate each mode for each of its gains The following table provides a grid for each possible set of calibration constants User s Manual 59 Ke A G E
172. ts are pulled up with a jumper across pins 1 2 on headers JP1 JP2 and JP3 If you are not drawing power from 30 RabbitNet Peripheral Cards the master you will also have to connect DCIN 5 and GND from connector J9 on the Digital I O Card to external power supplies A G o Q 5 5 a On the Demonstration Board check that the factory default positioning of jumpers is across pins 3 5 and 4 6 of header H2 Make the following connections from the Digital I O Card to the Demonstration Board INOO 51 INO1 S2 INO2 S3 INS Jumpers K1 5 V H1 None GND GND H2 As shown Once this sample program is compiled and running you may press switches 51 54 on the Demonstration Board to toggle the input low on the corresponding channel Inputs INO4 IN23 can be toggled low by touching the line with a GND signal The status of the inputs is displayed in the Dynamic C STDIO window e DIGIN C Demonstrates the use of the digital inputs by using the Demonstration Board to read individual input channels while an individual channel is toggled from high to low by pressing a pushbutton switch on the Demonstration Board Before you run this sample program use the same power supply connections and the same connections between the Digital I O Card and the Demonstration Board as shown for the DIGBANKIN C sample program Once DIGIN C is compiled and running you may press sw
173. unning select the set of relays to activate in the Dynamic C STDIO window Watch the relay LEDs to verify visually that the relays are being sequenced User s Manual 111 RN1400 5 5 3 Relay Card Function Calls CAUTION Activating several relays in a short period of time may cause a power surge that may exceed the peak power rating of your power supply It is ultimately the A responsibility of the application designer to ensure that the power supply meets the requirements for the intended application Also note that the power save mode will reduce the holding force for the relay con tacts Rabbit Semiconductor recommends that you not use the power save mode when the Relay Card is expected to be subject to shock and vibration Sets the state of a given relay by connecting the relay common contact to either the relay normally closed contact or to the relay normally open contact PARAMETERS handle is an address index to device information Use or rn_find to estab lish the handle relay is the selected relay 0 5 value is used to set a given relay connection as follows 0 common connected to normally closed contact 1 common connected to normally open contact 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 Relay Card is not connected to the master SEE ALSO rnRelayAll rnRelayPwr
174. urs after the tests listed in Table 4 2 Standard specifications for Reliability have been executed in order to ensure stability Test Model Inspection Criteria Current Consumption The current consumption should conform to the product 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 C 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 i WM C2002M 1GLYd 23 24 186 RabbitNet Peripheral Cards 4 3 Precautions Use of LCM 4 3 1 Handling of LCM Don t give external shock Don t apply excessive force on the surface e 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
175. using previously set calibration constants to obtain the desired voltage Remember to run the rn_anaOutRdCalib function before executing this function so the calibration table will contain valid data Here s an example for channel 0 channel lt 8 channel rn anaOutRdCalib device0 channel amp DacCalTablel 0 If the D A Converter Card is set to the asynchronous mode of operation the default mode the output channel will be updated at the time the raw data are being written If the D A Converter Card is set to the synchronous mode of operation all the D A converter outputs will be updated with the raw data values previously written or default value of zero when the rn_anaOutStrobe function is executed The voltage range of the D A converter outputs will be 0 10 V default or one of the other voltage range options previously set with the anaInConfig function Make sure that the DCIN for the D A Converter Card is at least 3 V more than the maximum voltage of the D A converter output voltage range you will be selecting Configuration Voltage Ranges Code Channels 0 1 Channels 2 7 0 0 2 5 V 0 10 V 1 0 5 V 0 10 V 2 0 10 0 10 3 0 5 V 0 20 V 4 0 10 V 0 20 V 5 0 20 V 0 20 V Default setting after reset PARAMETERS handle is an address index to device information Use zn device orrn find to establish the handle channel is the channel number 0 to 7 corresponding
176. y any power to the slave User s Manual 103 RN1400 5 1 Features e 6SPDT relays rated at 250 V AC 1200 V A 30 V DC up to 240 W with built in snub bers e can be mounted in standard 100 mm DIN rail trays sold by other suppliers e 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 5 1 1 Software The Relay Card is a slave the master to which it is connected is programmed using ver sion 8 01 or later of Rabbit Semiconductor s Dynamic C If you are using a BL2500 or an OP7200 as your master with an earlier version of Dynamic C Rabbit Semiconductor rec ommends that you upgrade your Dynamic C installation Contact your authorized Rabbit Semiconductor distributor or your Rabbit Semiconductor Sales Representative for more information on Dynamic C upgrades 104 RabbitNet Peripheral Cards 5 2 Connections Use a straight through CAT 5 6 Ethernet cable to connect the Relay Card s RJ 45 Rabbit Net jack to a RabbitNet port on the master You may use either port if you are connecting to a master such as the BL2500 that has more than one RabbitNet port 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 Ethernet connections Power supply cable Some masters have only one RabbitNet port and do not have a friction lock
177. yed continuously in the STDIO window Before you run this sample program place jumpers across pins 1 2 3 4 5 6 and 7 8 of header JP1 on the A D Converter Card Connect an external power supply make sure the power supply is set at O V and is turned off between one of the analog input channels and GND with 500 Q resistor and an ammeter connected as shown for the CALMA CH C sample program If you do not use the 500 02 resistor to simulate 4 20 mA current source from a voltage swing of 0 10 V your power supply voltage output cannot exceed 2 0 V Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window e AIN RDSE ALL C Reads and displays the voltage and equivalent values of all single ended analog input channels Coefficients are read from the A D Converter Card The computed raw data and equivalent voltages will be displayed Before you run this sample program make sure your 0 10 V external power supply is off and is set to 0 V Connect the power supply between one of the AINOO AINO7 analog channels and GND Connect a voltmeter across the power supply connections Now power up the master and the A D Converter Card and compile and run the sample program Turn the external power supply on and follow the prompts in the Dynamic C STDIO window e AIN RDSE CH C Reads and displays the voltage and equiv
178. ypad 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 User s Manual 137 1600 Sets cursor type to be on off or blinking PARAMETERS handle is an address index to device information Use zn or rn_find to 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 zn device or rn_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
179. ypad Display Interface Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 142 RabbitNet Peripheral Cards Table 12 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 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 Vcc 5 V DC 60 mA maximum Temperature 09 to 50 C typ with customer supplied LCD Humidity 5 to 95 noncondensing IDC connectors one x 16 header with 0 1 pitch one 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 Table 12 lists the electrical mechanical and environmental specifications for the Rabbit Net Keypad Display interface User s M

Download Pdf Manuals

image

Related Search

Related Contents

Sweex 100K USB  XTS3000携帯型一般無線用無線機 取扱説明書  RUT88T-FN  Therma-Stor Products Group Phoenix 200 HT User's Manual    Square D FSG2J21BP Instructions / Assembly    Jerome® Communications Software (JCS)  4923-4133885b CLIPSO-E1.qxp - Best Pressure Cooker Review  REGISTRO DE USUARIO SUPERINTENDENCIA DE INDUSTRIA Y  

Copyright © All rights reserved.
Failed to retrieve file