A96G150 User's manual
12. Timer 0/1/2/3/4/5
155
12.6
Timer 5
A 16-bit timer 5 consists of a multiplexer, timer 5 A data high/low register, timer 5 B data high/low
register and timer 5 control high/low register (T5ADRH, T5ADRL, T5BDRH, T5BDRL, T5CRH, and
T5CRL).
Timer 5 operates in one of the following modes:
16-bit timer/counter mode
16-bit capture mode
16-bit PPG output mode (one-shot mode)
16-bit PPG output mode (repeat mode)
The timer/counter 5 can be a divided clock of a system clock selected from prescaler output. The clock
source is selected by a clock selection logic controlled by clock selection bits (T5CK[2:0]).
TIMER 5 clock source: fx/1, fx/2, fx/4, fx/8, fx/32, fx/128, fx/512 and HSIRC
In capture mode, data is captured into input capture data registers (T5BDRH/T5BDRL) by EINT45. In
timer/counter mode, whenever counter value is equal to T5ADRH/L, T5O port toggles. In addition, the
TIMER 5 outputs PWM waveform to PWM5O port in the PPG mode.
Table 24. TIMER 5 Operating Modes
T5EN
P2FSRH[5:4]
T5MS[1:0]
T5CK[2:0]
Timer 5
1
10
00
XXX
16 Bit Timer/Counter Mode
1
00
01
XXX
16 Bit Capture Mode
1
10
10
XXX
16 Bit PPG Mode(one-shot mode)
1
10
11
XXX
16 Bit PPG Mode(repeat mode)
Содержание 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...