BAT32G1x9 user manual | Chapter 17 Comparator
538 / 1149
Rev.1.02
17.3.1
Peripheral enable register 1 (PER1).
The PER1 register is a register that is set to enable or disable clocks to each peripheral hardware. Reduce
power consumption and noise by stopping clocking hardware that is not in use.
To use the comparator, bit5 (PGACMPEN) must be set to "1".
The PER1 register is set via the 8-bit memory operation instruction.
After generating a reset signal, the value of this register changes to "00H".
Figure 17-3 format of the Peripheral enable register 1 (PER1)
Address: 0x4002081A
after reset:
00H R/W
symbol
PER1
PGACMPEN
Control of the comparator input clock
0
Stop providing the input clock.
• Cannot write SFR used by the comparator.
•The comparator is in reset state.
1
An input clock is provided.
• I can read and write the SFR used by the comparator.
note
To set the comparator, you must first place the PGACMPEN
at
"1".
When the PGACMPEN
bit is
"0", the write operation of the comparator's control register is ignored, and the read values
are all initial values (except for the port mode register (PMxx) and the port register (Pxx)).
7
6
5
4
3
2
2
1
0
DACEN
TMBAndN
PGACMPEN
TMMEN
DMAIn
PWMOPEN
TMCEN
TSTONE