BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
186 / 1149
Rev.1.02
6.6.5
About the timer interrupt and TOmn pin output when starting to count
In interval timer mode or capture mode, the MDmn0 bit of the timer mode register mn (TMRmn) is the bit that
sets whether a timer interrupt occurs at the start of counting.
When the MDmn0 bit is "1", the start timing of the count is known by generating a timer interrupt (INTTMmn). In
other modes, timer interrupts and TOmn outputs at start counting are not controlled. An example of operation when
set to interval timer mode (TOEmn=1, TOMmn=0) is shown below.
Figure 6-39 An example of a timer interrupt and a TOmn output when counting starts
(a) The case where the MDmn0 bit is "1"
TCRmn
TEmn
INTTMmn
TOmn
Start counting
(b) The case where the MDmn0 bit is "0"
TCRmn
TEmn
INTTMmn
TOmn
Start counting
When the MDmn0 bit is "1", the output timer interrupt (INTTMmn) is output at the start of counting and the
TOmn is alternately output.
When the MDmn0 bit is "0", no timer interrupt (INTTMmn) is output at the start of counting and TOmn does not
change, but INTMmn is output after counting 1 cycle and TOmn performs alternate outputs.
Remarks: m: Unit number (m=0,1)n: Channel number (when m=0: n=0~3, m=1: n=0~7).