Part Number: TMS320F28379D
Other Parts Discussed in Thread: TIDM-02002
Tool/software: Code Composer Studio
Hello everyone,
I am working with TMS320F28379D module. I was trying to understand HRPWM. I am currently stuck with Phase shifting. I am working with examples named, hrpwm_prdupdown and hrpwm_duty_up. I was trying to put some value into TBPHS.bit.TBPHS like 0xA000 to create phase shifting. But it's not working.
I have set the
1. TBCTL.bit.PHSEN to TB_ENABLE
2. HRCNFG.bit.EDGMODE = HR_BEP;
3. HRCNFG.bit.CTLMODE = HR_PHS;
4. HRCNFG.bit.HRLOAD = HR_CTR_ZERO_PRD;
5. HRCNFG.bit.EDGMODEB = HR_BEP;
6. HRCNFG.bit.CTLMODEB = HR_PHS;
7. HRCNFG.bit.HRLOADB = HR_CTR_ZERO_PRD;
8. HRCNFG.bit.AUTOCONV = 1;
9. HRPCTL.bit.TBPHSHRLOADE = 1;
After doing these, it's still not working.
My questions:
1. Can anyone help me to understand how can I create phase shifting between the HRPWM 1, HRPWM 2 etc. ? Can anyone provide me a sample code for phase HRPWM shifting?
2. My primary goal is to create a Full bridge using controlled phase shifting and duty. Is there any sample code for this purpose?
I will be pretty glad if anyone can help me out.
Thank you
Shamsul Arefeen