
ML62Q1000 Series User's Manual
Chapter 8 16-Bit Timer
FEUL62Q1000 8-28
8.3.3.2
External Input Count Timing
If the external input is chosen for a count clock, counting up is executed through sampling the external input with the
timer clock to detect a rising edge.
Figure 8-12 shows the count timing when using the external input.
EXTRGn input
after sampling
TMHnC
Timer clock
EXTRGn input
n
n+1
n+2
△
External input sampling timing
▲ Count up timing
THnSTAT
Timer
start
Timer
stop
Figure 8-12 External Input Count Timing
Figure 8-13 shows a setting example when using the external input.
Start
End
Set the port as
input mode
Choose an external
input pin
When using EXTRG0 : P02IE=1
When using EXTRG1 : P03IE=1
Set the external
input for the count
clock
When using EXTRG0 : THnEXS=0
When using EXTRG1 : THnEXS=1
THnEX=1
Choose a timer
clock
Choose the external input sampling clock
THnCS=0: LSCLK
THnCS=1: HSCLK
Figure 8-13 Example of External Input Count Setting
[Note]
Ÿ
The pulse with the width less than two clocks of the timer clock may be ignored. Always input the
external input signal with the width equal to or more than two clocks of the timer clock.
Ÿ
The external input signal (EXTRGn) which is input to the 16-bit timer is the signal that has passed
the sampling controller of the external interrupt function. The sampling of the external interrupt
function is optional. See Chapter 18 "External Interrupt Function" for details.
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...