Why does RTCWREN need to be enabled to write to RTC registers on the Pic?

Thread Starter

spinnaker

Joined Oct 29, 2009
7,835
Why does RTCWREN need to be enabled to write to RTC registers on the Pic? Maybe a better question is why is there an RTCWREN? What makes the RTC registers different from any other SFR? The datasheet mentions RTCWREN should be locked when no writes to RTC registers are occurring to prevent "accidental" writes. How could that happen if the code does not let it occur?
 

atferrari

Joined Jan 6, 2004
4,018
Why does RTCWREN need to be enabled to write to RTC registers on the Pic? Maybe a better question is why is there an RTCWREN? What makes the RTC registers different from any other SFR? The datasheet mentions RTCWREN should be locked when no writes to RTC registers are occurring to prevent "accidental" writes. How could that happen if the code does not let it occur?
Combination of transients I guess.
 
Top