EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1173 background imageLoading...
Page #1173 background image
UM1940
LL TIM Generic Driver
DocID028236 Rev 2
1173/1371
LL_TIM_SetPrescaler
Function name
__STATIC_INLINE void LL_TIM_SetPrescaler (TIM_TypeDef *
TIMx, uint32_t Prescaler)
Function description
Set the prescaler value.
Parameters
TIMx: Timer instance
Prescaler: between Min_Data=0 and Max_Data=65535
Return values
None:
Notes
The counter clock frequency CK_CNT is equal to fCK_PSC /
(PSC[15:0] + 1).
The prescaler can be changed on the fly as this control
register is buffered. The new prescaler ratio is taken into
account at the next update event.
Helper macro __LL_TIM_CALC_PSC can be used to
calculate the Prescaler parameter
Reference Manual to
LL API cross
reference:
PSC PSC LL_TIM_SetPrescaler
LL_TIM_GetPrescaler
Function name
__STATIC_INLINE uint32_t LL_TIM_GetPrescaler
(TIM_TypeDef * TIMx)
Function description
Get the prescaler value.
Parameters
TIMx: Timer instance
Return values
Prescaler: value between Min_Data=0 and
Max_Data=65535
Reference Manual to
LL API cross
reference:
PSC PSC LL_TIM_GetPrescaler
LL_TIM_SetAutoReload
Function name
__STATIC_INLINE void LL_TIM_SetAutoReload (TIM_TypeDef
* TIMx, uint32_t AutoReload)
Function description
Set the auto-reload value.
Parameters
TIMx: Timer instance
AutoReload: between Min_Data=0 and Max_Data=65535
Return values
None:
Notes
The counter is blocked while the auto-reload value is null.
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Helper macro __LL_TIM_CALC_ARR can be used to
calculate the AutoReload parameter
Reference Manual to
LL API cross
ARR ARR LL_TIM_SetAutoReload

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals