BAT32G1x9 user manual | Chapter 10 Timer M
316 / 1149
Rev.1.02
10.3.1
Peripheral enable register 1 (PER1).
Per1 registers are registers that are 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 timer M, bit4 (TMMEN) 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 10-2 Format of Peripheral enable register 1 (PER1)
Address: 0x4002081A
after reset:
00H R/W
symbol
PER1
TMMEN
Provides control of the input clock of
timer M
0
Stop providing the input clock.
• SFR used by timer M cannot be written.
• Timer M is reset.
1
An input clock is provided.
• SFR that can be used in the read-write timer M.
PWMOPEN
PWM cut-off control circuitry for control of the input clock
0
Stop providing the input clock.
• Do not write the SFR used in the PWM cut-off circuit.
• The PWM cut-off circuit is reset.
1
An input clock is provided.
• Can read and write SFR used in PWM cut-off circuits.
Note 1
To set the timer M, you must first place the
TMMEN
position
"1". When
the TMMEN bit is
"0"
,
the write operation of
the control register of timer M is ignored, and the read values are both the initial values (port mode register
1
(PM1) and port register
1). (P1)).
2. To select fHOCO as the counting source for timer M, you must set the bit4 (TMMEN) of peripheral enable register
1 (PER1) before setting it fCLK is set to fIH. If you want to change the fCLK to a clock other than fIH, you must set
bit4 of register 1 (PER1) in the peripheral to be cleared (TMMEN) after making changes.
3. To set PWMOP, you must first place the PWMOPEN position "1". When the PWMOPEN bit is "0", the write operation
of t
he control register of the PWMOP is ignored, and the read values are the initial values. See "10.8 PWMOP”
。
7
6
5
4
3
21
0
DACEN
TMBAndN
PGACMPEN
note
TMMEN
DMAEN
PWMOPEN
TMCEN
TMAEN