English
Language : 

SH7730 Datasheet, PDF (565/1188 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7780 Series
Section 16 16-Bit Timer Pulse Unit (TPU)
(2) Examples of PWM Mode Operation
Figure 16.12 shows an example of PWM mode operation.
In this example, TPUn_TGRB compare match is set as the TPUn_TCNT clearing source, 0 is set
for the TPUn_TGRA initial output value, and 1 is set as the output value.
In this case, the value set in TPUn_TGRB is used as the cycle, and the value set in TPUn_TGRA
as the duty cycle.
TPUn_TCNT value
TPUn_TGRB
Counter cleared by TPUn_TGRB
compare match
TPUn_TGRA
H'0000
TPUn_TO0 to
TPUn_TO3 pins
Time
Figure 16.12 Example of PWM Mode Operation (1)
Figure 16.13 shows an example of PWM waveform output with 0% and 100% duties in PWM
mode.
TPUn_TCNT
2
0
1
2
0
TPUn_TGRA = 0
TPUn_TGRA = 1
TPUn_TGRA = 2
TPUn_TGRA = 3
TPUn_TGRA rewriting timing
Cycle: TPUn_TGRB = 2
Figure 16.13 Example of PWM Mode Operation (2)
Rev. 1.00 Sep. 19, 2007 Page 517 of 1136
REJ09B0359-0100