331
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
(3)
PWM output (free run)
Basic settings (m = 1 to 4):
Note: The PWM mode is activated by setting the SWFGm and the CCSGm bit to "1".
PWM setting method:
(1)
An usable compare register is one of GCCn1 to GCCn4, and the corresponding counter must be
selected with the TBGm bit.
(2)
Select a count clock cycle with the CSE12 to CSE10 bits (TMGn1 register) or CSE02 to CSE00
bits (TMGn0 register).
(3)
Specify the active level of a timer output (TOGnm pin) with the ALVGm bit.
(4)
When using multiple timer outputs, the user can prevent TOGnm from becoming active
simultaneously by setting the OLDE bit of TMGMHn register to provide step-by-step delays for
TOGnm. (This capability is useful for reducing noise and current.)
(5)
Write data to GCCnm.
(6)
Start timer operation by setting POWER bit and TMG0E bit (or TMG1E bit).
Bit
Value
Remark
CCSG0
0
free run mode
CCSG5
0
SWFGm
1
Note
enable TOGnm
CCSGm
1
Note
Compare mode
for GCCnm
TBGm
X
assign counter
for GCCnm
0: TMGn0
1: TMGn1
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: ......