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.

CCS/TMS320F28027: PSFB PCMC mode SR configuration question

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

hello all:

         I ask some questions about PSFB PCMC.

         1.SR_Mode = 1 PWM4A,PWM4B configure,

            counter up:

            MOVW DP,#_EPwm4Regs.CMPB

           MOV @_EPwm4Regs.CMPB, AL;                         
           MOV @_EPwm4Regs.CMPA.half.CMPA, #(PWM_PRD+10)

           counter down

MOVW DP,#_EPwm4Regs.CMPB

MOV @_EPwm4Regs.CMPA.half.CMPA, AL
MOV @_EPwm4Regs.CMPB, #(PWM_PRD+10)

There is confusion about when the load  is bigger how PWM4A,PWM4B  can overlap the phase.

if there is somewhere update  EPwm4Regs.CMPB,EPwm4Regs.CMPA.

            

 

  • I'm looking into this and will reply back by the end of the week.

    Best regards,
    Matt
  • Can you provide the source file you see the above code lines?  In my ControlSUITE install here

    C:\ti\controlSUITE\development_kits\HVPSFB_v1.1\HVPSFB_PCMC  Inside the HVPSFB-DPL-ISR.asm I see only one write to the PWM4A CMPB as shown below:

    Aft2_0:	.ref	_dbAtoP_leg
    		MOVW	DP, #(_dbAtoP_leg)
    		MOV		AH, @(_dbAtoP_leg)		
    		.ref	_dbPtoA_leg
    		MOVW	DP, #(_dbPtoA_leg)
    		MOV		AL, @(_dbPtoA_leg)	
    
    		MOVW 	DP,#_EPwm2Regs.CMPB
    		MOV		@_EPwm2Regs.CMPA.half.CMPA, AH			; dbAtoP_leg
    		MOV		@_EPwm2Regs.CMPB, #(PWM_PRD+10)
    
    		ADDB	AL, #3						
    
    		MOV		@_EPwm2Regs.DCFWINDOW, AL	
    
    		MOVW 	DP,#_EPwm4Regs.DCFWINDOW
    		MOV		@_EPwm4Regs.DCFWINDOW, AL			
    
    		.ref	_SR_DB
    		MOVW	DP, #(_SR_DB)
    		ADD		AL, @(_SR_DB)
    
    		MOVW 	DP,#_EPwm4Regs.CMPB 
    
    		MOV		@_EPwm4Regs.CMPB, AL				 
    		MOV		@_EPwm4Regs.CMPA.half.CMPA, #(PWM_PRD+10)

    Thanks,
    Matthew

  • Wanted to check back to see if you had any additional information per the above? I'm going to mark as TI Thinks Resolved, but if you reply back it will re-open the thread.

    Best,
    Matthew
  • I'm going to close the thread and mark TI thinks resolved, if you have a further comment, please reply back and the thread will re-open.

    Best,
    Matthew