User's Manual

Table Of Contents
28.2.15 Year Alarm Register (RYRAR)/Binary Counter 2 Alarm Enable Register (BCNT2AER) .....786
28.2.16 Year Alarm Enable Register (RYRAREN)/Binary Counter 3 Alarm Enable Register
(BCNT3AER) ...........................................................................................................................787
28.2.17 RTC Control Register 1 (RCR1) ..............................................................................................788
28.2.18 RTC Control Register 2 (RCR2) ..............................................................................................789
28.2.19 RTC Control Register 3 (RCR3) ..............................................................................................791
28.2.19.1 Notes on using a low CL crystal unit ..............................................................................791
28.2.20 Time Error Adjustment Register (RADJ) .................................................................................792
28.2.21 Time Capture Control Register n (RTCCRn) (n = 0, 1) ...........................................................793
28.2.22 Second Capture Register n (RSECCPn) (n = 0, 1)/BCNT0 Capture Register n
(BCNT0CPn) (n = 0, 1) ............................................................................................................795
28.2.23 Minute Capture Register n (RMINCPn) (n = 0, 1)/BCNT1 Capture Register n
(BCNT1CPn) (n = 0, 1) ............................................................................................................796
28.2.24 Hour Capture Register n (RHRCPn) (n = 0, 1)/BCNT2 Capture Register n
(BCNT2CPn) (n = 0, 1) ............................................................................................................797
28.2.25 Date Capture Register n (RDAYCPn) (n = 0, 1)/BCNT3 Capture Register n
(BCNT3CPn) (n = 0, 1) ............................................................................................................798
28.2.26 Month Capture Register n (RMONCPn) (n = 0, 1) ..................................................................799
28.3 Operation ...........................................................................................................................................800
28.3.1 Outline of Initial Settings of Registers after Power On ............................................................800
28.3.2 Clock and Count Mode Setting Procedure ...............................................................................801
28.3.3 Setting the Time ........................................................................................................................802
28.3.4 30-Second Adjustment .............................................................................................................802
28.3.5 Reading 64-Hz Counter and Time ............................................................................................ 803
28.3.6 Alarm Function .........................................................................................................................804
28.3.7 Procedure for Disabling Alarm Interrupt ..................................................................................805
28.3.8 Time Error Adjustment Function .............................................................................................805
28.3.8.1 Automatic Adjustment .....................................................................................................805
28.3.8.2 Adjustment by Software ..................................................................................................806
28.3.8.3 Procedure for Changing the Mode of Adjustment ..........................................................807
28.3.8.4 Procedure for Stopping Adjustment ................................................................................807
28.3.9 Time Capture Function .............................................................................................................808
28.4 Interrupt Sources ................................................................................................................................809
28.5 Event Link Output .............................................................................................................................811
28.5.1 Interrupt Handling and Event Linking ...................................................................................... 811
28.6 Usage Notes .......................................................................................................................................812
28.6.1 Register Writing during Counting ..........................................................................................
..812
28.6.2 Use of Periodic Interrupts .........................................................................................................812
28.6.3 RTCOUT (1-Hz/64-Hz) Clock Output .....................................................................................812
28.6.4 Transitions to Low Power Consumption Modes after Setting Registers ..................................813
28.6.5 Notes on Writing to and Reading from Registers .....................................................................813
28.6.6 Changing the Count Mode ........................................................................................................813