TI中文支持网
TI专业的中文技术问题搜集分享网站

CPU与CLA的信息交互?

请问各路神仙:TMS2803x系列的DSP中CLA与CPU信息是如何交互的?比如说CPU处理一段代码得到一个变量a=100,怎么在CLA中断中调用a的值;反之,从CLA计算的b=100,怎么在CPU中断中调用。

 

囧:

你可以参考F2803X CLA user guide SPRUGE6B

第2.1节:

CLA Shared Message RAMsThere are two small memory blocks for data sharing and communication between the CLA and themain CPU. The message RAMs are always mapped to both CPU and CLA memory spaces and areprotected by the code security module. The message RAMs allow data accesses only; no programfetches can be performed.– CLA to CPU Message RAMThe CLA can use this block to pass data to the main CPU. This block is both readable and writableby the CLA. This block is also readable by the main CPU but writes by the main CPU are ignored.– CPU to CLA Message RAMThe main CPU can use this block to pass data and messages to the CLA. This message RAM isboth readable and writable by the main CPU. The CLA can perform reads but writes by the CLAare ignored.

请问各路神仙:TMS2803x系列的DSP中CLA与CPU信息是如何交互的?比如说CPU处理一段代码得到一个变量a=100,怎么在CLA中断中调用a的值;反之,从CLA计算的b=100,怎么在CPU中断中调用。

 

Eric Ma:

CLA和CPU有交互的信息RAM,CLATOCPU RAM则CLA可以读写,CPU只能读,CPUTOCLA则相反。然后再定义一个变量A在CLATOCPU, 变量B在CPUTOCLA,然后标志位IPC0~IPC15可以用来让双方相应。

Eric

赞(0)
未经允许不得转载:TI中文支持网 » CPU与CLA的信息交互?
分享到: 更多 (0)