slzm40 发表于 2012-8-2 19:39:04

DS18B20告警搜索命令ECH问题?

最近在用一个DS18B20,这个我设定了温度的上,下限,当执行告警搜索命令后,只有温度超过设定值上限或下限的芯片才作出响应, 但是这个响应是什么,没有说。

还有一段关于ECH的说明
Alarm Search
The flowchart of this command is identical to the Search ROM command. However, the DS18B20X will
respond to this command only if an alarm condition has been encountered at the last temperature
measurement. An alarm condition is defined as a temperature higher than TH or lower than TL. The
alarm condition remains set as long as the DS18B20X is powered up, or until another temperature
measurement reveals a non-alarming value. For alarming, the trigger values stored in EEPROM are taken
into account. If an alarm condition exists and the TH or TL settings are changed, another temperature
conversion should be done to validate any alarm conditions.


到底是作什么响应,返回什么样的标志,或值??

大多数软件设计上都是读出温度值,然后在软件里作比较,
我这里想设定好上下限,通过告警搜索命令来查有没有超标,然后再决定是否读寄存器的值来决定是否作相关动作。

slzm40 发表于 2012-8-3 00:18:29

{:3_50:}没人用过告警搜索指令么??
页: [1]
查看完整版本: DS18B20告警搜索命令ECH问题?