![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 348](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609348.webp)
BAT32G1x9 user manual | Chapter 10 Timer M
348 / 1149
Rev.1.02
Note
1
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 status flag of one of the interrupt sources of timer M (hereinafter referred to
as the "object status flag
"
) to
"0", if the interrupt is allowed by timer
M
interrupt register
i
(TMIERi
) to disable
interrupts, you must use
any of the following methods
(a)
~
(c)
to set
"0".
(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