用eZ430仿真msp430g2452时,单步执行BCSCTL1 = 0x87;BCSCTL3 |= XCAP_3;硬件仿真查看寄存器值,跟我写进去的不一样。是什么原因呢?
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.
用eZ430仿真msp430g2452时,单步执行BCSCTL1 = 0x87;BCSCTL3 |= XCAP_3;硬件仿真查看寄存器值,跟我写进去的不一样。是什么原因呢?
您好,BCSCTL1没有保留位啊,都是可读可写的
deliang zhang,
请仔细查看user guide,
其下面有备注,如下:
(1) XTS = 1 is not supported in MSP430x20xx and MSP430G2xx devices (see Figure 5-1 and Figure 5-2 for details on supported settings for
all devices).
(2) This bit is reserved in the MSP430AFE2xx devices.
288
然后可在Figure 5-1 and Figure 5-2中看到,
针对MSP430G2452而言,其实XT2OFF,XTS都是不支持的,相当于Reserved.
即MSP430G2452不支持高频晶体,不管是XT2,还是XT1用作高频。
希望对你有帮助!O(∩_∩)O~
各位,我上传了仿真时候的截图,我单步执行了BCSCTL1 = 0x87;BCSCTL3 |= XCAP_3;两条指令,但是寄存器的值不是我写入的,大家帮忙看下谢谢!
我上传了仿真时的图片,当我但不执行BCSCTL1 = 0x87;BCSCTL3 |= XCAP_3;但是寄存器里的值不是写进去的数值
原来那个eZ430坏了,可以写程序,单步运行,但是不能读出寄存器值。现在用launch pad带的那个spy-bi-wire仿真读出寄存器值是正确的。