Renesas R5S72621 Manual Do Utilizador

Página de 2152
 
 
Section 11   Multi-Function Timer Pulse Unit 2 
 
Page 516 of 2108 
 
R01UH0134EJ0400  Rev. 4.00 
 
 Sep 
24, 
2014 
SH7262 Group, SH7264 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.15. 
 
Buffer
register
Timer general
register
TCNT
Input capture
signal
 
Figure 11.15   Input Capture Buffer Operation 
(1)  Example of Buffer Operation Setting Procedure 
Figure 11.16 shows an example of the buffer operation setting procedure. 
Buffer operation
Select TGR function
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 start the count 
operation.
 
Figure 11.16   Example of Buffer Operation Setting Procedure