travisgoodspeed / goodwatch

Replacement board for Casio Calculator Watches using the CC430F6147
504 stars 55 forks source link

RTC Faults #36

Closed travisgoodspeed closed 6 years ago

travisgoodspeed commented 6 years ago

When the RTC is given garbage values, those outside the legal range, it can fault or revert to hex mode, triggering some very funny times. The POST should check for this condition, and perhaps correct it if that's possible.

travisgoodspeed commented 6 years ago

Investigating further, it seems that the RTC in calendar mode rolls over to a more complete type only at the edge that a field is full. For example, 59 minutes will zero and advance the hour on a tick, but if you set the minute field to 61, it will never advance the hour until it completely overfills.

Sadly, there is no "RTC is within valid ranges" flag or field.