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.
请教两个问题,非常感谢:
一、F280049同一个ADC如果在CLA跟CPU都读会有影响吗。
二、CPU已经有一个60kHZ 的buckboost了,CLA想做PFC,但是如果PWM中断触发CLA时CPU要有两个频率很高的中断,有没有办法CLA用ADC或者PWM中断触发时,不需要在CPU开中断清除PIEACK。或者可以在CLA清除PWM中断的PIEACK吗。谢谢。
1. 不会:
zhcsgy3g_TMS320F28004x 实时微控制器 datasheet (Rev. G) 第122页 7.10.1.1 结果寄存器映射
2. 你的意思是不是就是让CLA不触发CPU中断?
我的意思是怎么触发CLA能像PWM SOC触发ADC一样触发CLA,不需要中断服务函数。如果用PWM中断触发CLA那必需得做中断服务 函数啊,因为CLA里面不能清除PIEACK。如果这样我就有两个PWM中断服务函数了,频率这么高的两个PWM中断不太好啊。
2. 很多外设的中断都可以触发CLA task,比如ADC,EPWM,将CLA task的触发源配置为相应的外设中断即可:
(sprui33f_TMS320F28004x Real-Time Microcontrollers Technical Reference Manual (Rev. F) 第632页 Peripheral interrupt trigger)
Configure the CLA task trigger source (CLA1TASKSRCELx
)
// Function Inputs: // taskNumber parameter indicates which task is being // configured (CLA_TASK_x (x = 1 to 8)) // trigger parameter is the interrupt trigger source CLA_setTriggerSource(taskNumber, trigger);