451
16-bit Multi-Purpose Timer G (TMG)
Chapter 13
Preliminary User’s Manual U17566EE1V2UM00
Table 13-9
Interrupt output and timer output states dependent on the register
setting values
Note
1.
An interrupt is generated only when the value of the GCCn5 register is
FFFFH.
2.
An interrupt is generated only when the value of the GCCn5 register is not
FFFFH.
3.
The setting of the CCSGnm bit in combination with the SWFGnm bit sets
the mode for the timing of the actualization of new compare values.
•
In compare mode the new compare value will be immediately active.
•
In PWM mode the new compare value will be active first after the next
overflow or match & clear of the assigned counter (TMGn0, TMGn1).
13.7 Operation in Free-Run Mode
This operation mode is the standard mode for Timer Gn operations. In this
mode the 2 counter TMGn0 and TMGn1 are counting up from 0000H to
FFFFH, generates an overflow and start again. In the match and clear mode,
which is described in Chapter
13.8 on page 462
the fixed assigned register
GCCn0 (GCCn5) is used to reduce the bit-size of the counter TMGn0
(TMGn1).
(1)
Capture operation (free run)
Basic settings:
Register setting value
State of each output pin
CCSGn5
TBGnm
SWFGnm
CCSGnm
INTTMGn1
INTCCGn5
INTCCGnm
TOGnm
0
Free-run
mode
1
0
0
Overflow
interrupt
TI5 edge
detection
TIm edge
detection
Tied to inactive
level
1
GCCnm match
1
0
TIm edge
detection
1
CMPGm match
PWM
(free run)
1
Match and
clear
mode
0
0
Overflow
interrupt
Note 1
GCCn5
match
Note 2
TIm edge
detection
Tied to inactive
level
1
GCCnm match
1
0
TIm edge
detection
1
CMPGm match
PWM
(match and clear)
Bit
Value
Remark
CCSGn0
0
free run mode
CCSGn5
0
SWFGnm
0
disable TOGnm
TBGnm
X
assign counter
for GCCnm
0: TMGn0
1: TMGn1
electronic components distributor