文档库 最新最全的文档下载
当前位置:文档库 › I2C Comms Digital Output Pressure Sensors_TN_008201-3-EN_Final_30May12

I2C Comms Digital Output Pressure Sensors_TN_008201-3-EN_Final_30May12

Technical Note

I 2C Communications with Honeywell Digital Output Pressure Sensors

Sensing and Control

1.0 Introduction

The I 2

C bus is a simple, serial 8-bit oriented computer bus for

efficient I 2

C (Inter-IC) control. It provides good support for

communication between different ICs across short circuit-board distances, such as interfacing microcontrollers with various low

speed peripheral devices. For detailed specifications of the I 2

C

protocol, see Version 2.1 (January 2000) of the I 2

C Bus Specification (source: NXP Semiconductor at

(https://www.wendangku.net/doc/039637942.html,/acrobat_download/literature/9398/39340011.pdf ).

Each device connected to the bus is software addressable by a unique address and a simple master/slave relationship that exists at all times. The output stages of devices connected to the bus are designed around an open collector architecture. Because of this, pull-up resistors to +VDD must be provided on the bus. Both SDA and SCL are bidirectional lines, and it is important to system performance to match the capacitive loads

on both lines. In addition, in accordance with the I 2

C

specification, the maximum allowable capacitance on either line is 400 pF to ensure reliable edge transitions at 400 kHz clock speeds (Figure 1).

When the bus is free, both lines are pulled up to +VDD. Data

on the I 2

C-bus can be transferred at a rate up to 100 kbit/s in the standard-mode, or up to 400 kbit/s in the fast-mode.

2

2.0 Data Transfer with I 2

C Output Pressure Sensors

Honeywell’s di gital output pressure sensors are designed to work as slaves and will therefore only respond to requests from a master device. Following the address and read bit from the master, Honeywell digital output pressure sensors are designed to output up to 4 bytes of data, depending on the sensor options and the needs of the application. In all cases,

the first two data bytes are the compensated pressure output, along with sensor status bits. The third and fourth bytes are for optional compensated temperature output.

2.1 Sensor Address

Each sensor is referenced on the bus by a 7 bit slave address. The default address for Honeywell Pressure sensors is 40 (28 hex). Other available standard addresses are: 56 (38 hex), 72 (48 hex), 88 (58 hex), 104 (68 hex), 120 (78 hex), 136 (88 hex) and 152 (98 hex).

(Other custom values are available. Please contact Honeywell Customer Service with questions regarding custom slave addresses.)

2.2 Pressure Reading

To read out a compensated pressure reading, the master generates a START condition and sends the sensor slave address followed by a read bit (shown in Figure 2). After the sensor generates an acknowledge, it will transmit up to 4 bytes of data – the first two bytes containing the compensated pressure output, and the second two bytes containing the optional compensated temperature output. The master must acknowledge the receipt of each byte, and can terminate the communication by sending a Not Acknowledge (NACK) bit followed by a stop bit after receiving both bytes of data as show in Figure 2.

2.3 Temperature Reading

The optional corrected temperature data can be read out with either 8 bit or 11 bit resolution. By reading out the third byte of data from the sensor, the 8 bit compensated temperature value can be read. Further, by reading out the fourth byte of data, the complete 11 bit optional compensated temperature value can be read. The 8 bit value gives an approximate 0.8 C resolution, while the 11 bit value gives an approximate 0.1 C resolution.

When reading the full 11 bit resolution temperature output, the 5 least significant bits of the 4th data byte are “Do Not Care” and should be ignored.

I 2

C Communication with Honeywell Digital Output Pressure Sensors

2 Honeywell Sensing and Control

2

bytes of data, but the information contained in these bytes is non-corrected data, and should not be used.

2.4 Status Bits

Honeywell digital output pressure sensors offer both standard and optional diagnostics to ensure robust system operation in critical applications. The diagnostic states are indicated by the first two Most Significant Bits of Data Byte 1.

Four diagnostic states are indicated by the 2 status bits (Table 1 ).

Note: *Command mode is used for programming the sensor. This mode should not be seen during normal operation.

Standard diagnostics for Honeywell digital output pressure sensors consist of an EEPROM (Electrically Erasable

Programmable Read-Only Memory) signature used to validate the EEPROM contents during startup. In the event that any EEPROM contents change after calibration, a diagnostic condition will be flagged.

Optional diagnostics for Honeywell digital output pressure sensors consist of:

Loss of sense element connection Short circuit of sense element

When the two status bits are “11”, one of the above mentioned diagnostic faults is indicated.

When th e status bits read “10”, “s tale” data is indicated , this means that the data that already exists in the sensor’s output buffer has already been fetched by the master, and has not yet been updated with the next data from the current measurement cycle. This can happen when the master polls the data quicker than the sensor can update the output buffer.

(Please contact Honeywell Customer Service with questions regarding the availability of optional Pressure Sensor diagnostics.)

3. 0 Calculation of the Pressure from the Digital Output

For Honeywell digital output pressure sensors, the output of the device can be expressed by the transfer function of the device as shown in Equation 1.

Equation 1: Pressure Sensor Transfer Function

I 2C Communication with Honeywell Digital Output Pressure Sensors

Honeywell Sensing and Control 3

Rearranging this equation to solve for pressure, we get Equation 2:

Equation 2: Pressure Output Function

Where:

Output max = output at max. pressure [counts] Output min = output at min. pressure [counts]

Pressure max = max. value of pressure range [bar, psi, kPa, etc.] Pressure min = min. value of pressure range [bar, psi, kPa, etc.] Pressure = pressure reading [bar, psi, kPa, etc.] Output = digital pressure reading [counts]

As an example, the pressure will be calculated for a -1 psi to 1 psi differential sensor with a 10% to 90% calibration and a pressure output of 1657 (decimal) counts:

Output max = 14745 counts (90% of 214

counts or 0x3999)

Output min = 1638 counts (10% of 214

counts or 0x0666) Pressure max

=

1 psi Pressure min

= -1 psi

Pressure = pressure in psi Output = 1657 counts

)1()163814745())

1(1()16381657(Pressure

)1(13107)2()19(Pressure )1(13107

38Pressure

)1()002899.0(Pressure

997.0Pressure psi

4.0 Calculation of Optional Temperature from the Digital Output

For Honeywell digital output pressure sensors with the optional compensated temperature output, the output can be converted to C using Equation 3:

Equation 3: Temperature Conversion Function Output If the 8 bit temperature output is used, the data must first be shifted left by 3 bits and have the 3 Least Significant Bits set to “0’s ” for the equation to work.

As an example, the optional compensated temperature output will be calculated for a sensor with an 8 bit temperature output of 255:

Step 1: Left shift the above 8-bit value by 3 places and append the 3 LSBs with 0s:

Digital Temperature Output (8 – bit) = 255 = 11111111b 11111111000b = 2040

Step 2: Use the adjusted value and plug into Equation 3:

502002047

2040

e Temperatur

C 149.31 e Temperatur

As a second example, the optional compensated temperature output will be calculated for a sensor with an 11 bit temperature output of 1456:

Step 1: Plug the digital temperature output value into Equation 3:

5020020471456

e Temperatur

C 26.92 e Temperatur

5.0 Timing and Level Parameters

Table 2. Parameters for I 2

C Bus Communication with minimum SCL period.

I2C Communication with Honeywell Digital Output Pressure Sensors

Sensing and Control

Honeywell

1985 Douglas Drive North

Golden Valley, MN 55422 https://www.wendangku.net/doc/039637942.html,/sensing 008201-3-EN

May 2012

Copyright ? 2012 Honeywell International Inc. All rights reserved.

2

PERSONAL INJURY

DO NOT USE these products as safety or emergency stop

WARRANTY/REMEDY

Honeywell warrants goods of its manufacture as being free of defective materials and faulty workmanship. Honeywell’s standard product warranty applies unless agreed to otherwise by Honeywell in writing; please refer to your order acknowledgement or consult your local sales office for specific warranty details. If warranted goods are returned to Honeywell during the period of coverage, Honeywell will repair or replace, at its option, without charge those items it finds defective. The foregoing is buyer’s sole remedy and is in lieu of all other warranties, expressed or implied, including those of merchantability and fitness for a particular purpose. In no event shall Honeywell be liable for consequential, special, or indirect damages.

While we provide application assistance personally, through our literature and the Honeywell web site, it is up to the customer to determine the suitability of the product in the application.

Specifications may change without notice. The information we supply is believed to be accurate and reliable as of this printing. However, we assume no responsibility for its use.

WARNING

MISUSE OF DOCUMENTATION

The information presented in this technical note is for

Complete installation, operation, and maintenance

SALES AND SERVICE

Honeywell serves its customers through a worldwide network of sales offices, representatives and distributors. For application assistance, current specifications, pricing or name of the nearest Authorized Distributor, contact your local sales office or:

E-mail: info.sc@https://www.wendangku.net/doc/039637942.html,

Internet: https://www.wendangku.net/doc/039637942.html,/sensing

Phone and Fax:

Asia Pacific +65 6355-2828

+65 6445-3033 Fax

Europe +44 (0) 1698 481481

+44 (0) 1698 481676 Fax

Latin America +1-305-805-8188

+1-305-883-8257 Fax

USA/Canada +1-800-537-6945

+1-815-235-6847

+1-815-235-6545 Fax

相关文档
相关文档 最新文档