English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (489/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
21.7 Updating the Time and Date
Registers
The following flowchart explains in detail the steps that
have to be performed in order to update the RTCTIME
and RTCDATE registers.
PIC32MX3XX/4XX
Start
Updating the RTCCTIME, RTCCDATE registers logic flow
RTCCON.ON
?
No
Wait RTCC clock off
Write RTCTIME,
RTCDATE
Yes
di
(ALRMEN && AMASK==HALFSEC &&
ALRMSYNC)||RTCSYNC?
No
Yes
Write RTCTIME,
RTCDATE
ei
?
Either, faster
ei
Or, slower
Pulse=ALRMSYNC
Or
Pulse=RTCSYNC
While(pulse);
RTCON.ON=0;
di
Wait RTCC clock off
Write RTCTIME,
RTCDATE
End
pulse?
Yes
ei
No
Write RTCTIME,
RTCDATE
ei
© 2008 Microchip Technology Inc.
Preliminary
DS61143E-page 487