BAT32G1x9 user manual | Chapter 9 Timer C
299 / 1149
Rev.1.02
9.3 Control registers of timer C
The registers that control timer C are shown in Table 9-1.
Table 9-1 control registers of timer C
Register name
symbol
Peripheral enable register 1
PER1
Timer C
count register
TC
Timer C
counts buffer registers
TCBUF0
Timer C
controls register 1
TCCR1
Timer C
controls register
2
TCCR2
Timer C
status register
TCSR
9.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 timer C, bit1 (TMCEN) 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 9-2 format of Peripheral enable register 1 (PER1)
Address: 0x4002081A
after reset:
00H R/W
symbol
PER1
TMCEN
Provides control of the input clock of timer C
0
Stop providing the input clock.
• SFR cannot be written to timer
C.
• Timer
A
is reset.
1
An input clock is provided.
• SFR can be read and written to timer
C.
Note 1
To set the timer
C, you must first place the
TMCEN
position
"1". When
the TMCEN
bit is
"0"
, the
write operation
of the control register of
timer
C
is ignored
, and the read values are the initial values.
7
6
5
4
3
2
2
1
0
DACEN
TMBEN
PGACMPEN
TMMEN
DButIn
PWMOPEN
TMCEN
TButIn