Thanks Pimentel :- ) !
But maybe i was not clear. I know what is the Brown-out Reset in the PIC and i use it.
I tried some time ago, and turning off or on didn’t seem to make any difference.
Unfortunately I still was getting these weird garbage data in RTC from time to time …
BTW I am using a 18F4520 ( back in the old times with the 16F84 or even the 16F877 things were much more simple ;- )
I thought that there were some hidden features in the DS1307 regarding the BOR also ;-) ….
I also tried to make some kind of smart routine that recorded the RTC data in the PIC EEPROM each minute, and when detect the RTC data was corrupt and would program it with last valid info I had in the PIC EEPROM…the problem is that ~5 years from now I would probably kill my eeprom with all those write cycles ;-)
Anyway, I am starting to think that Steve88 info is really what is happening with me .
Maybe negative spikes, ( GND reference) / electrical noise is not well filtered .
I will test it and update this topic as soon I ve more news.
Thanks everyone!




Bookmarks