Stm32
-- Advanced timer, general timer,Differences between basic timers
The tim1 and tim8 timer functions include [enhanced ]:
● Automatically load counters up, down, and up/down with 16 bits
● 16-bit programmable (can be modified in real time) pre-divider. The frequency division coefficient of the counter clock frequency is 1 ~ Any value between 65535
● Up to four independent channels:-input capture-output comparison-PWM generation (edge or intermediate alignment mode)-single pulse mode output
● Programmable complementary output of Dead Zone Time
● Use an external signal to control the Synchronization Circuit of timer and timer Interconnection
● Allows repeated counters of the timer register to be updated after a specified number of counter cycles
● The brake input signal can be used to set the timer output signal to the reset or known status.
● Interrupt/DMA:-Update: counters overflow up/down, counters initialization (triggered by software or internal/external) -trigger event (counter start, stop, initialization, or internal/external trigger count)-input capture-output comparison-Brake signal input
● Support incremental (orthogonal) encoders and Hall sensor circuits for positioning
● Trigger input as an external clock or periodic current management
Common timx (tim2, tim3, tim4, and tim5) timer functions include ]:
● Automatically load counters up, down, and up/down with 16 bits
● 16-bit programmable (can be modified in real time) pre-divider. The frequency division coefficient of the counter clock frequency is 1 ~ Any value between 65536
● Four independent channels: Input capture-output comparison-PWM generation (edge or intermediate alignment mode)-single pulse mode output
● Use an external signal to control the Synchronization Circuit of the timer and timer Interconnection
● Interrupt/DMA:-Update: counters overflow up/down, counters initialization (triggered by software or internal/external) -trigger event (counter start, stop, initialization, or internal/external trigger count)-input capture-output comparison
● Support incremental (orthogonal) encoders and Hall sensor circuits for positioning
● Trigger input as an external clock or periodic current management
Tim6 and tim7 timers have the following functions ]:
● 16-bit automatic reloadAccumulate counter
● 16-bit programmable (Real-Time modifiable) pre-divider, which is used to calculate the input clock by a factor of 1 ~ Any value between 65536
● Trigger the DAC Synchronization CircuitNote: This is a unique function of tim6/7.
● Interrupt/DMA requests are generated during update events (Counter Overflow ).