delay pwm on time
hi there,
i have a NUCLEO-H7S3L8 dev kit and i am trying to generate a specific number of pwm pulse. i want to generate 10 pwm pulse with ability to delay the t-on. i am trying to workout how to do this in stm32. i am thinking of using pwm with dma. am i in the right track or how should i approach this problem?
below is the example waveform i want to generate. Led0-ref is the reference pwm that will have t-on of 10us and total cycle of 120us. led 1 will use led 0 as the reference to control the delay. as you can see below when there is no delay cycle t-on is 10us and total cycle is 120us. when there is a delay of 3us, the delay total cycle stays the same 120us, only the start of the t-on is on delayed by 3us.
