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.

CCS/LAUNCHXL-F28379D: Space Vector PWM Generation

Part Number: LAUNCHXL-F28379D

Tool/software: Code Composer Studio

Hello all,

I'm trying to generate space vector PWM in order to grid current controlling purposes. I have used 'SVGEN_MF' macro in order to generate space vector PWM signals. But my space vectors are bit different from the conventional space vectors. I would like to know whether I can compare the generated PWM signals(ex. ePWMxA and ePWMxB) and change the GPIO pims accordingly irrespective of the generated PWM signals. For an example I do not want to attach  ePWMxA and ePWMxB to any of the GPIO and according to generated ePWMxA and ePWMxB signal I required to control the GPIO pin. Please let me know this is feasible o not.

Thanks in advance.

Lahiru 

  • Lahiru,

    There are several GPIO Mux locations that are available for each PWM output. For example PWM1A can be routed to: GPIO0 or GPIO145. PWM1A cannot simply output on another GPIO with a couple of exceptions.

    1. If you are trying to switch ePWMxA and ePWMxB, there is some configuration built into the ePWM module to allow these two outputs to be switched. This would allow 'PWM1A' to access PWM1B Mux locations.
    2. If you are able to accept some relatively small, but unknown path delay between the signals then: It is possible to route any PWMxA or PWMxB through the X-BARs to any GPIO. You can do this for up to 6 channles because INPUT1-6 are connected to the output X-BAR
      1. I want to stress that there will be some delay between these signals, you should be able to write some calibration routine to calculate the offset, but it will change device to device.

    Regards,
    Cody 

  • Hello Cody,

    Thank you very much for the reply. I don't want to route any of the ePWM outputs to the GPIO. But I want to process further the ePWM output (for an example performing the 'OR' logic operation between three ePWM outputs. After that I want the output of the ORed signal to be present at the GPIO. Can you suggest a methodology for this. As far as I understood I can use the ePWM x - bar to perform this task.

    Ragards,

    Lahiru 

  • Lahiru,

    as of right now we cannot logically 'OR' the outputs of PWMs inside of the device. You will need to use external logic to preform this task.

    I don't know the timeline for your product, but stay tuned!!! We be releasing a programming tool for the CLB in the coming months.

    Regards,
    Cody