Table 313. Prescaler Division Ratios; Figure 494. Glitch Filter Timing Diagram - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

Low-power timer (LPTIM)
CLKMUX
Input
Filter out
Note:
In case no internal clock signal is provided, the digital filter must be deactivated by setting
the CKFLT and TRGFLT bits to '0'. In that case, an external analog filter may be used to
protect the LPTIM external inputs against glitches.
32.4.5
Prescaler
The LPTIM 16-bit counter is preceded by a configurable power-of-2 prescaler. The prescaler
division ratio is controlled by the PRESC[2:0] 3-bit field. The table below lists all the possible
division ratios:
32.4.6
Trigger multiplexer
The LPTIM counter may be started either by software or after the detection of an active
edge on one of the 13 trigger inputs.
TRIGEN[1:0] is used to determine the LPTIM trigger source:
When TRIGEN[1:0] equals '00', The LPTIM counter is started as soon as one of the
CNTSTRT or the SNGSTRT bits is set by software. The three remaining possible
values for the TRIGEN[1:0] are used to configure the active edge used by the trigger
inputs. The LPTIM counter starts as soon as an active edge is detected.
When TRIGEN[1:0] is different than '00', TRIGSEL[2:0] is used to select which of the
13 trigger inputs is used to start the counter.
1468/2126

Figure 494. Glitch filter timing diagram

2 consecutive samples

Table 313. Prescaler division ratios

programming
000
001
010
011
100
101
110
111
RM0440 Rev 4
2 consecutive samples
dividing factor
RM0440
Filtered
MS32490V1
/1
/2
/4
/8
/16
/32
/64
/128

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF