![ARTERY AT32F435 Series Скачать руководство пользователя страница 300](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592300.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 300
Rev 2.03
14.4 Advanced-control timers (TMR1,TMR8 and TMR20)
14.4.1 TMR1,TMR8 and TMR20 introduction
Each of the advanced-control timer (TMR1, TMR8 and TMR20) consists of a 16-bit counter supporting
up and down counting modes, four capture/compare registers, and four independent channels to achieve
embedded dead-time, input capture and programmable PWM output.
14.4.2 TMR1,TMR8 and TMR20 main features
The main functions of general-purpose TMR1,TMR8 and TMR20 include:
Source of counter clock: internal clock, external clock an internal trigger input
16-bit up, down, up/down, repetition and encoder mode counter
Five independent channels for input capture, output compare, PWM generation, one-pulse mode
output and embedded dead-time
Three independent channels for complementary output
TMR brake function
Synchronization control between master and slave timers
Interrupt/DMA is generated at overflow event, trigger event, brake signal input and channel event
Support TMR burst DMA transfer
Figure 14-449
Block diagram of advanced-control timer
XOR
C4IN DIV
C4ORAW
IN MODE
To other timers
To DAC/ADC
BRK
Clock failure event
From clock control CSS(Clock Security System)
TMRx_BRK
TMRx_CH4
TMRx_CH3
TMRx_CH2
TMRx_CH1
TMRX_EXT
Polarity
selection
Polarity selection
edge detector
prescaler
Reset
mode
Encoder
interface
TMRx_DIV
CNT counter
CH4 edge
detector
C4DT
CH4 filter
CH3 edge
detector
CH3 filter
C4IFP4
C4IFP3
C4IRAW
C3IFP4
C3IFP3
C3IRAW
CH2 edge
detector
CH2 filter
C2IFP2
C2IFP1
C2IRAW
C1IFP2
CH1 edge
detector
CH1 filter
C1IFP1
C1IRAW
STCI
STCI
STCI
STCI
C4IN
C3IN DIV
C3IN
C2IN DIV
C2IN
C1IN DIV
C1IN
C4C
0
C3DT
C3C
0
C2DT
C2C
0
C1DT
C1C
0
IN MODE
IN MODE
IN MODE
OUT MODE
C4C=0
C3C=0
C2C=0
C1C=0
OUT MODE
OUT MODE
OUT MODE
C3DT
C4DT
C2DT
C1DT
CNT counter
Capture
Compare
C3ORAW
C2ORAW
C1ORAW
Output2
control
Output1
control
C4OUT
C3COUT
C3OUT
C2COUT
C2OUT
C1COUT
C1OUT
Dead time
Output3
control
Output4
control
DTC
STCI
C1INC
IS3
IS2
IS1
IS0
STIS
TRGIN
EXT filter
CI1FP1
CI2FP2
Hang
mode
Trigger
mode
Disable
SMSEL
DIV counter
RPR counter
preload
TMRx_RPR
preload
Overflow event
OVFSWTR
TMREN
CH1 capture
CH1 compare
TRGOUT
TMRx_CH3
TMRx_CH3C
TMRx_CH2
TMRx_CH2C
TMRx_CH1
TMRx_CH1C
PTOS
TMRx_CH4
CK_INT(from CRM)
14.4.3 TMR1, TMR8 and TMR20 functional overview
14.4.3.1 Count clock
The count clock of TMR1, TMR8 and TMR20 can be provided by the internal clock (CK_INT), external
clock (external clock mode A and B) and internal trigger input (ISx).