318
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
(7)
Timer Gn output control register (OCTLGn)
This register controls the timer output from the TOGm pin (m = 1 to 4) and the capture or
compare modus for the GCCnm register.
This register can be read/written in 16-bit, 8-bit or 1-bit units.
Cautions: 1. When the POWER bit is set, the rewriting of CCSGm is prohibited
2. When the POWER bit and TMG0E bit (TMG1E bit) are set at the same time, the
rewriting of the ALVGm bits is prohibited.
Figure 10-36:
Timer Gn Output Control Register (OCTLGn)
Remark:
m = 1 to 4
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Address
Initial
value
OCTLG0H SWFG4 ALVG4 CCSG4
0
SWFG3 ALVG3 CCSG3
0
SWFG2 ALVG2 CCSG2
0
SWFG1 ALVG1 CCSG1
0
FFFF F644H 4444H
OCTLG1H SWFG4 ALVG4 CCSG4
0
SWFG3 ALVG3 CCSG3
0
SWFG2 ALVG2 CCSG2
0
SWFG1 ALVG1 CCSG1
0
FFFF F684H 4444H
Bit Position
Bit Name
Function
15, 11, 7, 3
SWFGm
Fixes the TOGnm pin output level according to the setting of ALVGm bit.
0: disable TOGnm to inactive level
1: enable TOGnm
14, 10, 6, 2
ALVGm
Specifies the active level of the TGOm pin output.
0: Active level is 0
1: Active level is 1
Caution:
Don’t write this bit, before ENFG0 or ENFG1 of TMGSTn is 0,
so first clear TMG0E or TMG1E bit of the TMGMn register and
check ENFG0 or ENFG1 bit before writing.
13, 9, 5, 1
CCSGm
Specifies Capture/Compare mode selection:
0: Capture mode:
if external edge is detected the INTCCGnm interrupt occurs, the
corresponding counter value is written to GCCnm
1: Compare mode:
if GCCnm matches with corresponding timebase the INTCCGnm interrupt
occurs, if SWFGm is set the PWM output mode is set
Caution:
Don’t write this bit, before POWER bit of TMGMHn is 0.
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: ......