Well, not so good.
There is only 1 Alarm status bit, No SkipROM, and mode 4 (bit data) is used to retrieve it after the AlarmSearch command.
If there is an alarm, you have to read the temperature to figure out whether it's too high or too low.Code:Alarm VAR BIT OWOUT DQ, 1, [$EC] OWIN DQ, 4, [Alarm]
It will return a 0 if there is an alarm, 1 if not. But you can reverse that easily with...hth,Code:Alarm = Alarm ^ 1





Bookmarks