STM32L4 + Timer IT + µs to ms counter
Hi All,
I'm using
https://community.st.com/0D50X00009XkYWYSA3
86RG microcontroler, Andhttps://community.st.com/0D50X00009XkYWYSA3
https://community.st.com/0D50X00009XkYWYSA3
.I have to use
Timer to compute delays type ( delay for 5 µs to 10ms ).Thanks to
Turvey.Clive.002
‌, I was able to reload timer period only with writing in theTIM1->ARR register with the new period. (
https://community.st.com/0D50X00009XkYWYSA3
)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.
#1wire #timer-interrupt #stm32l4 #eeprom #microseconds #milliseconds #stm32l4-timer #stm32l4-timer-interrupt-spurious