2023-02-23 07:42 AM
Hello,
I am moving from TI DSPs to STM32 MCUs.
I would like know if it is possible to configure SysTick timer to generate an interrupt with a period less than 1 ms, as I usually do on TI DSP projects.
My doubt comes from UM2319, par 6.1.2:
"SysTick timer is used by default as source of time base, but user can eventually implement his proper time base source (a general purpose timer for example or other time source), keeping in mind that Time base duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and handled in milliseconds basis."
Thank you,
Carlo
Solved! Go to Solution.
2023-02-23 08:21 AM
Well, you can do the same with STM32 and use one of the many timers to generate a periodic interrupt.
Regards
/Peter
2023-02-23 07:57 AM
Welcome, @CTabo.1, to the community!
Of course, you can also run the tick with a timing other than 1ms. However, the UM rightly points out that all assumptions within the firmware library that assume a 1ms systick are no longer correct. You would have to do a lot of work to adapt everything to the new timing.
Does it answer your question?
Regards
/Peter
2023-02-23 08:18 AM
Thank you Peter for very fast reponse!
So it doesn't seem good idea to change the SysTick default configuration, to not compromise HAL timings.
In my application I need a 100 us periodic interrupt for I/O operations.
In TI projects I achive this result simply configuring a 100 us tick timer.
Which pattern should I use in this case, instead?
Shoud I configure a second timer to generate my 100us application tick?
Thank you.
2023-02-23 08:21 AM
Well, you can do the same with STM32 and use one of the many timers to generate a periodic interrupt.
Regards
/Peter
2023-02-23 08:28 AM
Thank you Peter.
I will do in this way.