![]() On Tue, at 18:02, Pauli wrote: Dear all, I am doing silly motor driver for worm-gear dc-motor with stm32f411e-disco board (and L298). Would it be easy to set up interrupt handler for timer overflow? Could somebody point out tips what would be the steps required (or just say its not doable without weeks of work)? What Zephyr source files i should look at? Any change of samples that would even have some similarity? BR, Pauli ![]() I do know i could poll it with very little overhead, but that seems bit brute-force. But how does one handle the overflow of the timer? In normal STM32 HAL code one would get interupt from this but i have no glue how to do it with Zephyr. As far as i know (and have tested - it compiles) i can use the HAL_TIM_XYZ functions and they should work -> i can use them to configure timer to be in external clock mode. To have it handled with ease i was thinking to connect the HAL sensor output to STM32 as external clock input -> i can get the count from the timer register with zero load to processor. Now, as the HAL sensor is attached before the worm-gear, so the RPM will be something. The dc-motor has HAL-sensor for feedback - providing raising/lowering edge for every turn. Dear all, I am doing silly motor driver for worm-gear dc-motor with stm32f411e-disco board (and L298).
0 Comments
Leave a Reply. |