BAT32G1x9 user manual | Chapter 8 Timer B
257 / 1149
Rev.1.02
8.2
Structure of timer B
The block diagram and pin structure of timer B are shown in Figure 8-1 and Table 8-1, respectively.
Figure 8-1 Block diagram of Timer B
TIMER B control circuit
TBCLK0
TBCLK1
TBIO0
TBIO1
Timer B
interrupt singal
(INTTMB)
TB register
TBGRA register
TBGRB register
TBGRC register
TBGRD register
TBMR register
TBCNTC register
TBCR register
TBIER register
TBSR register
TBIOR register
counter
source
selection
circuit
comparator
fCLK
、
fCLK/2
、
fCLK/4
、
fCLK/8
、
fCLK/32
D
a
ta
b
u
s
Table 8-1: Timer B Pin Structure
Pin name
The port name of
the multiplex
Input/Output
function
TBCLK0
P00
input
• Phase count mode
A phase input
• Input of external
clock 0 in non-
phase counting
mode
TBCLK1
P01
input
• Phase count mode
B-phase input
• Input of external
clock 1 in non-
phase counting
mode
TBIO0
P50
Input/Output
• Timer mode (output comparison function).
The output of the TBGRA output comparison
• Timer mode (input capture function).
TBGRA input captures the input
• PWM mode
PWM output
TBIO1
P51
Input/Output
• Timer mode (output comparison function).
• The output of the TBGRB output comparison
• Timer mode (input capture function).
• TBGRB input captures the input