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.
如果我用相同的触发条件 来触发四个ADC 的四个通道 比如说ADCA1 ADCB2 ADCC3 ADCD4 这四个通道 如果都是由epwm1 来触发的话
那这句话 AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 5 ;AdcbRegs.ADCSOC1CTL.bit.TRIGSEL =5;AdccRegs.ADCSOC1CTL.bit.TRIGSEL = 5;AdcdRegs.ADCSOC1CTL.bit.TRIGSEL = 5; 是写5呢 还是6呢?? A/C B/D 为什么要区分开?
每个PWM有四个触发源头A/B/C/D,表示不同的时刻,这个和ADC的A/B/C/D没有关系。
所以TRIGSEL写5或6都是可以,都是PWM1触发。只是设置的触发时刻不同