
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.
Summary of Contents for ML62Q1000 Series
Page 17: ...Chapter 1 Overview...
Page 112: ...Chapter 2 CPU and Memory Space...
Page 154: ...Chapter 3 Reset Function...
Page 166: ...Chapter 4 Power Management...
Page 196: ...Chapter 5 Interrupts...
Page 248: ...Chapter 6 Clock generation Circuit...
Page 274: ...Chapter 7 Low Speed Time Base Counter...
Page 291: ...Chapter 8 16 Bit Timer...
Page 320: ...Chapter 9 Functional Timer FTM...
Page 382: ...Chapter 10 Watchdog Timer...
Page 402: ...Chapter 11 Serial Communication Unit...
Page 456: ...Chapter 12 I2 C Bus Unit...
Page 491: ...Chapter 13 I2 C Master...
Page 512: ...Chapter 14 DMA Controller...
Page 531: ...Chapter 15 Buzzer...
Page 550: ...Chapter 16 Simplified RTC...
Page 559: ...Chapter 17 GPIO...
Page 594: ...Chapter 18 External Interrupt Function...
Page 612: ...Chapter 19 CRC Generator...
Page 632: ...Chapter 20 Analog Comparator...
Page 644: ...Chapter 21 D A Converter...
Page 655: ...Chapter 22 Voltage Level Supervisor...
Page 676: ...Chapter 23 Successive Approximation Type A D Converter...
Page 709: ...Chapter 24 Regulator...
Page 714: ...Chapter 25 Flash Memory...
Page 743: ...Chapter 26 Code Option...
Page 750: ...Chapter 27 LCD Driver...
Page 788: ...Chapter 28 On Chip Debug Function...
Page 795: ...Chapter 29 Safety Function...
Page 813: ...Appendix A...
Page 881: ...Revision History...