| 数据搜索系统,热门电子元器件搜索 |
|
TN1180 数据表(PDF) 3 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
TN1180 数据表(HTML) 3 Page - STMicroelectronics |
|
3 / 9 page ![]() TN1180 How to obtain pressure values in mbar 2 How to obtain pressure values in mbar The pressure sensor stores the pressure value in raw counts in 3 registers: PressOut_H, PressOut_L, and PressOut_XL. The most significant bit of the PressOut_H register indicates the polarity. If the sign bit is zero, then the value is positive and the pressure in mbar is determined by dividing the decimal value by the scaling factor of 4096. A sign bit of 1 indicates a negative value, so we first take the two’s complement of the complete word and then divide by 4096. Keep in mind that the sign bit determines whether we should perform the two’s complement operation or not. The 3 bytes are concatenated to form a 24-bit word and the complete word is represented in two’s complement (not the single bytes). When reading the pressure value, it is important to note the byte ordering. This is especially important in auto-increment mode when the address is incremented automatically. The designer should assemble the proper 24-bit endian format (pressure count = 2Ah & 29h & 28h). The device may be configured to report a delta pressure by using the auto-zero feature in CTRL_REG2 (0x21). When using the auto-zero feature, the PressOut() registers could contain a negative value which is the sum difference between the current pressure and the reference pressure. Negative values can also occur when a device is defective. Hence it can be used for self-test during a boot-up operation and when the auto-zero feature is not used. An example of a pressure calculation when the sign bit is 0 is shown in the following figure. Figure 3: Pressure example 1: sign bit is 0, this is a positive value Pressure Counts = 2Ah & 29h & 28h = 3FF58Dh = 4191629(dec) Pressure millibar = = = 1023.3 mbar 4096 counts/mbar 4191629 counts 3 F F 5 8 D 1 0 0 0 1 1 0 1 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 bit 3 bit 2 bit 1 bit 0 PressOut_H (0x2A) 1 1 1 1 0 1 0 1 PressOut_L (0x29) PressOut_XL (0x28) 1 1 1 1 1 1 Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16 0 0 Scaling factor # counts DocID026298 Rev 1 3/9 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |