340
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
(3)
PMW output (match and clear)
Basic settings (m = 1 to 4):
Note: The PWM mode is activated by setting the SWFGm and the CCSGm bit to "1".
Setting Method:
(1)
An usable compare register is one of GCCn1 to GCCn4, and the corresponding counters TMGn0
or TMGn1 must be selected with the TBGm bit (m = 1 to 4).
(2)
Select a count clock cycle with the CSE12 to CSE10 (TMGn1) bits or CSE02 to CSE00 (TMGn0)
bits.
(3)
Specify the active level of a timer output (TOGnm) with the ALVGm bit.
(4)
When using multiple timer outputs, the user can prevent TOGnm from making transitions
simultaneously by setting the OLDE bit of TMGMHn register. (This capability is useful for reducing
noise and current.)
(5)
Set an upper limit on the value of the counter in GCCn0 or GCCn5. (Timer Dn 0000H is forbidden)
(6)
Write data to GCCnm.
(7)
Start count operation by setting POWER bit and TMG0E bit (or TMG1E bit).
Bit
Value
Remark
CCSG0
1
match and
clear mode
CCSG5
1
SWFGm
1
Note
enable TOGnm
CCSGm
1
Note
Compare mode
for GCCnm
TBGm
X
assign counter
for GCCnm
0: TMGn0
1: TMGn1
Содержание mPD703128
Страница 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 612: ......