analogWrite changes HardwareTimer settings
Posted: Sun Jan 05, 2020 10:16 am
Hello there,
I have some problem related to HardwareTimer, when i call analogWrite(PB8,x) on blue pill it somehow changes the TIM4 settings, I set the timer interrupt firing frequency of 200Hz, but when i called analogWrite(PB8,x) the interrupt fire at 1kHz, that's not what i want, does anyone know what is the problem?.
I use STM32F103C8 (Blue Pill), STM32Core, PB8 is T4C3.
I have some problem related to HardwareTimer, when i call analogWrite(PB8,x) on blue pill it somehow changes the TIM4 settings, I set the timer interrupt firing frequency of 200Hz, but when i called analogWrite(PB8,x) the interrupt fire at 1kHz, that's not what i want, does anyone know what is the problem?.
I use STM32F103C8 (Blue Pill), STM32Core, PB8 is T4C3.