I am using TMS320F28035 to generate a half bridge switching pattern. However, the method in epwm document spruge9e seems to have problem. Can anyone tell me what is the most efficient way to generate this pattern? Fig. 61 in that document seems not correct.
I mail this question to TI but got no feedback. Did they make a mistake in this section?
I can generate a proper half bridge gate signal with this code. But not sure if this is the most effective way. This method need to setup both CMPA and CMPB. Anyway, don't know why TI make such a mistake in their document.
EPwm1Regs.AQCTLA.bit.ZRO = AQ_SET; // set actions for EPWM1A EPwm1Regs.AQCTLA.bit.CAU = AQ_CLEAR; EPwm1Regs.AQCTLB.bit.PRD = AQ_SET; // set actions for EPWM1B EPwm1Regs.AQCTLB.bit.CBD = AQ_CLEAR; EPwm1Regs.CMPA.half.CMPA = 100; // adjust duty for output EPWM1A & EPWM1B EPwm1Regs.CMPB = EPwm1Regs.TBPRD - EPwm1Regs.CMPA.half.CMPA;
I will submit a request to have the diagram changed.
Regarding the waveform generation, you can consider these settings:
EPwm1Regs.AQCTLA.bit.ZRO = AQ_SET; // set actions for EPWM1AEPwm1Regs.AQCTLA.bit.PRD = AQ_CLEAR;EPwm1Regs.AQCTLB.bit.PRD = AQ_SET; // set actions for EPWM1BEPwm1Regs.AQCTLB.bit.ZRO = AQ_CLEAR;
This will generate full 50% duty waveforms for HB switching. You can then use the dead-band module to add dead time between the PWM waveforms.
Thanks! However, 50% duty waveforms is normally used in phase-shift full bridge, the reason is that we can shift the phase to control the power to deliver to the load. But for half bridge, duty is commonly used to control the power. If duty is fixed at 50%, the only way to change output power is to change the rail voltage. To follow textbook, half bridge requires change of duty. What do you think?
Sorry for the late reply. If you want to generate the waveforms indicated in the (corrected) diagram, you will need to use two Compare registers, one for each PWM channel.
PWM-A: - SET on ZERO event - CLEAR on CMP-A UP event
PWM-B: - SET on PERIOD event - CLEAR on CMP-B DOWN event
This will allow you to modify Duty value while maintaing proper phase shift.
Any idea of how to trigger the ADC in the middle of the pulse?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.