I am controlling DC motor with Infineon BTN (mosfet) and STM32F103 MCU, What I am doing is increasing PWM DC from 0 to 100 % in 10 secs, and after keep 100 % of DC. However 100 % DC is not 100% as you can see on scope there is a spike returning to 0 so by the design of TIM timer it is probably 99%. What I want is to switch the TIM output use for PWM into normal I/O to level 1 after 10 secs. I tried simply stop PWM and switchnig I/O but it does not work any help appreciated.
Rgds