This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Issue with Matlab-generated code controlling the ADC and the PWM duty cycle

Part Number: LAUNCHXL-F28379D

Hello,

This case is from the same customer for whom I have published an issue with the PWM control by Matlab-generated code (link).

The code controls the duty cycle of a 200 kHz PWM based on a triangle wave digitized by the ADC.

The trouble is there is delay of 12 to 18 us between the time the input signal is 0 and the corresponding PWM output. We would expect this time to be no more than 1 PWM cycle plus the ADC conversion time, a total of 5.3 us. Looking into more detail at the PWM output, it looks like the duty cycle is updated every other cycle

Could it be a performance issue because the DMA is not used? Is there a Matlab application note that would describe a more optimized setup? Also, the next challenge would be to avoid any delay at all between the time the ADC reads a 0 input and the PWM output is zero, so to have the best zero-voltage crossing operation. Is there a Matlab application note that describes such a setup?

Like for the other thread, I may provide source code for analysis and screenshots. Thank you.


Best regards,
François.