BAT32G1x9 user manual | Chapter 11 Real-time clock
441 / 1149
Rev.1.02
11.3.1
Peripheral enable register 0 (PER0).
The PER0 register is a register that is set to allow or disable clocks to each peripheral hardware. Reduce
power consumption and noise by stopping clocking hardware that is not in use.
To use a real-time clock, bit7 (RTCEN) must be set to "1". The PER0 register is set via the 8-bit memory
operation instructions. After generating a reset signal, the value of this register changes to "00H".
Fig.11-2 The format of Peripheral enable register 0 (PER0)
Address: 0x40020420
After reset: 00H
R/W
symbol
7
6
5
4
3
2
1
0
PER0
RTCEN
-
ADCEN
IICA0EN
SCI1EN
SCI0EN
CAN0IN
TM40EN
RTCEN
Provides control of the input clock of the real-time clock (RTC) and
a 15-bit
interval timer
0
Stop providing the input clock.
• You cannot write SFR for real-time clocks (RTCs) and
15-bit
interval timers.
• The real-time clock (RTC) and
15-bit
interval timer are reset.
1
An input clock is provided.
• Read and write SFR for real-time clock (RTC) and
15-bit
interval timers.
Note 1
If you want to use a real-time clock, you must first place the
RTCEN
position
"1"
in the oscillation stable state
of
the counting clock (
f
RTC
),
and then set the following registers. When
the
RTCEN
bit is
"0", the write operation
of the real-time clock control register is ignored, and the read value is the initial value (except for
the real-time
clock selection register
(RTCCL), port mode register, and port register).
• Real-time clock control register
0
(RTCC0).
• Real-time clock control register
1
(RTCC1).
• Second Count Register (SEC).
• Minute Count Register (MIN).
• Hour Count Register (HOUR).
• Day Count Register
(DAY).
• Week Count Register (WEEK).
• Month Count Register (MONTH).
• Year Count Register (YEAR).
• Clock Error Correction Register (SUBCUD).
• Alarm Clock Minute Register (ALARMWM).
• Alarm Clock Hour Register (ALARMWH).
• Alarm Clock Week Register (ALARMWW
).
2. Can be stopped to
the real-time clock and
15
in
deep sleep mode or sleep mode running in the subsystem
clock by providing
the
RTCLPC
position
"1"
of the mode control register (
OSMC)
of
the subsystem clock
Peripheral functions other than bit-interval timers provide the subsystem clock.