Other Parts Discussed in Thread:C2000WARE
用adc中断触发cla,为什么只在开始时触发了一次,之后就进不去cla task了
Susan Yang:
请问能否给出详细cla代码以及adc的中断服务程序代码?
,
Susan Yang:
另外在C2000ware内有相关的例程,您可以参考一下
C2000Ware_3_03_00_00\device_support\f2803x\examples\c28\cla_adc
//! 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.
,
user6414714:
AdcRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
原因是这两条语句没有生效。使在cla中不支持修改这两个寄存器 吗,pwm的 EPwm1Regs.ETCLR.bit.INT = 1;PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;就可以执行
,
Susan Yang:
The CLA has direct access to the ADC Result registers, comparator registers, and the ePWM+HRPWM registers.
对于28035,CLA 可直接访问ADC 结果寄存器、比较器寄存器、和ePWM+HRPWM 寄存器