how to config Timer1 and Timer2 of STM32F103C8T6 Blue Pill in Arduino?
I want to config timer1 as a 60kHz pulse and timer2 as 15kHz.My code is as follow.
I’ve simulated it in Proteus. Each timer work correctly alone but when two timer is running it doesn’t work correct.
My code: