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.

AM263P4: Enabling/Disabling multiple PWMs simultaneously

Part Number: AM263P4


Tool/software:

Hi Akshit,

Can you please share the project files from your response to the following thread: AM263P4: Enabling/Disabling multiple PWMs simultaneously? I am trying to use Continuous SW Force trigger to turn both EPWMxA/EPWMxB low as in your example screenshot, but for some reason I am getting EPWMxA low, while EPWMxB high. Thanks!

Regards, Aidar

  • Hi Aidar,

    Akshit is out of office and I can't help with that. If you’re seeing EPWMxA forced low while EPWMxB remains high, that usually comes down to how the action qualifier is configured for channel B. In the ePWM, the continuous software force settings for output A and output B are controlled by separate fields in the AQCSFRC register (CSFA vs. CSFB). Please make sure you are forcing both CSFA = b10 (force low) and CSFB = b10 (force low) at the same time. If only CSFA is set, then only EPWMxA will respond.

    Also, if you’re writing through the shadow registers, ensure you issue a synchronization event so both A and B outputs latch the new settings at the same time. Without this, A and B can update on different TBCTR edges and appear mismatched.

    I think if your intent is a “hard disable” (both outputs low regardless of counter), trip zone with a software trigger (TZFRC) is a more reliable method. You can configure both EPWMxA and EPWMxB to respond to OST (one-shot trip) with “force low”, and then write to TZFRC to apply it. That way both channels drop simultaneously.

    Please let me know if this resolves the issue.

    Best Regards,

    Masoud