ST STM32F2 User Manual page 1238

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL TIM Generic Driver
LL_TIM_TRGO_CC1IF
LL_TIM_TRGO_OC1REF
LL_TIM_TRGO_OC2REF
LL_TIM_TRGO_OC3REF
LL_TIM_TRGO_OC4REF
Trigger Selection
LL_TIM_TS_ITR0
LL_TIM_TS_ITR1
LL_TIM_TS_ITR2
LL_TIM_TS_ITR3
LL_TIM_TS_TI1F_ED
LL_TIM_TS_TI1FP1
LL_TIM_TS_TI2FP2
LL_TIM_TS_ETRF
Update Source
LL_TIM_UPDATESOURCE_REGULAR
LL_TIM_UPDATESOURCE_COUNTER
Exported_Macros
__LL_TIM_CALC_DEADTIME
__LL_TIM_CALC_PSC
1238/1371
CC1 capture or a compare match is used as trigger output
OC1REF signal is used as trigger output
OC2REF signal is used as trigger output
OC3REF signal is used as trigger output
OC4REF signal is used as trigger output
Internal Trigger 0 (ITR0) is used as trigger input
Internal Trigger 1 (ITR1) is used as trigger input
Internal Trigger 2 (ITR2) is used as trigger input
Internal Trigger 3 (ITR3) is used as trigger input
TI1 Edge Detector (TI1F_ED) is used as trigger input
Filtered Timer Input 1 (TI1FP1) is used as trigger input
Filtered Timer Input 2 (TI12P2) is used as trigger input
Filtered external Trigger (ETRF) is used as trigger input
Counter overflow/underflow, Setting the UG bit
or Update generation through the slave mode
controller generates an update request
Only counter overflow/underflow generates an
update request
Description:
HELPER macro calculating DTG[0:7] in the
TIMx_BDTR register to achieve the requested dead
time duration.
Parameters:
__TIMCLK__: timer input clock frequency (in Hz)
__CKD__: This parameter can be one of the
following values:
LL_TIM_CLOCKDIVISION_DIV1
LL_TIM_CLOCKDIVISION_DIV2
LL_TIM_CLOCKDIVISION_DIV4
__DT__: deadtime duration (in ns)
Return value:
DTG[0:7]
Notes:
ex: __LL_TIM_CALC_DEADTIME (80000000,
LL_TIM_GetClockDivision (), 120);
Description:
HELPER macro calculating the prescaler value to
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Table of Contents

Save PDF