341
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
Operation of PWM (match and clear):
(1)
When the value of the counter matches the value of GCCnm, a match interrupt (INTCCGnm) is
output.
Caution:
Do not set 0000H in GCCn0 or GCCn5 in match and clear modus.
(2)
When the value of GCCn0 (GCCn5) matches the value of the counter, INTCCGn0 (INTCCGn5) is
output, and the counter is cleared. This operation is referred to as "match and clear".
(3)
TOGnm does not make a transition until the first match and clear event.
(4)
TOGnm makes a transition to the active level after the first match and clear event.
(5)
When the value of the counter matches the value of GCCnm, TOGnm makes a transition to the
inactive level, and a match interrupt (INTCCGnm) is output.
(6)
When the next match and clear event occurs, INTCCGn0 (INTCCGn5) is output, and the counter
is cleared. The counter resumes count-up operation starting with 0000H.
Example where the data N is set, and the counter TMGn0 is selected.
0FFFH is set in GCCn0 and N < 0FFFH.
Figure 10-53:
Timing of PWM operation (match and clear)
When 0000H is set in GCCn0 (GCCn5), the value of the counter is fixed at 0000H, and the counter
does not operate. The waveform of INTCCGn0 (INTCCGn5) varies, depending on whether the
count clock is the reference clock or the sampling clock.
N
ENFG0
TMGn0
GCCn1
INTCCGn1
INTCCGn0
TOGn1(ALVG1=0)
0FFFH
0FFFH
0FFFH
Match
TOGn1(ALVG1=1)
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......