Dear Sir/Madam,
I want to increase my ADC's frequency such that I can sample more points in one ePWM switching cycle and then do the averaging to make the measurement more accurate. In this way, I expect to measure a triangle waveform and then count the average value of it. However, it seems like if I only change the parameter of "EPwm2Regs.CMPA.half.CMPA" to make it 1/2 or 1/4 the value of the parameter "EPwm2Regs.TBPRD" (I use ePWM2 as the ADC triggering), I am not able the achieve what I expected above. It seems like the ePWM's frequency all follow the change of EPwm2Regs.CMPA.half.CMPA and thus the ADC can still only sample one point within a period.
Can you please help me on this? The code I am working on is based on "Example_2833xEPwmDeadBand" from the controSUITE.
Thanks.