Hi all,
I am learning about the ADC on TMS320F28377D. I am using channel ADCB-4 to sample a 1kHz sinewave. The ADC is setup to be triggered when the PWM carrier (10kHz) meets the CMPA value. The ADCB result register is displayed in the graph below.
Is it possible to display this graph without the rough value jumps I have marked up, and why do they happen?
Other info:
ADCB is configured as follow
AdcbRegs.ADCSOC4CTL.bit.CHSEL = 4;
AdcbRegs.ADCSOC4CTL.bit.ACQPS = 14;
AdcbRegs.ADCSOC4CTL.bit.TRIGSEL = 5;
the pwm configuration in regards to the ADC is:
EPwm1Regs.ETSEL.bit.SOCBEN = 1;
EPwm1Regs.ETSEL.bit.SOCBSEL = 4;
EPwm1Regs.ETPS.bit.SOCBPRD = 1;
with
EPwm1Regs.TBPRD=10000;
EPwm1Regs.CMPA=5000;
the result buffer includes 100 samples.
Thank you so much for your help,
Leo