[Openec] one_wire.c, 1-Wire routine implemented in high priority IRQ
Frieder Ferlemann
frieder.ferlemann at web.de
Mon Oct 15 11:11:37 EDT 2007
Hi,
implemented one-wire routines. It is now possible to
read the DS2756:)
The one-wire transfer is done within a high priority IRQ
(an IRQ that may interrupt another IRQ).
This means that the one-wire transfer may run in the background
so the EC can stay responsive during the transfer.
(drawback is that the IRQ may not be disabled for more
than a few microseconds. And it uses 14 bytes of the
precious data memory (11%))
With 'b' or 'B' on the prompt you get:
DS2756 00: ff 6a ff ff ff ff ff 38
DS2756 08: 3a ff ff ff 57 3a ff ff
DS2756 10: ee 0d ff ff ff ff ff ff
DS2756 18: 15 8a ff fe ff ff ff ff
DS2756 20: 0f 50 00 15 00 00 0e 1a
DS2756 28: 47 00 f0 00 f0 05 ee 10
DS2756 30: 01 6a 00 fe 01 00 00 00
DS2756 38: 11 88 00 00 00 00 01 00
DS2756 40: 00 00 00 01 00 00 00 0f
DS2756 48: 00 00 07 00 04 00 01 00
DS2756 50: 0b 03 24 00 00 00 00 00
DS2756 58: 00 00 00 00 03 00 00 11
DS2756 60: 81 21 2b 05 73 00 00 00
DS2756 68: 02 13 00 00 00 00 00 00
DS2756 70: 03 b7 00 00 00 00 00 00
DS2756 78: 00 00 00 00 00 00 00 00
DS2756 80: 00 00 00 00 00 00 00 00
DS2756 88: 00 00 00 00 00 00 00 00
Ser:6d2a00000000 U_raw:573c I_raw:fffd I_avg_raw:0000 Q_raw:ee0d T_raw:1581 E:87
Greetings,
Frieder
More information about the Openec
mailing list