Figure 267. Waveform Generation - STMicroelectronics STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

Low-power timer (LPTIM)
LPTIM_ARR
Compare
One shot
Set once
One shot
Set once
28.4.11
Register update
The LPTIM_ARR register and LPTIM_CMP register are updated immediately after the APB
bus write operation or in synchronization with the next LPTIM update event 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 next LPTIM update event, 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
counter comparator. Within this latency period, any additional write into these registers must
be avoided.
The ARROK flag and the CMPOK flag in the LPTIM_ISR register indicate when the write
operation is completed to respectively the LPTIM_ARR register and the LPTIM_CMP
register.
After a write to the LPTIM_ARR register or the LPTIM_CMP register, a new write operation
to the same register can only be performed when the previous write operation is completed.
Any successive write before respectively the ARROK flag or the CMPOK flag be set, leads
to unpredictable results.
954/1450

Figure 267. Waveform generation

0
PWM
PWM
RM0453 Rev 5
RM0453
Pol = 0
Pol = 1
MS32467V2

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents