Datasheet

Section 11 16-Bit Timer Pulse Unit (TPU)
R01UH0309EJ0500 Rev. 5.00 Page 753 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
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 11.14.
Buffer register
Timer general
register
TCNT
Input capture
signal
Figure 11.14 Input Capture Buffer Operation
(1) Example of Buffer Operation Setting Procedure
Figure 11.15 shows an example of the buffer operation setting procedure.
Select TGR function
Buffer operation
Set buffer operation
Start count
<Buffer operation>
[1]
[2]
[3]
[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 to start the count
operation.
Figure 11.15 Example of Buffer Operation Setting Procedure