Other Parts Discussed in Thread: CONTROLSUITE
Hi,
I am using a F28379D to generate PWM signals (PWM 1,2,3 having switching frequency = 200 kHz) for DC-DC converter and DC-AC inverter (PWM 7,8,9 with switching frequency = 10 kHz). Up till now, I was using PWM1 for ADC_ISR. All the control process is happening inside ADC_ISR with frequency of 200 kHz. I was selecting PWM1 for ADC_ISR using following code:
EALLOW;
EPwm1Regs.ETSEL.bit.SOCASEL = 1; // Select SOC on Zero
EPwm1Regs.ETSEL.bit.SOCAEN = 1; //enable SOCA
EPwm1Regs.ETPS.bit.SOCAPRD = ET_1ST; // Generate pulse on ___ event
EDIS;
Now I would like to use PWM7 for ADC_ISR that has switching frequency of 10 kHz while maintaining 200 kHz switching frequency of PWM1,2,3 in DC-DC stage. To do so, I tried to change EPwm1 to EPwm7 in above code but that did not work. Can you please guide what am I missing to use PWM7 for ADC_ISR?