12. Timer 0/1/2/3/4/5
A96G150 User's manual
118
12.2.3
16-bit PPG mode
TIMER 1 has a PPG (Programmable Pulse Generation) function. In PPG mode, T1O/PWM1O pin
outputs up to 16-bit resolution PWM output. For this function, T1O/PWM1O pin must be configured as
a PWM output by setting P0FSRL[5:4
] to ‘
10
’. Period of the PWM output is determined by
T1ADRH/T1ADRL, and duty of the PWM output is determined by T1BDRH/T1BDRL.
T1MS[1:0]
T1POL
Reload
A Match
T1CC
T1EN
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
fx/4
fx/64
fx/512
fx/2048
fx/8
fx/1
Comparator
16-bit Counter
T1CNTH/T1CNTL
16-bit B Data Register
T1BDRH/T1BDRL
Clear
B Match
Edge
Detector
T1ECE
EC1
Buffer Register B
Comparator
16-bit A Data Register
T1ADRH/T1ADRL
T1IFR
INT_ACK
Clear
To interrupt
block
A Match
Buffer Register A
Reload
Pulse
Generator
T1O/
PWM1O
R
T1EN
3
T1CK[2:0]
2
T1EN
T1CRH
1
ADDRESS:BBH
INITIAL VALUE : 0000_0000B
–
T1MS1
T1MS0
–
–
–
T1CC
–
1
1
–
–
–
X
T1CK2
T1CRL
X
ADDRESS:BAH
INITIAL VALUE : 0000_0000B
T1CK1
T1CK0
T1IFR
–
T1POL
T1ECE T1CNTR
X
X
X
–
X
X
X
A Match
T1CC
T1EN
A Match
T1CC
T1EN
NOTE
: T1EN is automatically cleared to logic
“0” after one pulse is generated at a PPG one-shot mode
Figure 39. 16-bit PPG Mode of Timer 1
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...