Leonid Shigris

PWM VARIABLE DUTY CYCLE

Discussion created by Leonid Shigris on Aug 6, 2019
Latest reply on Aug 9, 2019 by Kerry Zhou

Hello,

 

I'm running the IMXRT1050-EVKB.

My target: build PWM variable duty cycle with DMA.

 

My  reference: SDK_2.6.0_EVKB-IMXRT1050,

example: inputcapture_outputpwm_dma. This examples describes, how to prepare the PWM with static duty cycle.

I can't find any info or example, how I  send to DMA the buffer ( includes array of different duty cycles ). I have to use DMA.

Also should config Counter repetition (Each x Update Requests, the TMR Channel X Duty Cycle changes to the next new value defined by the buffer). 

1. Is possibility to config PWM  with variable duty cycle with DMA ? If yes, what is the way to config this option?

2. Counter repetition.  Is there a part of timer configuration? Is there such an option at all? 

 

 

 

Best Regards,

Leon.

Outcomes