| Electronic Components Datasheet Search |
|
ENS210 Datasheet(PDF) 18 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
ENS210 Datasheet(HTML) 18 Page - ams AG |
|
18 / 43 page ![]() Page 18 ams Datasheet Document Feedback [v1-02] 2018-Feb-19 ENS210 − Functional Description The Sensor Readout Registers The sensor readout registers (T_VAL and H_VAL) consist of three parts: the actual measured data, a valid flag and a checksum (see Figure 20). It is not mandatory to read the valid flag or the checksum when reading the data. Figure 20: The Layout of the Sensor Readout Registers The checksum is a cyclic redundancy check over the data and the valid flag; the stored checksum is the result of CRC-7 (polynomial x7+x3+1, see https://en.wikipedia.org/wiki/Cyclic_ redundancy_check) with 0x7F as initial vector (i.e. with all bits flipped), see Computing CRC-7 for sample C code. The valid flag is cleared when a measurement is started (irrespective of the run mode). Once the measurement is completed the valid flag is set. In continuous mode, a new measurement is then started without clearing the valid flag; so data is always valid after the first measurement (but it might be several milliseconds old). The data field is a 16 bits fixed point number, whose format and unit depends on the sensor (see Register T_VAL and Register H_VAL). To ensure consistent view, these multi-byte readout registers are double buffered. When the first byte (i.e. the byte with the lowest register address) is read, the device copies all bytes from the measurement registers to the I²C registers, and then the value from the first I²C register is returned. Reads to the other bytes of the multi-byte register (i.e. with higher register addresses) are always directly from the I²C registers. crc valid data 0 7 8 15 16 23 crc payload |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |