TI论坛
直播中

郭燕

7年用户 270经验值
私信 关注
[问答]

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

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

回帖(3)

张嘉

2018-11-27 14:58:59
例程前的注释中有说明例程实现的功能:
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.
举报

郭燕

2018-11-27 15:07:53
引用: linlin3105 发表于 2018-11-27 08:02
例程前的注释中有说明例程实现的功能:
In this example ePWM1 is setup to generate a periodic ADC SOC.
Channel ADCINA2 is converted. When the ADC begins conversion,

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

张嘉

2018-11-27 15:16:16
引用: linlin3105 发表于 2018-11-27 08:02
例程前的注释中有说明例程实现的功能:
In this example ePWM1 is setup to generate a periodic ADC SOC.
Channel ADCINA2 is converted. When the ADC begins conversion,

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

更多回帖

发帖
×
20
完善资料,
赚取积分