BAT32G1x9 user manual | Chapter 8 Timer B
264 / 1149
Rev.1.02
6
5
4
3
2
1
0
0
TBDIRF
TBOVF
TBUDF
TBIMFB
TBIMFA
7
8.3.6 Timer B status register (TBSR).
Figure 8-7
Format of the timer B status register (TBSR).
Address: 40042654H
after reset:
00H
R/W
symbol
TBSR
TBDIRF
Count direction flags
0
The TB register counts down.
1
The TB registers increment the count.
TBOVF
Overflow flag
note
1
[condition for
"0"].
After reading write
"0"
Note
2
. [condition for
"1"].
Refer to "Conditions for each flag of Table 8-3 as "1"".
TBUDF
Underflow flag
[condition for "0"]. After reading write "0" Note 2. [condition for
"1"].
Refer to "Conditions for each flag of Table 8-3 as "1"".
TBIMFB
Enter Capture/Compare Match Flag
B
[condition for
"0"].
After reading, write
"0"
Notes
2
and
3
. [condition for
"1"].
Refer to "Conditions for each flag of Table 8-3 as "1"".
TBIMFA
Enter capture/compare match flag
A
[condition for
"0"].
After reading, write
"0"
Notes
2
and
3
. [condition for
"1"].
Refer to "Conditions for each flag of Table 8-3 as "1"".
Note 1. When the count value of timer B changes from "FFFFH" to "0000H", the TBOVF bit changes to "1". In addition, according
to the setting of the TBCCLR bits of the TBCR register and the TBCCLR 1 bits, if the count value of timer B is changed
from " FFFFH" becomes "0000H" and the TBOVF bit becomes "1".
2. Write the result as follows:
• When writing "1", this bit does not change.
• In the case of reading a value of "0", it does not change even if "0" is written to the same bit (in the case of changing
from "0" to "1" after reading, it remains "1" even if "0" is written
status).
• In the case where the read value is
"1", if you write
"0"
to the same
bit, this bit becomes
"0".
However, when you want to set the state flag (hereinafter referred to as
the "object status flag")
of one of the
interrupt sources of timer B to "0" if the interrupt is timered
If the B interrupt enable register (TBIER) is set to disable interrupts, it must be placed "0" in any of the following
methods (a)~(c).