472
Chapter 13
16-bit Multi-Purpose Timer G (TMG)
Preliminary User’s Manual U17566EE1V2UM00
(e) When GCCnm is rewritten during operation (match and clear)
When GCCn1 is rewritten from 0555H to 0AAAH, the operation shown below is
performed.
The figure below shows a case where 0FFFH is set in GCCn0, and TMGn0 is
selected for GCCn1.
Figure 13-19
Timing when GCCnm is rewritten during operation (match and clear)
If GCCn1 is rewritten to 0AAAH after the second INTCCGn1 is generated as
shown in the figure above, 0AAAH is reloaded to the GCCn1 register when the
next overflow occurs.
The next match interrupt (INTCCGn1) is generated when the value of the
counter is 0AAAH. The pulse width also matches accordingly.
0555H
0AAAH
0AAAH
0555H
Ma tch
Ma tch
0FFFH
TM G n0
ENFG0
INTTGnCC1
INTTGnCC0
0AAAH
0555H
0FFFH
0FFFH
Ma tch
TOGn1(ALVG1=0)
TOGn1(ALVG1=1)
GCCn1 Slave register
GCCn1 Master register
electronic components distributor