English
Language : 

SH7144_08 Datasheet, PDF (305/930 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family/SH7144 Series
11. Multi-Function Timer Pulse Unit (MTU)
Figure 11.5 illustrates periodic counter operation.
TCNT value
TGR
Counter cleared by TGR
compare match
H'0000
CST bit
TGF
Time
Flag cleared by software or
DTC/DMAC activation
Figure 11.5 Periodic Counter Operation
Waveform Output by Compare Match:
The MTU can perform 0, 1, or toggle output from the corresponding output pin using compare
match.
1. Example of Setting Procedure for Waveform Output by Compare Match
Figure 11.6 shows an example of the setting procedure for waveform output by compare match
Output selection
Select waveform output [1]
mode
Set output timing
[2]
[1] Select initial value 0 output or 1 output,
and compare match output value 0
output, 1 output, or toggle output, by
means of TIOR. The set initial value is
output at the TIOC pin until the first
compare match occurs.
[2] Set the timing for compare match
generation in TGR.
[3] Set the CST bit in TSTR to 1 to start the
count operation.
Start count operation [3]
<Waveform output>
Figure 11.6 Example of Setting Procedure for Waveform Output by Compare Match
Rev.4.00 Mar. 27, 2008 Page 261 of 882
REJ09B0108-0400