R01UH0823EJ0100 Rev.1.00
Page 780 of 1823
Jul 31, 2019
RX23W Group
28. Realtime Clock (RTCe)
28.2.17
RTC Control Register 1 (RCR1)
The RCR1 register is used in both calendar count mode and in binary count mode.
Bits AIE, PIE, and PES[3:0] are updated synchronously with the count source. When the RCR1 register is modified,
check that all the bits have been updated before proceeding to the next processing.
AIE Bit (Alarm Interrupt Enable)
This bit enables or disables alarm interrupt requests.
CIE Bit (Carry Interrupt Enable)
This bit enables and disables interrupt requests when a carry to the RSECCNT/BCNT0 register occurs, or when a carry
to the 64-Hz counter (R64CNT) occurs while reading the 64-Hz counter.
PIE Bit (Periodic Interrupt Enable)
This bit enables or disabled a periodic interrupt.
RTCOS Bit (RTCOUT Output Select)
This bit selects the RTCOUT output period. The RTCOS bit must be rewritten while count operation is stopped (the
RCR2.START bit is 0) and RTCOUT output is disabled (the RCR2.RTCOE bit is 0). When the RTCOUT is output to an
external pin, the RCR2.RTCOE bit must be enabled. For details on controlling I/O ports, refer to
Procedure for Specifying Input/Output Pin Function
.
PES[3:0] Bits (Periodic Interrupt Select)
These bits specify the period for the periodic interrupt. A periodic interrupt is generated with the period specified by
these bits.
Address(es): RTC.RCR1 0008 C422h
b7
b6
b5
b4
b3
b2
b1
b0
PES[3:0]
RTCOS
PIE
CIE
AIE
Value after reset:
x
x
x
x
0
x
0
x
x: Undefined
Bit
Symbol
Bit Name
Description
R/W
b0
Alarm Interrupt Enable
0: An alarm interrupt request is disabled.
1: An alarm interrupt request is enabled.
R/W
b1
Carry Interrupt Enable
0: A carry interrupt request is disabled.
1: A carry interrupt request is enabled.
R/W
b2
Periodic Interrupt Enable
0: A periodic interrupt request is disabled.
1: A periodic interrupt request is enabled.
R/W
b3
RTCOUT Output Select
0: RTCOUT outputs 1 Hz.
1: RTCOUT outputs 64 Hz.
R/W
b7 to b4
Periodic Interrupt Select
b7
b4
0 1 1 0: A periodic interrupt is generated every 1/256 second.
0 1 1 1: A periodic interrupt is generated every 1/128 second.
1 0 0 0: A periodic interrupt is generated every 1/64 second.
1 0 0 1: A periodic interrupt is generated every 1/32 second.
1 0 1 0: A periodic interrupt is generated every 1/16 second.
1 0 1 1: A periodic interrupt is generated every 1/8 second.
1 1 0 0: A periodic interrupt is generated every 1/4 second.
1 1 0 1: A periodic interrupt is generated every 1/2 second.
1 1 1 0: A periodic interrupt is generated every 1 second.
1 1 1 1: A periodic interrupt is generated every 2 seconds.
Other than above: No periodic interrupts are generated.
R/W