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

Discussion in 'Embedded Systems and Microcontrollers' started by spinnaker, Dec 5, 2015.

  1. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    5,289
    1,313
    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?
     
  2. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,690
    801
    Combination of transients I guess.
     
  3. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    5,289
    1,313
    Explain please?
     
Loading...