This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2808: 使用ADC作为中断时出错

Part Number: TMS320F2808

   在2808中,采用ADC作为中断触发源,由EPWM触发,epwm频率为18K,但实际使用过程中发现,ADC有时候中断不是18K进入一次,而是30K进入一次

ADC配置位

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;