Hi @mxo I can't find the ___HAL_TIM_SET_COMPARE function on the PWMOutput sample codeI tried changing #define PULSE1_VALUE (uint32_t)(1000 / 2) to #define PULSE1_VALUE (uint32_t)(50000 / 1) and it outputs 76% but I don't understand code work logic.
Hi Stassen, Thanks for your reply.But I have a question,I find this code but I can't understand how to change the PULSE_VALUE,example code is output PWM has a 90% duty cycle, if change 50% duty cycle how to set the PULSE_VALUE?