BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
147 / 1149
Rev.1.02
6.3.1
Peripheral enable register 0 (PER0).
The PER0 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 universal timer unit 0, bit0 (TM4EN) must be placed at "1". To use universal timer unit 1, bit1 (TM8EN)
must be set to "1". The PER0 register is set via the 8-bit memory operation instruction. After generating a reset
signal, the value of the PER0 register changes to "00H".
Figure 6-5 Table of Peripheral enable register 0 (PER0).
Address: 0x40020420
reset:
00HR/W
symbol
PER0
TM4EN
Control of the input clock of the universal timer unit 0
0
Stop providing the input clock.
• SFR used by universal timer unit 0 cannot be written.
• Universal timer unit
0
is reset.
1
An input clock is provided.
•
SFR for reading and writing universal timer unit
0.
TM8IN
Control of the input clock of the universal timer unit 1
0
Stop providing the input clock.
• SFR for universal timer unit 1 cannot be written.
• Universal timer unit
1
is reset.
1
An input clock is provided.
• SFR that can read and write for use in Universal Timer Unit
1.
Note 1
To set the general-purpose timer unit, the following registers must first be set while the
TM4EN/TM8EN
bit is "1".
When
the TM4EN/TM8EN
bit is
"0", the value of the control register of the timer array unit is the initial value,
ignoring the write operation (timer input and output select register
0
(TIOS0), Input Switching Control Register
(ISC), Noise Filter Enable Register
1
(NFEN1), Port Mode Control Register
PMC
x, except port mode register PMx
and port register
Px).
• Timer status register mn
(TSRmn).
• Timer channel enable status register
m(TEm).
• Timer channel start register
m(TSm).
• Timer channel stop register
m(TTm).
• Timer output enable register
m
(TOEm).
• Timer output register
m(TOm).
• Timer output level register
m(TOLm).
• Timer output mode register
m
(TOMm).
7
6
5
4
3
2
2
1
0
Xx
Xx
Xx
Xx
Xx
Xx
TM8EN
TM4EN