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

X  

SCD40-D-R2 数据表(PDF) 18 Page - Sensirion AG Switzerland

部件名 SCD40-D-R2
功能描述  Breaking the size barrier in CO2 sensing
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  SENSIRION [Sensirion AG Switzerland]
网页  https://www.sensirion.com/
标志 SENSIRION - Sensirion AG Switzerland

SCD40-D-R2 数据表(HTML) 18 Page - Sensirion AG Switzerland

Back Button SCD40-D-R2 Datasheet HTML 14Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 15Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 16Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 17Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 18Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 19Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 20Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 21Page - Sensirion AG Switzerland SCD40-D-R2 Datasheet HTML 22Page - Sensirion AG Switzerland  
Zoom Inzoom in Zoom Outzoom out
 18 / 22 page
background image
www.sensirion.com
Version 1.1 – April 2021
18/22
3.11 Checksum Calculation
The 8-bit CRC checksum transmitted after each data word is generated by a CRC algorithm. Its properties are displayed in
Table 30. The CRC covers the contents of the two previously transmitted data bytes. To calculate the checksum only these two
previously transmitted data bytes are used. Note that command words are not followed by CRC.
Property
Value
Example code (C/C++)
Name
CRC-8
#define CRC8_POLYNOMIAL 0x31
#define CRC8_INIT 0xFF
uint8_t sensirion_common_generate_crc(const uint8_t* data, uint16_t count) {
uint16_t current_byte;
uint8_t crc = CRC8_INIT;
uint8_t crc_bit;
/* calculates 8-Bit checksum with given polynomial */
for (current_byte = 0; current_byte < count; ++current_byte) {
crc ^= (data[current_byte]);
for (crc_bit = 8; crc_bit > 0; --crc_bit) {
if (crc & 0x80)
crc = (crc << 1) ^ CRC8_POLYNOMIAL;
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 (0xBEEF) = 0x92
Table 30 I2C CRC properties.



Html Pages

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


数据表 下载

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