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.

28069 ad请教



28069的ad参数设置让人郁闷,能否详细解说一下:

比如我要使用ADCINA0 ~ ADCINA7,使用EPWM0产生中断,

AdcRegs.INTSEL1N2.bit.INT1E     = 1; //Enabled ADCINT1
 AdcRegs.INTSEL1N2.bit.INT1CONT  = 0; //0-Disable ADCINT1 Continuous mode
 AdcRegs.INTSEL1N2.bit.INT1SEL = 0; //setup EOC0 to trigger ADCINT1 to fire

AdcRegs.ADCSOC0CTL.bit.CHSEL  = 0;      //set SOC0 channel select to ADCINA0

AdcRegs.ADCSOC0CTL.bit.TRIGSEL  = 5;    //set SOC0 start trigger on software

AdcRegs.ADCINTSOCSEL1.bit.SOC7  = 1;    //软件触发源ADCINT1

除了上述设置外,还需哪些呢?

谢谢1