
340
PWM Mode Operation Examples—PWM Mode 2 (Figure 12.26): Channels 0 and 1 are set for
synchronous operation, TGR1B register compare-match is used as a TCNT counter clear source,
the other TGR register initial output value is 0 and output compare output value is 1, and a 5-phase
PWM waveform is output. In this example, the value established in the TGR1B register becomes
the period and the value established in the other TGR register becomes the duty cycle.
TGR0A
TGR0B
TGR0C
TGR0D
TGR1A
TGR1B
TCNT value
Time
H'0000
TIOC0A
TIOC0B
TIOC0C
TIOC0D
TIOC1A
Counter cleared on TGR1B compare match
Figure 12.26 PWM Mode Operation Example (Mode 2)
0% Duty Cycle: Figure 12.27 shows an example of a 0% duty cycle PWM waveform output in
PWM mode.
TGRA
TCNT value
TGRB rewrite
TGRB
TIOCA
Time
0% duty cycle
TGRB rewrite
TGRB rewrite
Figure 12.27 PWM Mode Operation Example (0% Duty Cycle)
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...