changing output compare value while code is running
i am using stm32f446re. i am using timer in synchronization mode one timer triggers another timer so my query is master timers triggers slave timer to generate another timer pwm so that triggers value i want to control so what hal function i use to control this triggers value while code is running then i want to change this trigger value.
here is an example what i want-
- lets say master generate 50% duty cycle pwm so when master is 25% of its pwm then slave gets trigger to generate its own pwm.so i want to control this 25% value. so what HAL function i use to control this value while code is running.
