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.
Tool/software:
Hi,
Is there a way to generate complementary signals between ePWM1, 2 and so on; a complementary signal between ePWM1A and ePWM2A ?
Generating complementary signals in one ePWM (1A and 1B ) is straightforward. But, ePWM1A and ePWM2A and so on, not so.
I was trying to modify TIDA-01606 3L-2L. The first step is to shut down switches Q3 and Q4 (A,B,C). Then Q1 and Q2 (A,B,C) need to be in complementary mode. This means ePWM1A and ePWM2A as complimentary signals.
This 3L to 2L could have been easy if ePWMs could be redirected arbitrarily to any GPIO. Going through the Diagrams of XBARS, Input, output and ePWM XBARs,I think this is not be possible as GPIOs remain limited to the mux options described in the datasheet. XBAR helps take any GPIO of the device into any place in the processor, however, XBAR does not send ePWMs to any arbitrary GPIO.
Another way around 3L---> 2L PWM Driver modification may be if complementary signals can be generated between ePWMs (1A and 2A and so on). This also does not appear to be a possibility,
The next step then is the intervention in HW by generating ePWM A,B complementaries and disabling (in HW) Q3 (and Q4) and using the signal from Q3 to drive Q2. A SW only solution would be preferred. Can you please provide a code snippet if you think this is possible.
Thanks a lot,
en
Hi Erol,
You can sync ePWM1 and ePWM2 timers. Generate same duty cycle from both PWMs but ensure that the ePWM2 is inverse of ePWM1.
If you are designing new hardware, you can update the PCB to correct PWM pins.
Also, would recommend looking at our latest device the F28P65x, this has more memory and updated peripheral set.
Best regards, Pawan
Erol, What do you mean by will not work? Can you share some waveforms on what you are observing.
Best regards, Pawan
Hi Erol,
Can you share the PWM configurations you have done. A diagram of counter with compare and action qualifiers set would be helpful to start with. Configuration code would also help.
Best regards, Pawan