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.

Regarding ePWM

Hello Everyone

I am new to F28335.

What i did was,  in MATLAB,  I built a model with 6 ePWM blocks and then inputted them with a constant CMPA value.

(The purpose was to check if all the ePWM block gave same output when they had same conditions). 

The RESULT I obtained was that I got the pulses for corresponding ePWM(1-4) pins , while the output from the corresponding ePWM(5-6) pins were absent.

QUESTION 1: I am sure that hardware is perfectly alright, it has something to do with the muxed arrangement of ePWM(5-6). Kindly help me how to configure the  pins to output ePWM(5-6) pulses.

QUESTION 2: What i understood in texas reference guide is that by default all the gpio's are set to i/o condition, then why are ePWM (1-4) din't need any configuration? 

Regards

Mayank

  • Hi,

    QUESTION 1: I am sure that hardware is perfectly alright, it has something to do with the muxed arrangement of ePWM(5-6). Kindly help me how to configure the  pins to output ePWM(5-6) pulses.

    Along with mux configuration, please ensure the below register values are properly configured. Also refer controlSUIT for example projects for F28335 target.

    QUALPRD0 is for ePWM1-4 and QUALPRD1 is for ePWM 5-6.

    Regards

    Aditya

  • Hi,

    The problem is how to fix that in matlab? No such configuration adjustment is there in ePWM block. I have been generating auto code by matlab. 

    I could find is a system initialize block in matlab which  i guess could be used here. (Even if yes, i dont know how to write that particular code in it).

    Regards

    Mayank