cancel
Showing results for 
Search instead for 
Did you mean: 

How to give the STM32L4 series LPTIM1 timer an initial value

Cmeng.2
Associate II

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

5 REPLIES 5
Uwe Bonnes
Principal III

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
Associate II

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

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

Is it in the manual? help!!!!!

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