数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

SGP40-D-R4 数据表(PDF) 12 Page - Sensirion AG Switzerland

部件名 SGP40-D-R4
功能描述  Indoor Air Quality Sensor for VOC Measurements
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  SENSIRION [Sensirion AG Switzerland]
网页  https://www.sensirion.com/
标志 SENSIRION - Sensirion AG Switzerland

SGP40-D-R4 数据表(HTML) 12 Page - Sensirion AG Switzerland

Back Button SGP40-D-R4 Datasheet HTML 8Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 9Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 10Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 11Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 12Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 13Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 14Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 15Page - Sensirion AG Switzerland SGP40-D-R4 Datasheet HTML 16Page - Sensirion AG Switzerland Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 19 page
background image
www.sensirion.com
Version 1.0 – July 2020 – D1
12/19
4.6 Checksum Calculation
The 8-bit CRC checksum transmitted after each data word is generated by the CRC algorithm according to the properties as
stated in Table 7. The CRC covers the contents of the two previously transmitted data bytes.
Property
Value
Example code
Name
CRC-8
uint8_t CalcCrc(uint8_t data[2]) {
uint8_t crc = 0xFF;
for(int i = 0; i < 2; i++) {
crc ^= data[i];
for(uint8_t bit = 8; bit > 0; --bit) {
if(crc & 0x80) {
crc = (crc << 1) ^ 0x31u;
} else {
crc = (crc << 1);
}
}
}
return crc;
}
Width
8 bit
Protected Data
read and/or write data
Polynomial
0x31 (x8 + x5 + x4 + 1)
Initialization
0xFF
Reflect input
False
Reflect output
False
Final XOR
0x00
Examples
CRC (0xBE EF) = 0x92
Table 7 Checksums are used for the 2-byte data packets only. The command codes themselves already contain a 3-bit CRC and therefore,
a checksum must not be appended.
4.7 I2C Commands
The available measurement commands of the SGP40 are listed in Table 8.
Command
Command hex.
code
Parameter length
including CRC
[bytes]
Response length
including CRC
[bytes]
Measurement duration
[ms]
Typ.
Max.
sgp40_measure_raw
0x26 0F
6
3
25
30
sgp40_measure_test
0x28 0E
3
240
250
sgp40_heater_off
0x36 15
0.1
1
Table 8 I2C commands available for SGP40.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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