Skip to main content
Cmeng.2
Associate
October 10, 2022
Question

How to give the STM32L4 series LPTIM1 timer an initial value

  • October 10, 2022
  • 5 replies
  • 1189 views

How to give the STM32L4 series LPTIM1 timer an initial value,It seems the register address is closed to the public

This topic has been closed for replies.

5 replies

Uwe Bonnes
Chief
October 10, 2022

LPTIM_CNT is a read-only register, so you can't write. Tell us what you intend to do by writing to the register.

Cmeng.2
Cmeng.2Author
Associate
October 10, 2022

Can this register be accessed like a general purpose register? I want to use the encoder function of this register, but I want its initial value to start counting not from 0, but from the value I set

Cmeng.2
Cmeng.2Author
Associate
October 10, 2022

Can this register be accessed like a general purpose register? I want to use the encoder function of this register, but I want its initial value to start counting not from 0, but from the value I set

Uwe Bonnes
Chief
October 10, 2022

Simple add an offset after read out. You can read out LPTIM_CNT like any other register.