Exact match. Not showing close matches.
'[PIC] Long power supply fall time SOLVED!'
Here was the problem:
get_time(); // Get time from RTC
if(time[SEGUNDOS] & 0x80) // If the RTC oscillator is off
time[SEGUNDOS] = (time[SEGUNDOS]+1) & 0x3F; // Get the
actual second and clear the 8th bit to
// enable the oscillator
Save time -> saves hour, mins and secs
As you can see, one the RTC was powering down, one should read
FF:FF:FF as the time, so the program will interpret that the oscillator was
off and then re-write the time (recently read) which was off course
This was solved eliminating that part of the code and adding a piece
of code that detects when the PIC reads an incorrect time, like FF hours...
Then, print "E" as an error message on the display. Approximately 200ms
before the display is off (when the board is unplugged) is shows that E...
Just tested 230 cycles successfully-
Thank to all of you guys!!
More... (looser matching)
- Last day of these posts
- In 2005
, 2006 only
- New search...