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/TMS320F28335: Knowing the starting and ending of epwm signal

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi,

I am working on a system which has to undergo switching only when a particular PWM signal is on. 

for example in the attached figure. 

I want to create PWM signal using ePWM 1 ISR. But I am not sure how can I start and stop my additional signal so that it starts exactly after epwm is turned on. For now, if I assume that the additional signal is through SCI interface how can I synchronize its with the ePWM signal?

0456.drawing.pdf

  • Hi Ankit,

    Both the signals need to be generated by you? or only the ePWM pulses and the additional one being as input to activate/deactivate this PWM?

    Regards,
    Gautam

  • Hi Gautam,

    For now, I have assumed my ePWM signal to be constant, i.e. I have specified a particular value in CMPA register and generating this epwm signal. but my other signal has to be activated only when the ePWM signal is on. once activated within this bound I can control the length of the additional signal so that it stops before my ePWM signal goes low.

    I have assumed my additional signal to be a communication signal (SCI) which is activated only when ePWM is on.
    I tried doing it by using a user defined function
    scia_xmit(sendchar);
    within epwm submodule, it did work. However, I just wanted to know if there is any better way to do this.

    -Ankit