
ML62Q1000 Series User's Manual
Chapter 8 16-Bit Timer
FEUL62Q1000 8-22
8.3.2 8-Bit Timer Mode
When the THn8BM bit of the THnMOD register is set to "1", the timer operates in the 8-bit timer mode.
In the 8-bit timer mode, writing "1" to the THnHRUN bit causes the higher 8 bits (upper side 8-bit timer) of the 16-bit
counter to start counting up in synchronization with the rising edges of the timer clock. Writing "1" to the THnRUN bit
causes the lower 8 bits (lower side 8-bit timer) of the 16-bit counter to start counting up in synchronization with the
rising edges of the timer clock.
The operation mode and count clock of the upper side 8-bit timer and those of the lower side 8-bit timer are identical.
Count start/stop can be controlled separately for each of the upper and lower side 8-bit timers.
In the 8-bit timer mode, following two operation modes are available:
ž
Repeat mode
ž
One-shot mode
8.3.2.1
Repeat Mode
Figure 8-6 shows the repeat mode operation in the 8-bit timer mode.
TMHnDL
setting value
THnHSTAT
TMHn Interrupt
TMHnOUT
Upper side
8-bit timer
start
HiZ
Initial
value
Initial value
TMHnDH
setting value
TMHnCH
T
TMI
THnLSTAT
TMHnISH
TMHnISL
TMHnCL
T
TMI
Upper side
8-bit timer
Count
match
Enable
Port
Output
Upper side
8-bit timer
Count
match
Upper side
8-bit timer
stop
Figure 8-6 Repeat Mode Operation Timing in 8-Bit Timer Mode
In the repeat mode, when the upper side 8-bit timer count value matches with the TMHnDH register value, 16-bit timer n
interrupt (TMnINT) is generated and the value of the port is reversed. Then, the timer count value is reset to "0x00" and
the counting up operation is automatically resumed. When the lower side 8-bit timer count value matches with the
TMHnDL register value, 16-bit timer n interrupt (TMnINT) is generated. Then, the timer count value is reset to "0x00"
and the counting up operation is automatically resumed.
Содержание 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...