Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 Next > End >>

mpanetta

Senior Boarder

2008/09/27 16:43

Re:1 Wire Bus support

Could you not use one of the GP timers to do this? Use the timer to generate the correct bit timing (generate an interrupt per bit, not the best use of interrupts but hay) and also to read bits? You would just need to turn around the pin and switch the timer from compare to capture (or viceversa) to do this I think...

The sending ISR would do a bit shift and lookup for the time to write into the timer, and the RX ISR would check the bit length and shift a 1 or 0 based on a window comparison I would think.

Does this sound feasible? I have no idea what impact it would have in terms of CPU utilization...

Mike

login or register to reply
<< Start < Prev 1 2 Next > End >>