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.

关于MSP430G2452内部的电压监控功能SVS的使用方法

Other Parts Discussed in Thread: MSP430G2452

MSP430G2452单片机外部使用RC,想配合使用内部的SVSCTL寄存器完成对监测电压的配置,但是按照参考手册中给出的适应方法,无法成功配置该寄存器,想知道如何解决该问题。下面程序中该部分的代码,查询SVSCTL寄存器中SVSON位的值一直是0。

不知大家有谁用过,或者有没有解决方法,希望能帮我一下。

十二万分感谢!

void main(void)

{
MSP430G2452_Init();
//20190924读SYSCTRL寄存器的状态值

// SVS_RST_VAL = SVSCTL;
SVSCTL = 0x80;
// TempWaitUs(50);
while( (SVSCTL & SVSON) != SVSON );//等待一定的时间,设置成功则SVSON==1

// SVS_RST_VAL = SVSCTL;

SVSCTL = 0;//关闭SVS
SVSCTL = 0x88; //更改VLD
// SVS_RST_VAL = SVSCTL;
// TempWaitUs(50);
while( (SVSCTL & SVSON) != SVSON );//等待一定的时间,设置成功则SVSON==1

// SVS_RST_VAL = SVSCTL;

ClearBuffer();
ReadFlash0();
ReadFlash1();

……

……

}