BAT32G1x9 user manual | Chapter 12 15-bit interval timer
464 / 1149
Rev.1.02
12.3 control Registers of the 15-bit interval timer
The 15-bit interval timer is controlled by the following registers.
•
Peripheral enable register 0 (PER0).
•
Real-time clock selection register (RTCCL).
• Control Register (ITMC) for 15-bit interval timers
12.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 the 15-bit interval timer, bit7 (RTCEN) must be set to "1". Set the PER0 register with 8-bit
memory manipulation instructions . After generating a reset signal, the value of this register becomes "00H".
Figure 12-2 The format of Peripheral enable register0(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 for a real-time clock (RTC) and a 15-bit interval timer
0
Stop providing the input clock.
• SFR used by real-time clocks (RTCs) and 15-bit interval timers cannot be written.
• 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.