DZ60通过IIC读取LM75温度遇到问题解决方法
2014-11-26 09:58
169 查看
通过FreeScale单片机DZ60读取LM75的温度,遇到如下问题:
连接BDM仿真器通过IIC读取LM温度时不存在问题,同样的程序,拔了仿真器,通过CAN将温度发送出来时,读取不到温度。CAN通信没有问题。
解决方法:
读取温度的频率降低(<300ms),则正常。
原因分析:
The conversion-time specification is provided to indicate how often the temperature data is updated. The LM75 can be accessed at any
time and reading the Temperature Register will yield result from the last temperature conversion. When the LM75 is accessed, the
conversion that is in process will be interrupted and it will be restarted after the end of the communication. Accessing the LM75
continuously without waiting at least one conversion time between communications will prevent the device from updating the
Temperature Register with a new temperature conversion result. Consequently, the LM75 should not be accessed continuously with a
wait time of less than 300 ms
转换时间规范提供说明通常温度数据更新。LM75可以在任何时间和读取温度寄存器将从去年的温度转换结果。
当LM75访问,转换,是过程将被中断,它将通信结束后重新启动。访问LM75连续无等待至少一个转换时间之
间的交流将阻止装置与一个新的温度转换的结果更新温度寄存器。因此,不应该访问的LM75持续不到300毫秒的等待时间
连接BDM仿真器通过IIC读取LM温度时不存在问题,同样的程序,拔了仿真器,通过CAN将温度发送出来时,读取不到温度。CAN通信没有问题。
解决方法:
读取温度的频率降低(<300ms),则正常。
原因分析:
The conversion-time specification is provided to indicate how often the temperature data is updated. The LM75 can be accessed at any
time and reading the Temperature Register will yield result from the last temperature conversion. When the LM75 is accessed, the
conversion that is in process will be interrupted and it will be restarted after the end of the communication. Accessing the LM75
continuously without waiting at least one conversion time between communications will prevent the device from updating the
Temperature Register with a new temperature conversion result. Consequently, the LM75 should not be accessed continuously with a
wait time of less than 300 ms
转换时间规范提供说明通常温度数据更新。LM75可以在任何时间和读取温度寄存器将从去年的温度转换结果。
当LM75访问,转换,是过程将被中断,它将通信结束后重新启动。访问LM75连续无等待至少一个转换时间之
间的交流将阻止装置与一个新的温度转换的结果更新温度寄存器。因此,不应该访问的LM75持续不到300毫秒的等待时间
相关文章推荐
- 关于客户遇到的S5pv210 wince6.0 BSP编译不通过的问题解决方法
- IIS7.0通过FastCGI方式运行PHP遇到的一些问题及解决方法
- 通过SQLyog远程管理linux下mysql过程中遇到的问题以及解决方法
- IIS7.0通过FastCGI方式运行PHP遇到的一些问题及解决方法
- IIS7.0通过FastCGI方式运行PHP遇到的一些问题及解决方法
- bash 中 while读取文件并通过 ssh执行命令出现的问题及解决方法
- 今天遇到的几个问题以及解决方法
- 在VS.NET 2003中建立项目时遇到的两个问题及解决方法 (转)
- LoadRunner本机录制http协议程序遇到的问题以及解决方法
- C#中关于从剪贴板中读取HTML格式含中文字符会出现的问题和解决方法
- 某公司R2631E以太口通过SDH接新桥的ATM交换机,出现丢包问题的解决方法
- 用python编写ASP脚本时遇到的问题,初步的解决方法,目前正在寻找更好的解决办法。
- 今天进行最后编译了,遇到了不少问题,现已解决,将问题和解决方法都记录下来;
- .Net中通过DataSet直接更新数据库相关问题和解决方法
- Infragistics的NetAdvantage控件使用中遇到的问题及解决方法
- 最近学习J2EE遇到的问题及解决方法(一)
- 用servlet实现登录注册功能时遇到的问题和解决方法
- 从 .net 1.1 升级到 2.0过程中遇到的问题及解决方法
- 遇到的问题和解决方法
- [导入]JDBC链接sql server数据库遇到的问题和解决方法