English
Language : 

SH7108 Datasheet, PDF (200/560 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 8 Multifunction Timer Pulse Unit (MTU)
• When TGR is an output compare register
When a compare match occurs, the value in the buffer register for the corresponding channel is
transferred to the timer general register.
This operation is illustrated in figure 8.13.
Compare match signal
Buffer
register
Timer general
register
Comparator
TCNT
Figure 8.13 Compare Match Buffer Operation
• 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 8.14.
Input capture
signal
Buffer
register
Timer general
register
TCNT
Figure 8.14 Input Capture Buffer Operation
Example of Buffer Operation Setting Procedure: Figure 8.15 shows an example of the buffer
operation setting procedure.
Buffer operation
Select TGR function
[1]
Set buffer operation
[2]
[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.
Start count
[3]
<Buffer operation>
Figure 8.15 Example of Buffer Operation Setting Procedure
Rev.1.00 Sep. 18, 2008 Page 166 of 522
REJ09B0069-0100