文件名称:ds1624cprogram
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 花*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
由于DS1624是I2C总线结构的串行数据传送,它只需要SDA和SCL两根线完成数据的传送过程。因此,我们在进行程序设计的时候,也得按着I2C协议来对DS1624芯片数据访问。有关I2C协议参看有关资料,这里不详述。对于AT89S51单片机本身没有I2C硬件资源,所以必须用软件来模拟I2C协议过程。
要从DS1624中读取温度值,首先启动DS1624的内部温度A/D开始转换,对应着有相应的命令用来启动开始温度转换,有关DS1624的指令集参考前面的叙述。一般情况下,DS1624经过一次温度的变换,需要经过1秒钟左右的时间,所以等待1秒钟后,即可读取内部的温度值,对于读取的温度值,仍然通过DS1624的指令集来完成温度的读取。但所有有数据的传送过程必须遵循I2C协议。
-DS1624 is due to the structure of I2C bus serial data transmission, it requires SDA and SCL completed two lines of data transmission process. Therefore, we design procedures during the time, it has agreed to subscribe for I2C chip DS1624 data access. The I2C agreement refer to the relevant information, will not elaborate here. For AT89S51 SCM does not I2C hardware resources, Therefore, we must use the software to simulate the process I2C agreement. Read from the DS1624 temperature, to start the internal temperature DS1624 A/D conversion start, corresponds to a corresponding order to start the starting temperature conversion, the DS1624 instruction set reference to the previous descr iption. Under normal circumstances, the DS1624 temperature through a transformation takes a second time aro
要从DS1624中读取温度值,首先启动DS1624的内部温度A/D开始转换,对应着有相应的命令用来启动开始温度转换,有关DS1624的指令集参考前面的叙述。一般情况下,DS1624经过一次温度的变换,需要经过1秒钟左右的时间,所以等待1秒钟后,即可读取内部的温度值,对于读取的温度值,仍然通过DS1624的指令集来完成温度的读取。但所有有数据的传送过程必须遵循I2C协议。
-DS1624 is due to the structure of I2C bus serial data transmission, it requires SDA and SCL completed two lines of data transmission process. Therefore, we design procedures during the time, it has agreed to subscribe for I2C chip DS1624 data access. The I2C agreement refer to the relevant information, will not elaborate here. For AT89S51 SCM does not I2C hardware resources, Therefore, we must use the software to simulate the process I2C agreement. Read from the DS1624 temperature, to start the internal temperature DS1624 A/D conversion start, corresponds to a corresponding order to start the starting temperature conversion, the DS1624 instruction set reference to the previous descr iption. Under normal circumstances, the DS1624 temperature through a transformation takes a second time aro
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ds1624完整C程序.txt