Part Number: TMS320F28379D
Tool/software: Code Composer Studio
Hello I am trying to have a PWM updating from 28379D controller.
I have to update PHS and CMPA, CMPB at the same time but some time I will encounter issue. Here is my code:
EPwm7Regs.TBPRD = PRD7;
EPwm7Regs.CMPA.bit.CMPA = CMPA;
EPwm7Regs.CMPB.bit.CMPB = CMPB;
I used shadow load mode so the value should load while counter=0; My PRD value will change from 830 to 769, and CMPA from 366 to 345, CMPB from 781 to 730. In real test, I feel in some case which happens a lot, PRD is updated but CMPA and CMPB is not. In this case CMPB(781) is larger than new PRD(769), and will cause a long pulse. Is there any way for PRD and CMP to let them load or update at the same time?
Tianxiang Chen