
ML62Q1000 Series User's Manual
Chapter 8 16-Bit Timer
FEUL62Q1000 8-27
8.3.3 Common Operation
8.3.3.1
Start/Stop Timing
Writing "1" to the THnRUN bit of the TMHSTR register causes the counting operation to start at the rising edge of the
timer clock that follows.
Figure 8-10 shows the timer start timing when the timer clock is LSCLK and frequency dividing ratio of the count clock
is 1/2 of the timer clock.
SYSTEMCLK
0000H
Timer clock
Timer counter
THnSTAT
Timer
start
0001H
0002H
TMHnOUT
Write
TMHSTR
register
Figure 8-10 Start Timing
Writing "1" to the THnSTP bit of the TMHSTP register causes the counting operation to stop at the rising edge of the
timer clock that follows.
Figure 8-11 shows the timer stop timing when the timer clock is LSCLK and frequency dividing ratio of the count clock
is 1/2 of the timer clock.
SYSTEMCLK
FFF0H
Timer clock
Timer counter
THnSTAT
Timer
stop
TMHnOUT
FFF1H
Write
TMHSTP
register
FFF2H
Figure 8-11 Stop Timing
[Note]
ž
Since counting operation is not suspended during the period in which THnSTAT bit is "1", restart
of the counting is ignored even if THnRUN bit is set to "1" in this period. To restart the counting,
make sure that the THnSTAT is set to "0", then set the THnRUN bit to "1".
ž
After the THnRUN bit is set to "1", the first interrupt has a time error equivalent to maximum of one
clock of the timer clock because the counting operation starts in synchronization with the timer
clock. The 2
nd
timer interrupt or later interrupts have constant cycles.
ž
After the THnSTP bit is set to "1", a timer n interrupt (TMnINT) may be generated depending on the
stop timing because the counting operation stops in synchronization with the timer clock.
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...