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.

TMS320F2812: PWM周期和比较寄存器不能用变量赋值吗?我用变量赋值后寄存器没有更新

Part Number: TMS320F2812


类似下面这样,寄存器的值并没有改变,为什么呢?

uint16 array[2];

array[1] = 0x493E;
EvaRegs.T1PR=array[1] ; //1KHz的PWM,周期为1ms