Section 10 8-Bit Timers
Setting Input Capture Operation in 8-Bit Timer Mode (Normal Operation)
• Channel 1:
Set TCORB1 as an 8-bit input capture register with the ICE bit in TCSR1.
Select rising edge, falling edge, or both edges as the input edge(s) for the input capture
signal (TMIO
1
Select the input clock with bits CKS2 to CKS0 in TCR1, and start the TCNT count.
• Channel 3:
Set TCORB3 as an 8-bit input capture register with the ICE bit in TCSR3.
Select rising edge, falling edge, or both edges as the input edge(s) for the input capture
signal (TMIO
3
Select the input clock with bits CKS2 to CKS0 in TCR3, and start the TCNT count.
Setting Input Capture Operation in 16-Bit Count Mode
• Channels 0 and 1:
In 16-bit count mode, TCORB0 and TCORB1 function as a 16-bit input capture register
when the ICE bit is set to 1 in TCSR1.
Select rising edge, falling edge, or both edges as the input edge(s) for the input capture
signal (TMIO
1
bits OIS3 and OIS2 in TCSR1 are ignored.)
Select the input clock with bits CKS2 to CKS0 in TCR1, and start the TCNT count.
• Channels 2 and 3:
In 16-bit count mode, TCORB2 and TCORB3 function as a 16-bit input capture register
when the ICE bit is set to 1 in TCSR3.
Select rising edge, falling edge, or both edges as the input edge(s) for the input capture
signal (TMIO
3
bits OIS3 and OIS2 in TCSR3 are ignored.)
Select the input clock with bits CKS2 to CKS0 in TCR3, and start the TCNT count.
Rev. 4.00 Jan 26, 2006 page 422 of 938
REJ09B0276-0400
) with bits OIS3 and OIS2 in TCSR1.
) with bits OIS3 and OIS2 in TCSR3.
) with bits OIS3 and OIS2 in TCSR0. (In 16-bit count mode, the settings of
) with bits OIS3 and OIS2 in TCSR2. (In 16-bit count mode, the settings of