Register Update; Figure 205. Waveform Generation - ST STM32L0x3 Reference Manual

Ultra-low-power advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Low-power timer (LPTIM)
The LPTIM output waveform can be configured through the WAVE bit as follow:
Resetting the WAVE bit to '0' forces the LPTIM to generate either a PWM waveform or
a One pulse waveform depending on which bit is set: CNTSTRT or SNGSTRT.
Setting the WAVE bit to '1' forces the LPTIM to generate a Set-once mode waveform.
The WAVPOL bit controls the LPTIM output polarity. The change takes effect immediately,
so the output default value will change immediately after the polarity is re-configured, even
before the timer is enabled.
Signals with frequencies up to the LPTIM clock frequency divided by 2 can be generated.
Figure 205
output. Also, it shows the effect of the polarity change using the WAVPOL bit.
LPTIM_ARR
Compare
One shot
Set once
One shot
Set once
24.4.10

Register update

The LPTIM_ARR register and LPTIM_CMP register are updated immediately after the APB
bus write operation, or at the end of the current period if the timer is already started.
The PRELOAD bit controls how the LPTIM_ARR and the LPTIM_CMP registers are
updated:
When the PRELOAD bit is reset to '0', the LPTIM_ARR and the LPTIM_CMP registers
are immediately updated after any write access.
When the PRELOAD bit is set to '1', the LPTIM_ARR and the LPTIM_CMP registers
are updated at the end of the current period, if the timer has been already started.
The LPTIM APB interface and the LPTIM kernel logic use different clocks, so there is some
latency between the APB write and the moment when these values are available to the
622/1043
below shows the three possible waveforms that can be generated on the LPTIM

Figure 205. Waveform generation

0
PWM
PWM
RM0367 Rev 7
RM0367
Pol = 0
Pol = 1
MS32467V2

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents