
466
Chapter 13
16-bit Multi-Purpose Timer G (TMG)
Preliminary User’s Manual U17566EE1V2UM00
(f) When GCCnm (m = 1 to 4) is rewritten during operation (match and
clear)
When the value of GCCn1 is changed from 0555H to 0AAAH, the operation
described below is performed.
TMGn0 is selected as the counter, and 0FFFH is set in GCCn0.
Figure 13-14
Timing when GCCnm is rewritten during operation (match and clear)
Caution
To perform successive write access during operation, for rewriting the GCCny
register, you have to wait for minimum 7 peripheral clocks periods (f
SPCLK0
).
(3)
PMW output (match and clear)
Basic settings (m = 1 to 4):
Note
The PWM mode is activated by setting the SWFGnm and the CCSGnm bit to
"1".
Ma tch
Ma tch
0555H
0AAAH
0AAAH
0555H
INTTGnCC1
TM G n0
ENFG0
Reload in 5 clock periods
GCCn1 Slave register
GCCn1 Master register
Bit
Value
Remark
CCSGn0
1
match and clear mode
CCSGn5
1
SWFGnm
1
Note
enable TOGnm
CCSGnm
1
Note
Compare mode for
GCCnm
TBGnm
X
assign counter
for GCCnm
0: TMGn0
1: TMGn1
electronic components distributor