Chapter 9
16-bit Timer
16-bit Timer Capture Function IX - 39
9.8 16-bit Timer Capture Function
9.8.1 Operation
In the capture function, the value of the binary counter is read at the following:
- When one of IRQ0 to IRQ3, which is synchronized with the system clock or the count clock, is input.
- When an interrupt of Timer 0 or Timer 1 occurs.
- When the arbitrary data are written to the capture register.
Capture Operation with External Interrupt Signal as a Trigger
Input capture trigger is generated by the external interrupt input signal. Set TMnMD1 and TMnMD2 to select the
capture trigger. Table:9.8.1 show the available types of capture trigger and bit settings.
Table:9.8.1 Capture Trigger
Capture trigger source
TMnMD2 TMnMD1
TnICT1-0 TnICEDG0 TnICEDG1
IRQ0 falling edge 00(IRQ0) 1 0
IRQ0 rising edge 00(IRQ0) 1 1
IRQ0 both edges 00(IRQ0) 0 -
IRQ1 falling edge 01(IRQ1) 1 0
IRQ1 rising edge 01(IRQ1) 1 1
IRQ1 both edges 01(IRQ1) 0 -
IRQ2 falling edge 10(IRQ2) 1 0
IRQ2 rising edge 10(IRQ2) 1 1
IRQ2 both edges 10(IRQ2) 0 -
IRQ3 falling edge (Timer 9) 11(IRQ3) 1 0
IRQ3 rising edge (Timer 9) 11(IRQ3) 1 1
IRQ3 both edges (Timer 9) 11(IRQ3) 0 -