BAT32G1x9 user manual | Chapter 8 Timer B
269 / 1149
Rev.1.02
8.3.8 Timer B counter (TB).
Tb registers are connected via a 16-bit internal bus and CPU, so they must be accessed in 16-bit units. TB registers can be
incremented, free-running, cycle counting, or external event counting. Tb can be captured by matching with the corresponding
TBGRA registers, TBGRB registers, or inputs to TBGRA registers and TBGRB registers Register clear "0000H" (counter clear
function).
When the TB register overflows ("FFFFH"
"0000H"), the TBOVF bit of the TBSR register becomes "1"; When the TB register
underflows ("0000H"
"FFFFH"), the TBUDF bit of the TBSR register becomes “1”
。
Figure 8-9 Format of the timer B counter (TB).
Address: 40042656H
After reset:
0000H
R/W
Symbol 15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TB
—
function
Set the scope
bit15
~
0
Increment/decrement count in phase count mode and increment count
in other modes.
0000H~FFFFH