Hi team,
Here's an issue from the customer may need your help:
The ADC is used as the interrupt trigger source and is triggered by EPWM at an epwm frequency of 18K, but it is sometimes seen that the ADC does not enter an interrupt at 18K, but enters an interrupt at 30K.
ADC configuration bit:
AdcRegs.ADCTRL1.bit.ACQ_PS = 0x04;
AdcRegs.ADCTRL3.bit.ADCCLKPS = 4;
AdcRegs.ADCTRL3.bit.SMODE_SEL = 1;
AdcRegs.ADCTRL2.bit.EXT_SOC_SEQ1=0;
AdcRegs.ADCTRL2.bit.EPWM_SOCA_SEQ1=1;
AdcRegs.ADCTRL2.bit.INT_MOD_SEQ1=0;
AdcRegs.ADCTRL2.bit.INT_ENA_SEQ1=0;
AdcRegs.ADCTRL2.bit.RST_SEQ1=1;
AdcRegs.ADCTRL2.bit.RST_SEQ2=1;
AdcRegs.ADCTRL1.bit.SEQ_CASC = 1;
Could you help check this case? Thanks.
Best Regards,
Cherry