数据搜索系统,热门电子元器件搜索
Selected language     Chinese  ▼
部分名称
         详细搜索


AM2320 Datasheet(数据表) 16 Page - List of Unclassifed Manufacturers

部件型号  AM2320
说明  Digital Temperature and Humidity Sensor
下载  27 Pages
Scroll/Zoom Zoom In 100% Zoom Out
制造商  ETC2 [List of Unclassifed Manufacturers]
网页  
标志 

 16 page
background image
◎CRC calculation code in C language code
Description: This program to calculate the length len * ptr bytes before the CRC.
unsigned short crc16(unsigned char *ptr, unsigned char len)
{
unsigned short crc =0xFFFF;
unsigned char i;
while(len--)
{
crc ^=*ptr++;
or(i=0;i<8;i++)
{
if(crc & 0x01)
{
crc>>=1;
crc^=0xA001;
}else
{
crc>>=1;
}
}
}
return crc;
}
8.2.4
I
2 C Communication Timing
AM2320 sensor I
2 C communication, although according to the standard I 2 C communication
sequence, but must follow our communication protocols and communication timing requirements, in
order to accurately read the sensor. In strict accordance with the communication protocol and timing,
please read the design.
◎I 2 C Read full Timing Example
Figure 14 shows the read sensor when the full sample and write a special time requirements, in
strict accordance with the requirements of the special time to read and write, otherwise it will appear
unreadable sensors or incorrect data and so on. Several timing diagram special needs attention, the
time requirements detailed in Figure; host communication from beginning to end, for a maximum of
3S.
Figure14: I
2
C sensors read the complete example of fig
- 15 -




HTML 页

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


数据表 下载




链接网址

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

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


Mirror Sites
English : Alldatasheet.com  , 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