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.

请告知Example_2803xClaAdc例程中实现什么样的功能?



是CLA它非常适合于处理时间关键控制循环的一个例程么(若不是,有无例程)?

  • 例程前的注释中有说明例程实现的功能:

    In this example ePWM1 is setup to generate a periodic ADC SOC.
    Channel ADCINA2 is converted. When the ADC begins conversion,
    it will assert ADCINT2 which will start CLA task 2.

    Cla Task2 logs 20 ADCRESULT1 values in a circular buffer.
    When Task2 completes an interrupt to the CPU clears the ADCINT2 flag.

  • 这个我当然有看到啦,就是没办法理解这个例程到底想表达什么意思,是用CLA模块对ADC进行采样么

  • 并不是用CLA对ADC采样,就是如注释所说,ePWM1触发ADC采样。采样完成后,当ADC开始转换后,产生ADCINT2,这一中断触发CLA task 2。task 2的任务是存储20个ADCRESULT1的结果,task 2结束时会清除ADCINT2中断标志。