Software PWM, best approach?
It finally happened, i need two pins without pwm functionality to output pwm signals (minimum 1kHz)
Im using an STM32f072R8Tx clocked with HSI48Mhz, my TIM1 is available.
My idea is:
TIM1 channels 1 and 2 set up as PWM NO OUTPUT with interruption enabled, discriminate the source of the interruption (channel).
Toggle the corresponding GPIOs inside the IRQ function.
Is there another magical way that doesnt interrupt my programm every milisecond?



