STM32F103 and PWM (12bits)
Dear everyone,
I'm trying to manage a DC motor with IC controller in PWM.
My frequency have been calculated for have 12bits resolutions (Fclk :72Mhz > Fpwm17.5Khz).
TIM2->CCR1 = 30;
HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_1);
HAL_GPIO_WritePin(GPIOB, MA_SENS_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOB, MA_SLEEP_Pin, GPIO_PIN_SET);
The desired frequency is good, but i'm not able to have the resolution.
I thinks, my DutyCycle command is not right but no idea to do different.
Do you have an idea ?
