Stlux385A System Timer (Stlux_Stmr); Table 6. Stlux385A System Timer - STMicroelectronics STLUX385A User Manual

Table of Contents

Advertisement

UM1753
3.6

STLUX385A system timer (stlux_stmr)

Header
STMR_Reset
STMR_TimeBaseInit
STMR_Cmd
STMR_ITConfig
STMR_UpdateDisableConfig
STMR_UpdateRequestConfig
STMR_SelectOnePulseMode
STMR_PrescalerConfig
STMR_ARRPreloadConfig

Table 6. STLUX385A system timer

Input parameters
STMR_Prescaler specifies the
prescaler division factor for the
STMR. It can be a power of two
ranging from 1 to 128.
STMR_Period specifies the period to
be set for the timer interrupt
generation.
NewState: it can be ENABLE or
DISABLE.
STMR_IT specifies whether the
STMR interrupt must be enabled or
disabled.
NewState can be ENABLE or
DISABLE.
Newstate can be ENABLE or
DISABLE.
STMR_UpdateSource specifies
whether the interrupt is generated by
counter overflow only or by registers
update. Possible values are
UPDATESOURCE_GLOBAL and
UPDATESOURCE_REGULAR.
STMR_OPMode specifies if the one
pulse mode must be activated.
Prescaler specifies the prescaler
division factor for the STMR. It can
be a power of two ranging from 1 to
128.
STMR_PSCReloadMode specifies
whether the prescaler is loaded
immediately or at the update event.
Newstate can be ENABLE or
DISABLE.
DocID026248 Rev 1
Output
Functionality
parameters
Sets the STMR internal
registers to their default
initialization values.
Initializes the STMR time
base unit according to the
specified parameters.
This function enables or
disables the STMR
Enables or disables the
specified STMR
Enables or disables the
update event for the auto-
reload preload mode.
Selects the STMR Update
Request Interrupt source.
Enables or disables the
one pulse. This mode
makes the counter stop
when the next update
event is triggered.
This function configures
the STMR prescaler.
Enables or disables
STMR peripheral on auto-
reload preload enable
STLUX library
peripheral.
interrupts.
register.
13/21
21

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents