STM32 timer interrupt
Posted: Fri May 07, 2021 6:36 pm
I'm using this core https://github.com/stm32duino/Arduino_Core_STM32
Any library where I can implement timer interrupts?
Any library where I can implement timer interrupts?
Everything relating to using STM32 boards with the Arduino IDE and alternatives
https://www.stm32duino.com/
The examples you are kindly giving are mostly based based in an F4 or something similar machine (correct me if I'm wrong) , while it takes time to convert and figure out how to adapt your code to the F1 BluePill, with the risk that on top one could do something wrong in the translation. If your library has a simple, straightforward example of a timer interrupting and clearly explaining the method to attach an interrupt handler, I'm going that way and solve the problem.I need a 5 KHz PWM interrupt event generated by the TIM1 or TIM2, with output signal on a pin, say PA8, and an interrupt handler because I need to count pulses on every PWM cycle.