Section 10 16-Bit Timer Pulse Unit (TPU)
• When TGR is an input capture register
When input capture occurs, the value in TCNT is transferred to TGR and the value previously
held in the timer general register is transferred to the buffer register.
This operation is illustrated in figure 10.13.
Input capture
signal
Buffer register
Example of Buffer Operation Setting Procedure: Figure 10.14 shows an example of the buffer
operation setting procedure.
Buffer operation
Select TGR function
Set buffer operation
<Buffer operation>
Figure 10.14 Example of Buffer Operation Setting Procedure
Rev. 6.00 Mar 15, 2006 page 206 of 570
REJ09B0211-0600
Timer general
Figure 10.13 Input Capture Buffer Operation
[1]
[2]
[3]
Start count
register
[1]
Designate TGR as an input capture register or
output compare register by means of TIOR.
[2]
Designate TGR for buffer operation with bits
BFA and BFB in TMDR.
[3]
Set the CST bit in TSTR to 1 start the count
operation.
TCNT