Hiya Jessey,
That's the only bad part about interrupts. They Interrupt things.
And when you have something with very strict timing requirement such as 1-Wire devices, they just don't go together very good.
Probably the easiest way to remedy the situation is to just turn-off the interrupts when reading the sensor. This may cause a small amount of error to accumulate in the Timer routine, but if you keep the Temp readings to a minimum, it shouldn't even be noticible, maybe add a second a month or so.
Other than that, using a syncronous device like I2C or SPI will eliminate the problem all together.
HTH,
Darrel
Bookmarks