28.2.22 Second Capture Register n (RSECCPn) (n = 0, 1)/BCNT0 Capture Register n
(BCNT0CPn) (n = 0, 1) ............................................................................................................ 787
28.2.23 Minute Capture Register n (RMINCPn) (n = 0, 1)/BCNT1 Capture Register n
(BCNT1CPn) (n = 0, 1) ............................................................................................................ 788
28.2.24 Hour Capture Register n (RHRCPn) (n = 0, 1)/BCNT2 Capture Register n
(BCNT2CPn) (n = 0, 1) ............................................................................................................ 789
28.2.25 Date Capture Register n (RDAYCPn) (n = 0, 1)/BCNT3 Capture Register n
(BCNT3CPn) (n = 0, 1) ............................................................................................................ 790
28.2.26 Month Capture Register n (RMONCPn) (n = 0, 1) .................................................................. 791
28.3 Operation ........................................................................................................................................... 792
28.3.1 Outline of Initial Settings of Registers after Power On ............................................................ 792
28.3.2 Clock and Count Mode Setting Procedure ............................................................................... 793
28.3.3 Setting the Time ........................................................................................................................ 794
28.3.4 30-Second Adjustment ............................................................................................................. 794
28.3.5 Reading 64-Hz Counter and Time ............................................................................................ 795
28.3.6 Alarm Function ......................................................................................................................... 796
28.3.7 Procedure for Disabling Alarm Interrupt .................................................................................. 797
28.3.8 Time Error Adjustment Function ............................................................................................. 797
28.3.8.1 Automatic Adjustment ..................................................................................................... 797
28.3.8.2 Adjustment by Software .................................................................................................. 798
28.3.8.3 Procedure for Changing the Mode of Adjustment .......................................................... 799
28.3.8.4 Procedure for Stopping Adjustment ................................................................................ 799
28.3.8.5 Capturing the Time .......................................................................................................... 800
28.4 Interrupt Sources ................................................................................................................................ 801
28.5 Event Link Output ............................................................................................................................. 803
28.5.1 Interrupt Handling and Event Linking ...................................................................................... 803
28.6 Usage Notes ....................................................................................................................................... 804
28.6.1 Register Writing during Counting ............................................................................................ 804
28.6.2 Use of Periodic Interrupts ......................................................................................................... 804
28.6.3 RTCOUT (1-Hz/64-Hz) Clock Output ..................................................................................... 804
28.6.4 Transitions to Low Power Consumption Modes after Setting Registers .................................. 805
28.6.5 Notes When Writing to and Reading from Registers ............................................................... 805
28.6.6 Changing the Count Mode ........................................................................................................ 805
28.6.7 Initialization Procedure When the Realtime Clock is Not to
be Used ..................................... 806
29. Low-Power Timer (LPT) ............................................................................................................... 807
29.1 Overview ........................................................................................................................................... 807
29.2 Register Descriptions ......................................................................................................................... 808
29.2.1 Low-Power Timer Control Register 1 (LPTCR1) .................................................................... 808
29.2.2 Low-Power Timer Control Register 2 (LPTCR2) .................................................................... 810
29.2.3 Low-Power Timer Control Register 3 (LPTCR3) .................................................................... 811
29.2.4 Low-Power Timer Period Setting Register (LPTPRD) ............................................................ 812
29.2.5 Low-Power Timer Compare Register 0 (LPCMR0) ................................................................ 814