Home
Communication Protocol 4 LD 9 LD - keller
Contents
1. DelaylOOTCYx 150 0 405 x 100 x 150 Gms read the results out if I2C read xByte ADDR 5 return 0x91 interpret integer values Zl status Zoscqet i0 s U8 Zl pressure F32 _U16 ZSSCget 1 lt lt 8 U16 ZSSCget 2 p U16 ZI temperature F32 _U16 ZSSCget 3 lt lt 8 U16 Z2SSCget 4 T U16 Zl pressare 4I pressure 16384 Pmax Pmin 32768 Pmin f phar ZI temperature _Ul16 ZI_temperature gt gt 4 24 0 05 50 Ji TI return ZSSCerror end of _U8 get PnT GPIO U8 ADDR Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 24 25 C 7 2 Application Notes Coming as soon as possible 7 3 Protocol Changes e Document Version 2 0 7 December 2012 Many chapters with basic information to the I2C interface added the Version 1 0 was a preliminary version with only KELLER specific descriptions Changed the default Slave Address from 0x00 to 0x40 e Document Version 2 1 15 February 2013 Changed the Conversion Time from 10ms to 4ms New Graphics to show the faster sampling and the lower shorter cur rent consumption e Document Version 2 2 05 November 2013 Mainly the chapter K 404 User Manual added Further slight revisions for a better understanding but no technical changes e Document Version 2 3 10 March 2014 Changed the Conversion Time from 4ms to 6ms This is the worst case
2. The combination of Cust_IDO and Cust_ID1 makes a 32bit code to recover calibration data at KELLER or to have a recognition feature for data bases on the customer side The scaling e g PR 1 10bar is stored in ScalingO to Scaling4 but could also be read on the associating papers The date of calibration is an additional information that finds also place in ScalingO Read Memory Content ADDR default 0x40 First byte is ADDR lt lt 1 1 for Read ADDR 1 0 for Write 1 Request Measurement 2 bytes from Master ADDR W MTP Address 0x00 0x16 2 Wait for 0 6ms or check the Busy flag 3 Read Measurement 1 byte from Master 3 bytes from Slave ADDR IR STATUS Mem MSB Mem LSB Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 12 25 C In the two LSBs of cell 0x12 is the pressure mode sealed or vented gauge and zero definition stored 4 Interpretation The content of cell 0x13 and 0x14 is a floating point value that indicates the pressure in bar for the lower output value 16384 The content of cell 0x15 and 0x16 is a floating point value that indicates the pressure in bar for the higher output value 49152 Example Cust IDO 0x0415 0b000001 0000010101 1 21 gt Equipment 1 Places 21 Cust ID1 0x0111 0b0000000100010001 273 gt Files 273 Not assigned 0x0000 Not assigned ScalingO 0x1574 0b600010 1010 11101 00 2 10 29 0 gt Date 29 10 2012 Mode PR S
3. Description of the Communication Protocol for Series 4 LD 9LD OEM pressure transmitter from KELLER Version 2 4 KELLER AG f r Druckmesstechnik Version 2 3 hof 10 Mar 2014 LE WACO CUE HON PITRTRTRETETIHe 3 2 ElecihicarintelTa conminianunannamunan mui nitro un cde no i dun Rimi E OPERE EET 3 E R I A E O E E E O E E A E E A E A A EE 3 22 PURRE SO nennen 4 2 3 SPORE ee NENNEN AEAEE E A E AEA EEAS 4 21 PUS CPAD oa T S ee eee eee 5 DB Dea PAIN A OAT T T 6 l START ndo TORC Ondo a EE eg 6 Ie ARDORE 1 NM 6 V EM SU To 210 0 ERE EE 7 SE 000 E 7 29 SIC 7 4 GetMeasurement Data iiis n iii rrr nr rr re ri nr rrr ai annani aa naniaa 8 A Se X SETS SENT m 8 42 Interpretation of the digital V AIWCS cs scsicesesseicesastsaci sn5isciossshacsactsogdoashssagsaneiiaabestioaionstescedenseigebesaangugssdosgabesaolansssioiasendeeioosaenl 8 25 walahis 0 detect We End OF Ol OF SION en titt Eust cebtnd eti dhatisettiuntheti satu thutisetise tutu 10 22 Voltage Time Diagrams essendi tutus tU E tuU cece ce tu UM NUMINI EIL E 11 5 Optional further CommandS asa vind epo FO D ELE TEE D ERE RFID GTC LL PC FEE EE 12 53 Memon Map Ore Ser IN OMIM AOI e miomitenio pu miU iion bantanadbandandd iio Ira UI PUN Pra UE MUI TU ITMDE EMI IU as 12 52 Becokmendea Slave Addies Pre dote ans Us 14 5 3
4. including variation over the whole temperature range of 40 110 C and all manufacturing tolerances The wait time for read memory is also increased from 0 5ms to 0 6ms e Document Version 2 4 02 June 2014 Added Export function of the K 404 User Manual where the PC application is described 74 Firmware Versions The Firmware is fixed in the Silicon ROM Version and can t be changed by KELLER A few settings and the content definition of the Customer Memory are the only free parameters but there are no plans to change anything Version Date of Major Changes Year Week Production 36Cl1CH since Base Version with temperature PGA settings for 40 110 C 12 29 2012 36Cl1CK since Base Version with temperature PGA settings for 40 110 C 14 13 April 2014 and temperature sensor settings for lower pressure dependency 75 Support We are pleased to offer you support in implementing the protocol Use our free PC software D Line Address Manager in com bination with the K 404 USB to I2C Dongle for a first communication with the transmitter and for the configuration of non default Slave Addresses Please visit our website http www keller druck com to check updates and further application notes KELLER AG f r Druckmesstechnik St Gallerstrasse 119 CH 8404 Winterthur Tel 441 52 235 25 25 http www keller druck com Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 25 25
5. F00481E01P0016 Normal Mode 0x40 3 P ul6 P bar T ul16 T C 16401 0 016 24207 24 40 16399 0 014 24214 24 45 16400 0 015 24212 24 45 16399 0 014 24207 24 40 16399 0 014 24210 24 45 16399 0 014 24210 24 45 Version 2 4 hof 2 June 2014 Page 22 25 7 Appendix 7 1 Code Examples Still under construction 7 11 Read Measurement Header File TII RCE CSA OPE OPEC OPES TAT CCS ee D YITV V ae NY Y eee eres ese ep Fee aa a 7 Constants define SDA OUT TRISDbits TRISD5 RD5 is SDA without MSSP define SDA OD LATDbits LATD5 define SDA IN PORTDbits RD5 define SCL_OUT TRISDbits TRISD6 RD6 is SCL without MSSP define SCL OD LATDbits LATD6 define cZI Pmin 0 fix coded or read out from the userMEM define cZI Pmax 30 fix coded or read out from the userMEM LJQJIZTITITAIPTIYJTITIJTQYJTVTIIITITIYYPYIY IZPTIITJTYIYXJPZXISTTIJTIICTYIZJTINJSXTJTXZXVv TE global variables _F32 ZI pressare Nariable for pressure value in bar as single IEEE 754 F32 ZI temperature Variable for temperature value in C as single IEEE 754 _U8 ZI status Nariable for 8 bit status _U8 ZSSCget 5 Array to receive data frame PIERRE INITIIERT SEITEN LEISTET TEN prototypes global functions U8 get PnT GPIO US8 U8 get PnT MSSP U8 Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 23 25 7 1 2 Read Measurement C File VI IMS YR eee eee ee eer re ee Use ees ee ee eee eee eee ee
6. 10 0 1 10 0 1 Cursors 114 0U TAX 6 7336kH Ar 3 3 Sav More detailed view of the readout frame EOC is back to 3 6V The slave ACK occurs as normal immediately after the neg edge of the 8 clock impulse The ACK from the master occurs with a little delay but this is allowed because the master gener ates the 9th clock impulse by itself at the right time On the left side are 4 read cycles on the memory visible before the request OXAC command occurs In the memory cells 0x13 0x16 is the scaling of the pressure output stored 0x13 and 0x14 contain Pmin here Obar 0x15 and 0x16 contain Pmax here 3bar The table does not show the last action on the bus 10ms after the OxAC command follows the readout of the 5 data bytes in cluding STATUS pressure and temperature The graph shows a too long conversion time Page 11 25 aaa It is possible to read out a unique product code the date of calibration and the scaling of the transmitter 5 Optional further Commands 5 1 Memory Map of User Information 16 bit memory cells WeMme Dein n 00000 em 0 0x12 Scaling Year 0 31 2010 Bit11 15 Month 0 15 Bit7 10 Day 0 31 Y gt bit M 4bit D 5bit P 2bit Bit2 6 P Mode 0 3 Bit0 1 0x15 Scaling3 P_49152 32 IEEE 754 single MSWord Pmax bar als 32bit float IEEE 754 single respectively float from single precision binary floating point format P Mode 0 3 0 PR 1 PA 2 PAA 3 AUX
7. 20 000 16384 x 3bar 32768 0 331055 bar in relation to vacuum Temperature Ox5DD1 24 017uec T C 24017 384 x 0 003125 C 50 C 23 8531 C incl noise Shift right by 4 24 017 16 1501 T C 1501 24 x 0 05 C 50 C 23 85 C without 4 Bit of noise Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 9 25 4 3 Variants to detect the End Of Conversion Yellow SCL Blue SDA Red EOC Green SUP Bit Rate 75kHz DSO X 30144 MY52011071 Fri Feb 15 10 57 09 2013 100vV 2 100V 3 1 0097 4 1 00W7 1 0008 Stop 1 33V C ATI i Agil gt Agilen D D g Acquisition Normal 5D 0MSa s Channels erem BW DC BW DC BW DC BW 10 0 1 10 0 1 10 0 1 10 0 1 Cursors AX 5 000000000ms FAX 200 00H2 D 0V Cursors m X1 280 000000us X2 5 280000000ms Mode Manual Units W 49 Cursors X2 Source EOC Y1 6 77500V Y2 6 775004 DS0 X 30144 MY52011071 Fri Feb 15 10 54 07 2013 1 100v 2 100v 3 1 0097 4 1 00W7 1 00037 1 33V lrigd x 1 l gt Agilent Acquisition Mormal 25 0MSa s Channels DC BW DC BW DC By DC BW 10 0 1 10 0 1 10 0 1 10 0 1 Cursors 3 480000000ms 17 AX 287 36H D 0V Cursors Menu X1 280 000000us x2 3 760000000ms Mode Manual Units gt Source gt Curs
8. Acquisition Normal 20 0MSa s Channels i 10 01 101 Cursors m Hd A ek I 0 4 EX TAX E128 L3Hr 33 07500V The EOC line is low for 7 75ms The newest datasheet guaran tees a conversion time below 6ms To reach sample rates over 140 SPS it is a must to work with a high bit rate and to check the EOC line or to poll the STATUS byte DSO X 30144 MYS2011071 Fri Jul 20 08 40 25 2012 200v 2 200V 3 4 2 00W7 11 048 100 027 nim LI BURN cs au rn auum i rc stop E m 1 gt at a te No acknowledge NACK from the master after reading out the 5 data byte The Missing Ack that is recorded in the tables is not a mistake it s a must USA ut MISIT LT Fri u ANETTE 2 Doy 42 2 2 DOV gt Agilent Aguisin Normal r 5 00MSa s 40 40 40 6 Channels 1 01 10 0 1 10 0 1 40 00 L T sta um eplay 5 rt Communication Protocol 4 LD 9 LD 10 0 1 me EIN SNR RD Version 2 4 hof 2 June 2014 DSO X 30144 MYS2011071 Fri Jul 20 08 39 2012 200V 2 200V 3 2 00V o0 005 Stop 3 mmi mmi FF Tr CANNA L1 LIMIT T ET el U ub 2d CL T LL TL Lg EE Nice to see The ACK from the slave follows immediately to the negative edge of the 8th clock impulse two times visible ED C TALA AUT rri Mu UB 355 ATA 200 2 200 3 4 200 1 858 90 00 Stop t 2 2 004 a rT A BEL Re NEL ma T Agilent Acquisition Normal 1 0063a s Channels 10 01 1 0 1
9. http www nxp com documents user manual UM10204 pdf 2 Electrical Interface 2 1 Pinout Lable Description Wire Connection 1 8 3 6 V HD re Q5 EN apu I C Clock x OP NOJ p ao IC Data T Lm End of Conv SUP Notes Be careful with the glazed pins cracks in the glass pills causes leakage gt damage Do not touch the steel diaphragm Cabling There are no special requirements to the wires or a flexible printed circuit FPC depending on the cross section because the cur rent consumption is very low Sleep Mode typ 100nA Active Mode typ 1 5mA during conversion in less than 6ms typ 5ms Be careful with cabling over more than a few centimetres The I2C Bus is not a fieldbus and only EMC safe if the interconnections are short or screened by the surrounding housing of the whole application or a suitable cable Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 3 25 2 2 Pull up Resistors VDD SUP SCL SDA NEE HiZ HiZ HiZ HiZ IN IN IN IN our sur our u EN Pull up resistors are needed at SDA and SCL 1 10kOhm are recommended In order to optimise the data rate or low power consumption other resistance values are possible The EOC Pin supplies an active high level in idle state and an active low level during conversion The SCL and the SDA lines are open drain driven The wired AND circuits avoid level collisions Additional series resistors placed directly at the bus members leads to even mor
10. next page is a difficult sequence One little mistake makes the transmitter unusable Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 15 25 6 K 404 User Manual The easiest way to change the slave address of a D Line transmitter or to check the scaling and other product information is to use KELLER s USB to I2C converter and the related PC Software 6 1 USB to I2C Dongle The K 404 T is equipped with a plug to connect directly to the 5pol TO header The 9LD on the TO plug is not part of the converter The cable on the I2C side is less than 30cm one foot long For EMC reason please extend the connection on the USB side if needed The K 404 converter is short circuit protected The EOC Pin is not connected and SDA and SCL are pulled up to the 3 3V supply by internal resistors Please be careful by connection an oscilloscope with relation to earth because there is no galvanic isolation built in the converter Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 16 25 Connect the dongle first to the computer and wait until the operating system has installed the driver before you start the related application This runs automatically You will find the converter than under Control Panel Devices and Printers as lO Warrior56 IO Warrior56 Modell IO Warrior56 i Kategorie Eingabegerat It is a standard Human Interface Device therefore you don t have to install a sp
11. 16 1 02 06 2014 11 2414 755 16401 2 02 06 2014 11 24 15 265 16399 3 07 05 2014 11 24 15 755 16400 4 02 06 2014 11 24 16 285 15323 5 02 06 2014 16399 P bar T u16 T C 0 016 24207 24 40 0 014 24214 24 45 0 015 24212 24 45 0 014 24207 24 40 0 014 24210 24 45 11 24 16 745 The table shows the data stored in the background of the monitor chart Choose Relative or Absolute Time Axis before start ing the data acquisition The Table pop up window is developed to export measured data in text format There are two ways to do that 1 Copy Data stores the data on the clipboard 2 Save opens the File Explorer to store the data in the CSV format to a non volatile memory like a hard drive The Open icon E just opens the File Explorer to brows and open saved files this is not an import function The stored data contains the time stamps pressure and temperature values and a heading section with Initial Description and the full Device Information including the pressure range the Unique ID and so on Description Initial Scaling Date of Calibration Unique ID Device Status Slave Address Number of Re Addressing left Date Time 02 06 2014 11 24 14 755 02 06 2014 11 24 15 265 02 06 2014 11 24 15 765 02 06 2014 11 24 16 285 02 06 2014 11 24 16 745 02 06 2014 11 24 17 205 Communication Protocol 4 LD 9LD asdfghjkl hof OOO 0 90 000 FA 28 04 2014
12. Changing the Slave Addiess ETT 15 6 K 404 User Maa a a P ERE C E v EP FRE E E P EE 16 EIU E DONE a ere asec AE cree een 16 6 2 PC Application to change the Slave ACCIeSS cccccccsccsccsscsscsscsecsecsecsecsecsecsecsecsesaesaesaessesassassassassassassassassasassassaseaseaseases 18 EEG AT AAAA A A AAAA nT rrr remit rrr rin Ter 23 LI Gode com 23 1 2 APCO NON Senna a E E EE E E E 25 DS EP 9 66 8 i e Nm 25 14 PONENT O a EEA AE EEUNUE ERE ENTHNDUTUROU T OUR WE E A REVUE RN ORINOU INED 25 Lo oso Een EEE En ee En tn En nn 25 Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 2 25 aaa Visually the Series 4 LD 9 LD are like standard KELLER pressure transducers with a 5 pin interface to connect the half open Wheatstone Bridge But these 12C versions contain beside the pressure sensor a very tiny signal conditioner This results in an OEM pressure transmitter with a digital interface The D stands for digital and for dual the LD Line provides pressure and temperature information 1 Introduction The most important topics regarding the communication with the Series 4 LD 9 LD and KELLER s unique embedded DSP core are listed in this protocol description especially the interpretation of the readout values For more information about the 2C specification please visit the NXP website and have a look at the User Manual in the docu ments section 12C is a licence free standard since 2006
13. ange is to of the 16 bit output word This way a little over and under pressure is measurable and the exceeding resolution of more then 30 000 point guarantee a very high resolution of 10 000 points even for the next lower standard pressure range T u16 50 C The scaling goes from 50 to 150 C but the working temperature range of the transmitter is at maximum 40 110 C depending on the order 0 50 C and 10 80 C are the standard temperature ranges TFC floor T u16 16 24 x 0 05 C 50 C T u16 gt gt 4 24 x 0 05 C 50 C Reduce the 16 bits of the temperature information first to 12bit the last 4 bits are anyway noise floor This way a resolution of 1 20 C is still given Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 8 25 Examples Read Measurement after a request by 0x80 OxAC and waiting for the end of the conversion 0x81 0x40 Ox4E ADDR 0x40 Read STATUS Temperature STATUS 0x40 means no error just powered Pressure Ox4E20 20 000qec for a PR 7LD 1 10bar transmitter p bar 20000 16384 x 10bar 1bar 32768 1bar 0 213867 bar for a PA 4LD 30bar transmitter p bar 20000 16384 x 30bar Obar 32768 Obar p bar 20 000 16384 x 30bar 32768 3 31055 bar 4 31055 bar in relation to vacuum for a PAA 9LD 3bar transmitter p bar 20000 16384 x 3bar Obar 32768 Obar p bar
14. caling1 OxBF80 binary to float OXBF800000 1 0E0 Scaling2 0x0000 1 bar Scaling3 0x4120 binary to float 0x41200000 1 0E1 Scaling4 0x0000 10 bar Unique Product Code Cust ID1 x 65536 Cust IDO 0x01110415 17892373 Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 13 25 aa If you want to combine more than one pressure transmitter on the same 2C bus the slave addresses have to be unique For this purpose the memory content of for example a second transmitter has to be overwritten It is not possible to erase the content to make any possible change because the memory is based on a one time programmable technology so it is only possible to add some 1 s by burning additional bit cells After adding 6 1 s to the 7 bit slave address register there is a further possibility to make changes clearing the whole memory content by incrementation of the page counter That gives you in minimum a second chance to choose a slave address absolutely independent from the tries before 5 2 Recommended Slave Addresses The conclusion is that it is not possible to change the slave address unlimited times So it is recommended to plan the whole bus system and program the bus addresses once or in case of something unpredictable a second time To have more than one possibility per memory page to change the slave address we recommend the following set off ad dresses et pet eA P reme e e 07 Bor ee p
15. d C There are two ways to convert the figures to other units 1 Conversion of the conditioned figures for example from bar to psi 2 Conversion of the scaling endpoints and direct conditioning from u16 to e g psi It is very interesting to know the unsigned 16 bit figures for the conversion according to point 2 Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 20 25 By dragging the mouse over the left boundary of the graph the following menu appears Axis Chart Color Axis Color Lett Axis Left Axis a E ax 12111 Miri J E ua d Decimals E wt fy v Show GridLines Left Axis Right Axis Decimals v Show GridLines Right Axis amp This functionality makes it possible to zoom in or out and change the scaling of the axis To make manual changes the check box have to be deactivated and the entering of a new figure be confirmed with the Enter key not by just clicking to the next box Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 21 25 By pressing the Table button the following pop up window will appear valid from software version 1 2 peg me Initial hof Relative Time Axis Description asdfghjkl Copy Data LJ Save 4 Table Scaling 0 000 30 000 PA Date of Calibration 28 04 2014 Unique ID Foo431E0 1P0016 Device Status Normal Mode Slave Address x40 Number of Re Addressing left 3 Date Time P u
16. e ee eee eee bere ree ges cs ii global 4Xunctions _U8 get PnT GPIO U8 ADDR _U8 ZASSCerror 0 _F32 Pmin Pmax union _F32 floatingpoint _U32 twotimesUl6 east IIYIYJZ a TOs i SDA_OD 0 LOW if output active SCL_OD 0 LOW if output active better once before while l pr SDA OUT 1 SCL_OUT 1 release SDA gt pull up resistor release SCL gt pull up resistor read the scaling I2C write 1Byte ADDR 0x13 Open Drain Open Drain XII makes HIGH level makes HIGH level DelaylOTCYx 150 f 0 4208 x 10 x 150 0 505 I2C read xByte ADDR 3 cast twotimesU16 _U32 ZSSCget 1 lt lt 24 _U32 ZSSCget 2 lt lt 16 T2C_write_1Byte ADDR 0x14 DelaylOTCYx 150 ir Dede xz 10 x 150 D b5ms I2C read xByte ADDR 3 cast twotimesUl6 _U32 Z2SSCget 1 8 6 U32 ADoCgectsly33 Pmin cast floatingpoint I2C write 1Byte ADDR 0x15 DelaylOTCYx 150 lI Uus x 10 x 150 0 ons I2C read xByte ADDR 3 cast twotimesUl6 U32 A4SSCget 1 1 24 L U32 ZS5SCget 2 lt lt 16 I2C write 1Byte ADDR 0x16 DelaylOTCYx 150 l4 Diss x TO x 150 0 6ms I2C read xByte ADDR 3 cast twotimesU16 U32 2SSCget 1 lt lt 8 _U32 2SSCget 2 Pmax cast floatingpoint request new conversion 1f 12C_write_1Byte ADDR 0xAC return 0x91 wait for new conversion result
17. e security An electric HIGH level stands for 1 a LOW level for 0 gt positive Logic Please be careful with non open drain hardware like general purpose lOs and tri state tricks 2 3 Bit Rate The D Line transmitters work over a wide range of data transfer speeds All four modes are supported because the maximum clock frequency is 3 4MHz Max Bit Rate Standard Mode 100 kbit s Fast Mode 400 kbit s Fast Mode Plus 1 Mbit s High Speed Mode 3 4 Mbit s It is recommended to start with a low speed e g 50kHz get the whole thing working and then increase the bit rate if needed The maximal possible speed depends also on the cable length capacity and the pull up resistors Because the 2C interface is a synchronous serial bus the bit rate doesn t have to be stable The master defines the timing That makes bit banging easy if there is no dedicated hardware integrated in the master controller Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 4 25 E 2 4 Bus Capability E SigCond J Sig Sig a h h Gen l C Master SCL ge anak en E ESSE The bus capability is given by the physical electrical and the data link protocol bus layer On the electrical layer are only active LOW signal levels allowed This avoids short circuit currents caused by a collision of a HIGH and a LOW level and makes clock stretching possible On the protocol layer addressing
18. easurement results are eosin cielo shown in the Monitor frame converted to bar and C Unique ID FOoo222F01P0005 The unsigned 16 bit values who are really transferred De on the bus are also always refreshed Mormal Mode Slave Address P ui6 T u16 26906 24741 Mew Slave Address Number of Re Addressing left Do you wish to continue with assigning new slave address 0x43 to device One change of slave address left New Slave Address y Change Device Address The reason to offer this communication tool is to make the changing of the slave address as easy as possible The memory tech nology of the D Line transmitters is one time programmable OTP There are 4 pages of one time programmable memory That means that it is a must to do the copy job right first time the D Line Address Manager can do all of that for you Please be careful with changing the address because with every change the number Re Addressing remaining will count down until there are no more address changes possible New LD Transmitters will normally be delivered with either 2 or 3 address changes remaining The change request has to be confirmed by the shown popup window that displays the chosen new address again After doing the change a further popup window appears It shows the whole memory content and can also be opened with the pull down menu Dongle under Show Memory Map The cont
19. ecific driver a IO Warrior56 Gerateinformationen Nicht verf gbar IO Warror56 Nicht verf gbar Eingabegerat Nicht verf gbar Gerateaufgaben Klicken Sie unter Gerate und Drucker mit der rechten Maustaste auf das Symbol f r das Gerat um Aufgaben f r dieses Gerat anzuzeigen genen Hardware J IO Wamior56 Geratefunktionen Name x HiD konformes Ger t Eingabeger te Human Interface Devices OS HiD onformes Ger t Eingabeger te Human Interface Devices x USB Eingabegerat Eingabegerate Human Interface Devices OS USB Eingabegerat Eingabegerate Human Interface Devices Typ 7 USB Verbundgerat USB Controller Geratefunktionszusammenfassung Hersteller Ort Geratestatus Communication Protocol 4 LD 9 LD Standard USB Hostcontroller Pfad 0 Port_ 0002 Hub_ 0005 Das Gerat funktioniert einwandfrei Version 2 4 hof 2 June 2014 Page 17 25 6 2 PC Application to change the Slave Address First install the latest D Line Address Manager application on your computer You find it on the software CD coming with the K 404 converter or it can be downloaded free of charge at www keller druck com The D Line Address Manager is a one button application It s important to connect the USB to I2C converter first to the PC and start the application afterwards It begins autonomous to scan the I2C bus and shows the values of the found D Line trans mitter wi
20. ent is just to your information After closing it the Device Informa tion frame will be updated with the new salve address Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 19 25 aaa The Monitor frame is only a simple tool to get a first impression of the transmitters output The USB Dongle and this graph func tion are not developed for application use The D Line transmitters are OEM products and have to be connected to the cus tomer s microcontroller Bonus functions The three additional buttons and the slider for the sampling rate are the only important control elements for the monitor Click simply on Start and the graph begins to roll The scaling of the axis is set automatically to a reasonably range 1d od gt er eT Fast Slow Start UA Table Clear Chart Slow 1 SPS Fast ca 30 SPS depends on the performance of the computer system The Pressure and the Temperature bars are synchronous updated The levels of the bars are displayed in figures in the Pressure bar and the Temperature C text box The captions show the over the I2C bus transferred unsigned 16 bit figures Pressure Pressure bar nse 3 000 2 600 2 200 1 800 1 400 1 000 0 600 0 200 D 200 0 600 1 000 Temperature C 100 75 50 25 25 50 Pressure bar Temperature C P u16 T u16 26906 24741 The scaling of a D Line transmitter is always in bar an
21. er from the master to the slave write the first byte is 0x86 ADDR is 0x47 For a data transfer from the slave to the master read the first byte is Ox8F Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 6 25 3 3 ACKnowledge After every transferred byte in both directions the receiver of the byte gives feedback with the acknowledge bit The slave should always confirm the bytes by an ACK A If the slave does not respond with a LOW level after the 8 bit the master detects an exception for example caused by requesting to the wrong slave address A NACK N form the master s side is not always an exception It is also needed to terminate a read data frame I2C Write W ADDR oa COMMAND ap lC Read R ADDR STATUS P MSB P LSB Ne Underlined bits and bytes come from the slave the rest comes from the master 34 STATUS Byte mo pp pj p et P Em p TM om pet Busy 0 conversion completed 1 busy Mode 00 Normal Mode 01 Command Mode 1X Reserved Memory error 0 checksum okay 1 error 3 5 DATA Bytes The data registers of the D line transmitters are always 16 bit long Before the data bytes stands always a STATUS byte Therefore are three possibilities to read out data useful one three or five bytes By reading one byte you just get the STATUS of the D Line transmitter Reading three bytes is useful to get STATUS and the pressure information u16 or a 16 bit register from the me
22. he EOC pin Polling the level of the EOC wire is also possible For this solution an additional wire per transmitter is needed It is not possible to connect all the EOC wires commonly like SCL and SDA of the bus sys tem To save time without the additional EOC wire is pos sible by reading out the status of the pressure trans mitter There is no request needed just a simple readout command for the first byte that contains the Busy flag Bit 6 and bit 5 Busy will be 1 during the con version At the end of the conversion bit 5 changes to 0 Then the new data is ready to read out by ad ditional Clocks for the pressure and temperature bytes or a new readout command to shift out the whole 5 byte data frame This variant effects the highest power consumption because the Master controller is nonstop busy and also the pull up resistors are energized more often Page 10 25 4 4 Voltage Time Diagrams The following measurements are taken with 1kOhm pull up resistors In series to the master controller SCL and SDA line are 100E resistors to get a visual difference between an active LOW level from the master and from the slave The slave is able to pull SDA hard to ground a LOW level from the master goes only down to 10 of the supply voltage The address of the slave is 0x00 and the bit rate 100kHz Yellow SCL Green SDA Red EOC Blue 12C analyser ED 14 oe cee Fri u A UB 3E 3B A12 nn 5 Dav 2 Dv Agilent
23. is needed Therefore every slave on the same bus has to respond on a different address The address is stored in the memory of the transmitter The additional EOC lines undrawn which signalise the End Of Conversion can not be coupled together without an AND gate But there are solutions without using the EOC line or all the EOC lines can be routed independently to a parallel port of the mas ter microcontroller Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 5 25 3 Data Frame 3 1 START and STOP Condition um ii Every data frame is bordered by a start and a stop condition The START bit S is caused by pulling down SDA while SCL stays high Then SCL has to go low before the first data bit is set SCL is than ready for a positive edge when the data line is valid to trigger the receiver After the last transferred data bit the SCL line goes high and the STOP bit P is sent by releasing SDA while SCL is constantly high 3 2 ADDRessing The first Byte of every data frame contains the slave address and R W bit ADDR R W The 7 bits allow 112 bus nodes 16 of the 128 possible addresses are reserved 0x00 0x07 and 0x78 Ox7F The default slave address of the D Line transmitters is 0x40 D Line transmitters answer only to the address stored in the memory There is no response to the general call address 0x00 Examples ADDR is 0x43 For a data transf
24. mory Reading two additional bytes five bytes over all is useful to get both 16 bit measurement information pressure and tempera ture The master has to terminate a read data frame with a NACK and the obligatory STOP bit independent from the count of read bytes Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 7 25 4 Get Measurement Data Underlined bits and bytes come from the slave the rest comes from the master 4 1 Get the digital Values ADDR default 0x40 First byte is ADDR 1 1 for Read ADDR 1 0 for Write 1 Request Measurement 2 bytes from Master EN 2 Wait 26ms or wait for EOC 1 goes up to VDD or check the Busy flag 5 in the status byte only 1 byte reading needed 3 Read Measurement 1 byte from Master 5 bytes from Slave ADDR IR STATUS P MSB P LSB T MSB T LSB Getting only the pressure information it is possible to read out only 3 bytes from the slave 4 2 Interpretation of the digital Values The scaling of the pressure and the temperature is a simple straight line function defined by two touples points This leads to the following linear equations P u16 16384 P 16384 resp P min e g 1 bar PR 49152 P4915 resp P max e g 30 bar PR The pressure range of the transmitter is stored in its memory and or written on the associating papers P bar P u16 16384 X P 49152 P 16384 32768 P 16384 The output r
25. oe o 2 3 5 6th Transmitter Ox5F 6 7 Transmitter Ox7F With the mentioned addresses it is possible to make for example a 3 transmitter on the bus to a 4t The 12C committee does not recommend to use addresses between 0x78 and Ox7F so the 6 try is possible but not favoured The addresses 0x00 to 0x07 are also reserved and 0x00 is the General call address If you change the slave address and don t use a new memory page the checksum can not be updated The STATUS byte is then no longer 0x40 only bit 6 is set it becomes 0x44 Memory error appears but that has no effect to the functionality of the transmitter it just makes it impossible to detect a memory error Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 14 25 aa A free choice of the slave address is difficult to write this should only be done with the KELLER USB to I2C data converter in combination with the appending KELLER PC application When using the KELLER converter and KELLER software it becomes a simple easy to use procedure Please ask for details if you are not already aware of these products and consider the user manual in chapter 6 5 3 Changing the Slave Address KELLER do not recommend attempting to change the slave address with the following procedure but you can do it so we will give the details Using this method it is only possible to write additional 1 to the current memory page 1 Turn off the power
26. ors EOC X2 DSO X 30144 MY52011071 Fri Feb 15 11 00 06 2013 1 100vV 2 100V 3 1 0097 4 1 00V 1 0008 Stop 1 33V Y1 5 77500V Y2 5 77900V PEN LETT 3 Anil it Agilen Acquisition Normal 5D 0MSa s an t 7 Channels DC BW DC BW DC BW DC BW 10 0 1 10 0 1 10 0 1 10 0 1 Cursors AX 3 600000000ms MIU LLLI 12 AX 263 16H2 JXLILLLLLUL MENU Lees D 0V Pompe poe a i E CACC CACAC CASA ACACAC ACE Cursors Menu X1 280 000000us y X2 4 080000000ms Mode Manual Units UW Source EOC 49 Cursors X2 Y1 6 77500V Y2 6 775004 Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 The simplest way to detect the end of a conversion EOC is to wait until the new data is definitely ready to read out Being on the safe side the conversion and the conditioning of the pressure and tempera ture value is completed after 6ms While the 26ms of waiting the Master controller can be in sleep mode or doing some other tasks like re questing other pressure transmitters on the bus to make a new conversion The graph shows a too short conversion time The handshake solution done by the additional EOC wire is very elegant and is suitable to save time and power The Master controller can be in sleep mode and will be awoken by an external inter rupt on the positive slope of t
27. supply of the transmitter 2 Setthe transmitter into Command Mode by sending 0xA9 as first command ADDR lt lt 1 0 0xA9 3 Optionally read the actual Slave Address from memory cell 0x02 also possible in Normal Mode to get the needed in formation to add only one single 1 to erase already burned 1s is not possible in a OTP ADDR lt lt 1 0 0x02 wait 0 6ms ADDR lt lt 1 1 Status HighByte LowByte The Slave ADDR is in the 7 LSBs All other 9 bits should be 0 In the Status Byte appears an additional 1 to indicate the Command Mode Bit3 1 Bit4 0 4 Set new Slave Address in memory cell 0x02 with the write command offset of 0x40 ADDR lt lt 1 0 0x42 HighByte LowByte The Slave ADDR is in the 7 LSBs All other 9 bits should be 0 5 Optionally check verify the new memory content by repeating step 3 6 Update the Slave Address in the RAM in the transmitter by switching the power off and on sending the Start NOM command 0xA8 does not update the RAM Communicate from this moment on with the new Slave Address Note Because it is not possible to update the CheckSum over the whole memory content the Memory error flag in the Status Byte is from now set Bit2 1 If you want to integrate the address management into you own software environment please ask the KELLER development de partment for more information about the internals of the D Line Copying the whole memory content to the
28. thout any click Hot plugging of the transmitter is possible EJ KELLER D Line HC Slave Address Manager Version 1 0 Eile jj Dongle Options Scaling 0 000 3 000 PAA PR Vented Gauge Zero amp Atm PA Sealed Gauge Zero 1bar PAA Absolute Zero Vacuum Date of Calibration Unique ID F00222E01P0005 Ec ete ee creaky gs sete see os erent 12 ROS M ee PERTEN PETE r EIL do A PORE GI pa De IRE ee oe The important information and the key function Change Device Address are displayed on the left skyscraper frame the rest of the surface is bonus material Please select as first step your language in the pull down menu Options under Settings I 2 The application remains your Style Language and Logfile selection Communication Protocol 4 LD 9 LD Version 2 4 hof 2 June 2014 Page 18 25 The D Line Address Manager does scan the I2C bus by checking the response acknowledge to every possible Slave Address from 0x00 to Ox7F After finding a working transmitter the User Information see chapter 5 1 is read out and displayed in de coded form The most important information is the pressure range to new the scaling of the 32768 output range Main functions Device Information Pressure bar Temperature C EE 0 963 PR Vented Gauge Zero Atm PA Sealed Gauge Zero 1bar PAA Absolute Fern Vacuum At the same time the actual m
Download Pdf Manuals
Related Search
Related Contents
UP4E - UP4EL - UP4EH 各社共通サイズヒーター安全カバーS/L Dale Tiffany TF60297 Instructions / Assembly SBE 9plus Manual Introduction to the OpenVMS Operating Environment Klipsch Stereo System 2.1 User's Manual 1624834 ITA INT VS rev1.ppp 野崎印刷紙業株式会社 Copyright © All rights reserved.
Failed to retrieve file