R01UH0823EJ0100 Rev.1.00
Page 763 of 1823
Jul 31, 2019
RX23W Group
28. Realtime Clock (RTCe)
Figure 28.1
Block Diagram of RTC (n = 0, 1)
Table 28.2
Pin Configuration of RTC
Pin Name
I/O
Function
XCIN
Input
Connect a 32.768-kHz crystal to these pins.
XCOUT
Output
RTCOUT
Output
This pin is used to output a 1-Hz/64-Hz waveform.
RTCIC0
Input
Time capture event input pins
RTCIC1
Input
RMINCNT/
BCNT1
RHRCNT/
BCNT2
RDAYCNT
RMONCNT
RYRCNT
Sub-clock
oscillator
XCIN
XCOUT
RWKCNT/
BCNT3
32.768 kHz
128 Hz
R64CNT
RSECCNT/
BCNT0
Internal peripheral bus
RTCOUT
1-Hz/64-Hz output
128-Hz generation
for XCIN
RADJ
Realtime clock (RTC)
Time counter
Prescaler
RCR2
Time capture
event input pins
RTCICn
RTCCRn
RMINAR/
BCNT1AR
RHRAR/
BCNT2AR
RWKAR/
BCNT3AR
RSECAR/
BCNT0AR
RSECCPn/
BCNT0CPn
RMINCPn/
BCNT1CPn
RHRCPn/
BCNT2CPn
RDAYCPn/
BCNT3CPn
RMONCPn
Time capture control unit
Alarm function
RCR1
ALM
PRD
CUP
Event signal output
Interrupt control
Bus interface
Alarm comparison
To each
function
RCR3
RDAYAR/
BCNT0AER
RMONAR/
BCNT1AER
RYRAR
BCNT2AER
RYRAREN/
BCNT3AER
R64CNT:
64-Hz counter
RSECCNT/BCNT0: Second counter/Binary counter 0
RMINCNT/BCNT1: Minute counter/Binary counter 1
RHRCNT/BCNT2: Hour counter/Binary counter 2
RWKCNT/BCNT3: Day-of-week counter/Binary counter 3
RDAYCNT:
Date counter
RMONCNT:
Month counter
RYRCNT:
Year counter
RCR1:
RTC control register 1
RCR2:
RTC control register 2
RCR3:
RTC control register 3
RADJ:
Time error adjustment register
RSECAR/BCNT0AR:
Second alarm register/Binary counter 0 alarm register
RMINAR/BCNT1AR:
Minute alarm register/Binary counter 1 alarm register
RHRAR/BCNT2AR:
Hour alarm register/Binary counter 2 alarm register
RWKAR/BCNT3AR:
Day-of-week alarm register/Binary counter 3 alarm register
RDAYAR/BCNT0AER:
Date alarm register/Binary counter 0 alarm enable register
RMONAR/BCNT1AER: Month alarm register/Binary counter 1 alarm enable register
RYRAR/BCNT2AER:
Year alarm register/Binary counter 2 alarm enable register
RYRAREN/BCNT3AER: Year alarm enable register/Binary counter 3 alarm enable register
RTCCRn:
Time capture control register n
RSECCPn/BCNT0CPn: Second capture register n/BCNT0 capture register n
RMINCPn/BCNT1CPn: Minute capture register n/BCNT1 capture register n
RHRCPn/BCNT2CPn:
Hour capture register n/BCNT2 capture register n
RDAYCPn/BCNT3CPn: Date capture register n/BCNT3 capture register n
RMONCPn:
Month capture register n