Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE
I'm trying to generate 2 pwms out of the TI TMS320F28335. I used the pwm deadband example to get the first pwm but don't know how to produce another one.
Thanks,
Loilin Muirhead
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.
Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE
I'm trying to generate 2 pwms out of the TI TMS320F28335. I used the pwm deadband example to get the first pwm but don't know how to produce another one.
Thanks,
Loilin Muirhead
Loilin,
Are you trying to generate two independent PWM signals or perhaps a complementary pair?
Regards,
Daniel
I want to generate two separate pwms. One that is at 500khz frequency and another at the same frequency but phase shifted.
Thanks,
Loilin Muirhead
Loilin,
Why don't you try looking at the epwm_up_aq or epwm_updown_aq examples instead?
Also, you should look at SPRUG04, specifically the TBPHS register.
Regards,
Daniel
Hi everyone, I try to understand how do i configure ePWMs, the frecuency one is 10KHz and the other one is 500 Khz, how do i configure that in a tmds28027usb microcontroller , why when i configure the frecuency one at 10 Khz i have to put the register one "EPwm1Regs.TBPRD=3000", and Why i have to put " EPwm1Regs.half.CMPA =2010;" <== to set the dut cycle to 33% ¿Why?, in wich documentation i can find this, i have some examples of my course in the university but i have not found why the register is to set " EPwm1Regs.half.CMPA =2010;" to set the duty cycle at 33% ¿Why? i must be put to "2010"??, help me please, thanks and Regards..
Hi Mileva!
At first I would recommend you to install controlSUITE. You can find there many the example projects with using ePWM and documentation also (for example in folder ti\controlSUITE\device_support\f2802x\v210). Further if you will have any question then you might create own post.
Regards,
Igor
Hi Mileva,
Here is the documentation which will solve all your queries on PWMs:
http://www.ti.com/lit/ug/spruge9e/spruge9e.pdf
The above documentation will give you the formula by which you'll be able to calculate the PWM period using SYSCLK and LSPCLK.
Regards,
Gautam