Part Number: CCSTUDIO-C2000
Hello again!
In many examples in C2000, I have noticed that the ADC's are set to use the PWM signals that are output, as triggers to take new samples.
AdcaRegs.ADCSOC1CTL.bit.CHSEL = 2; // SOC1 will convert ADCINA2
AdcaRegs.ADCSOC1CTL.bit.ACQPS = 19; // SOC1 will use sample duration of 20 SYSCLK cycles
AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 5; // SOC1 will begin conversion on ePWM1 SOCA
My question is, if we take a sample only once every PWM cycle, is it possible we would run into aliasing issues, since we are not sampling at the required twice every switching period?
Is there some way in software we can define the number of samples that are taken on every PWM signal, so we can sample 2-3x faster than this?
Thanks!
Joel