
BAT32G1x9 user manual | Chapter 10 Timer M
342 / 1149
Rev.1.02
Note 1
Write the result as follows:
• When you write
"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).
• If the read value is
"1", if you write
"0"
to the same
bit, the 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 M to
"0"
if the interrupt is timer
M interrupt enable register
i
(TMIERi) is set to disable interrupt, and it must be
set to
"0"
in any of the following
methods
(
a
)
~(c).
(a) The object status flag must be written "0" after setting the timer M interrupt enable register
i
(TMIERi)
to
"00H"
(disable all interrupts).
(b) When the timer M interrupt enable register
i
(TMIERi) has a bit placed
"1"
(allowed) and the interrupt
source status flag allowed by that bit is
"0", the object status flag must be written
"0".
(e.g.) in the case where
IMIEA
and
OVIE
clear
IMFB
in a state where interrupts are allowed
and
IMIEB
is
prohibited
• Timer M interrupt enable the
state of register i (TMIERi
).
—
0
—
0
—
0
OVIE
1
IMIED
0
IMIEC
0
IMIEB
0
IMIEA
1
interrupt
enable
interrupt disable
TMIERi
• Status of timer M status register
i
(TMSRi).
—
0
—
0
UDF
0
OVF
0
IMFD
1
IMFC
0
IMFB
1
IMFA
0
must cclear request
bit
must write 0 to IMFB since the corresponding status flag (OVF,
IMFA) of enabled interrupt are "0".
TMSRi
(c) When the timer M interrupt enable a
bit of "1" (allowed) in the enable register i (TMIERi) and the bit enable
the interrupt source status flag is "1", this state flag and the object status flag must be written "0" at the
same time
。
(e.g.) when IMIEA clears the IMFB in a state where interrupts are allowed
and
IMIEB
is prohibited
• Timer M interrupt enable the
state of
register
i
(TMIERi
).
—
0
—
0
—
0
OVIE
1
IMIED
0
IMIEC
0
IMIEB
0
IMIEA
1
interrupt
enable
interrupt disable
TMIERi