Expand description

Configuration Register

Structs

Configuration Register

Register CFGR reader

Register CFGR writer

Type Definitions

Field CKFLT reader - Configurable digital filter for external clock The CKFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an external clock signal before it is considered as a valid level transition. An internal clock source must be present to use this feature

Field CKFLT writer - Configurable digital filter for external clock The CKFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an external clock signal before it is considered as a valid level transition. An internal clock source must be present to use this feature

Field CKPOL reader - Clock Polarity If LPTIM is clocked by an external clock source: When the LPTIM is clocked by an external clock source, CKPOL bits is used to configure the active edge or edges used by the counter: If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 1 is active. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 2 is active. Refer to for more details about Encoder mode sub-modes.

Field CKPOL writer - Clock Polarity If LPTIM is clocked by an external clock source: When the LPTIM is clocked by an external clock source, CKPOL bits is used to configure the active edge or edges used by the counter: If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 1 is active. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 2 is active. Refer to for more details about Encoder mode sub-modes.

Field CKSEL reader - Clock selector The CKSEL bit selects which clock source the LPTIM will use:

Field CKSEL writer - Clock selector The CKSEL bit selects which clock source the LPTIM will use:

Field COUNTMODE reader - counter mode enabled The COUNTMODE bit selects which clock source is used by the LPTIM to clock the counter:

Field COUNTMODE writer - counter mode enabled The COUNTMODE bit selects which clock source is used by the LPTIM to clock the counter:

Field ENC reader - Encoder mode enable The ENC bit controls the Encoder mode Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to .

Field ENC writer - Encoder mode enable The ENC bit controls the Encoder mode Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to .

Field PRELOAD reader - Registers update mode The PRELOAD bit controls the LPTIM_ARR and the LPTIM_CMP registers update modality

Field PRELOAD writer - Registers update mode The PRELOAD bit controls the LPTIM_ARR and the LPTIM_CMP registers update modality

Field PRESC reader - Clock prescaler The PRESC bits configure the prescaler division factor. It can be one among the following division factors:

Field PRESC writer - Clock prescaler The PRESC bits configure the prescaler division factor. It can be one among the following division factors:

Field TIMOUT reader - Timeout enable The TIMOUT bit controls the Timeout feature

Field TIMOUT writer - Timeout enable The TIMOUT bit controls the Timeout feature

Field TRGFLT reader - Configurable digital filter for trigger The TRGFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an internal trigger before it is considered as a valid level transition. An internal clock source must be present to use this feature

Field TRGFLT writer - Configurable digital filter for trigger The TRGFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an internal trigger before it is considered as a valid level transition. An internal clock source must be present to use this feature

Field TRIGEN reader - Trigger enable and polarity The TRIGEN bits controls whether the LPTIM counter is started by an external trigger or not. If the external trigger option is selected, three configurations are possible for the trigger active edge:

Field TRIGEN writer - Trigger enable and polarity The TRIGEN bits controls whether the LPTIM counter is started by an external trigger or not. If the external trigger option is selected, three configurations are possible for the trigger active edge:

Field TRIGSEL reader - Trigger selector The TRIGSEL bits select the trigger source that will serve as a trigger event for the LPTIM among the below 8 available sources: See for details.

Field TRIGSEL writer - Trigger selector The TRIGSEL bits select the trigger source that will serve as a trigger event for the LPTIM among the below 8 available sources: See for details.

Field WAVE reader - Waveform shape The WAVE bit controls the output shape

Field WAVE writer - Waveform shape The WAVE bit controls the output shape

Field WAVPOL reader - Waveform shape polarity The WAVEPOL bit controls the output polarity

Field WAVPOL writer - Waveform shape polarity The WAVEPOL bit controls the output polarity