AnsweredAssumed Answered

STM32L4 + Timer IT + µs to ms counter

Question asked by Ghada Dhibi on Jul 26, 2017
Latest reply on Jul 26, 2017 by Clive One

Hi All,

 

I'm using STM32L486RG microcontroler, And 1Wire EEPROM.

 

I have to use Timer to compute delays type ( delay for 5 µs to 10ms ).

 

Thanks to Clive One, I was able to reload timer period only with writing in the TIM1->ARR register with the new period. (STM32L4 + Timer IT + µs counter ) 

 

I'm asking now how to reload this timer to generate period from 5µs to 10ms in the callback function of the timer it self. 

i.e: from  TIM1->PSC = 0; TIM1->ARR = 399; to  TIM1->PSC = 15; TIM1->ARR = 49999;

 

I'm a little confused that I didn't have the correct new period. 

 

What did i miss ? or what should I do ? 

 

Can you help me please ?

 

Best Regards.

Ghada.

Outcomes