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.

TMS320F28377S: CPU利用HLC向CLB读取寄存器值的问题

Part Number: TMS320F28377S

您好,我想在程序运行时,CPU通过HLC向CLB读取计数器的值,例如C0。为此我用syscfg设计了一个简单的程序验证是否能正常读取,如下:

Count0:

Reset: Counter 0 Equals Match1;

Event Tigger: Zero;

Counter Enable: one;

Direction: one;

Match Reference 1:1000;

R0 Initial Value: 50;

Event0: Counter 0 Equals Zero;

HLC Program 0:

PUSH R0;

Uint32 CTR;

CTR = Clb1DataExchRegs.CLB_PUSH[0];

该程序旨在读取R0的初始值50,但事实上不能成功读取,CTR的值始终为0。

我想知道是否有其他寄存器需要配置,CPU想要读取CLB寄存器中的值需要的步骤有哪些,是否有关于CPU读取CLB中寄存器的值的例程可以进行参考。