From my experience in industrial control ...
1) mains is " not so clean " and a strong filtering + backup battery generally solve 99% of regulation problems.
2) use a hardware reset circuit like with a MC 33164P5 ...
3) use Hardware pullups and not "software" ones ...
4) a CRC check could be a nice idea ...
5) take great care of your line to the DS1820 ... ( see Dallas design ideas for rugged nets ... )
6) you could add some checking of the Status and Pcon registers to help identifiying the problem ( add a couple of leds i.e. )
Alain
Bookmarks