Datasheet

Section 11 Timer W
Rev.4.00 Nov. 02, 2005 Page 145 of 304
REJ09B0143-0400
TCNT value
H'FFFF
H'1000
H'0000
FTIOA
GRA
Time
H'AA55
H'55AA
H'F000
H'1000 H'F000 H'55AA
GRB
H'AA55
FTIOB
Figure 11.7 Input Capture Operating Example
Figure 11.8 shows an example of buffer operation when the GRA is set as an input-capture
register and GRC is set as the buffer register for GRA. TCNT operates as a free-running counter,
and FTIOA captures both rising and falling edge of the input signal. Due to the buffer operation,
the GRA value is transferred to GRC by input-capture A and the TCNT value is stored in GRA.