UM1940
Capture Compare Update Source
LL_TIM_CCUPDATESOURCE_COMG_ONLY
LL_TIM_CCUPDATESOURCE_COMG_AND_TRGI
Channel
LL_TIM_CHANNEL_CH1
LL_TIM_CHANNEL_CH1N
LL_TIM_CHANNEL_CH2
LL_TIM_CHANNEL_CH2N
LL_TIM_CHANNEL_CH3
LL_TIM_CHANNEL_CH3N
LL_TIM_CHANNEL_CH4
Clock Division
LL_TIM_CLOCKDIVISION_DIV1
LL_TIM_CLOCKDIVISION_DIV2
LL_TIM_CLOCKDIVISION_DIV4
Clock Source
LL_TIM_CLOCKSOURCE_INTERNAL
LL_TIM_CLOCKSOURCE_EXT_MODE1
LL_TIM_CLOCKSOURCE_EXT_MODE2
Counter Direction
LL_TIM_COUNTERDIRECTION_UP
LL_TIM_COUNTERDIRECTION_DOWN
Counter Mode
LL_TIM_COUNTERMODE_UP
LL_TIM_COUNTERMODE_DOWN
LL_TIM_COUNTERMODE_CENTER_UP
LL_TIM_COUNTERMODE_CENTER_DOWN
occurs
Timer input/output channel 1
Timer complementary output channel 1
Timer input/output channel 2
Timer complementary output channel 2
Timer input/output channel 3
Timer complementary output channel 3
Timer input/output channel 4
tDTS=tCK_INT
tDTS=2*tCK_INT
tDTS=4*tCK_INT
The timer is clocked by the internal clock
provided from the RCC
Counter counts at each rising or falling edge on
a selected inpu t
Counter counts at each rising or falling edge on
the external trigger input ETR
Timer counter counts up
Timer counter counts down
DocID028236 Rev 2
LL TIM Generic Driver
Capture/compare control bits are
updated by setting the COMG bit
only
Capture/compare control bits are
updated by setting the COMG bit or
when a rising edge occurs on trigger
input (TRGI)
Counter used as upcounter
Counter used as downcounter
The counter counts up and down
alternatively. Output compare interrupt
flags of output channels are set only
when the counter is counting down.
The counter counts up and down
alternatively. Output compare interrupt
flags of output channels are set only
1231/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers