A96G140/A96G148/A96A148 User’s manual
12. Timer 0/1/2/3/4/5
125
12.4.3
16-bit PPG mode
TIMER 3 has a PPG (Programmable Pulse Generation) function. In PPG mode, T3O/PWM3O pin
outputs up to 16-bit resolution PWM output. For this function, T3O/PWM3O pin must be configured as
a PWM output by setting P0FSRH[1:0
] to ‘
1
1’
or P0FSRL[3:2] to ‘01’
. Period of the PWM output is
determined by T3ADRH/T3ADRL, and duty of the PWM output is determined by T3BDRH/T3BDRL.
T3MS[1:0]
T3POL
Reload
A Match
T3CC
T3EN
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
fx/4
fx/64
fx/512
fx/204 8
fx/8
fx/1
Comparator
16-bit Cou nte r
T3CNTH/T3CNTL
16-bit B Data Re gister
T3BDRH/T3BDRL
Clear
B Match
Edg e
Detector
T3ECE
EC3
Buffer Reg ister B
Comparator
16-bit A Data Re gister
T3ADRH/T3ADRL
T3IFR
INT_ACK
Clear
To i nte rrupt
block
A Match
Buffer Reg ister A
Reload
Pulse
Gen erator
T3O
R
T3EN
2
T3EN
T3CRH
1
ADDRES S:1000H
INITIAL VALUE : 0000_0000B
–
T3MS1
T3MS0
–
–
–
T3CC
–
1
1
–
–
–
X
T3CK2
T3CRL
X
ADDRES S:1001H
INITIAL VALUE : 0000_0000B
T3CK1
T3CK0
T3IFR
–
T3POL
T3ECE T3CNTR
X
X
X
–
X
X
X
A Match
T3CC
T3EN
A Match
T3CC
T3EN
3
T3CK[2:0]
PWM3O
NOTE
: T3EN is automatically cleared to logic
“0” after one pulse is generated at a PPG one-shot mode.
Figure 59. 16-bit PPG Mode of Timer 3