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.

怎样使用MSP430F5438A的SVM high-side来监测电压?



我希望在电池电压降到某值时能够闪灯报警

VCore设定后,设置寄存器

PMMCTL0_H = 0xA5;
SVSMHCTL |= SVSMHRRL_6; //SVMH voltage level typical 3.1v

然后在主循环中查询标志位

if(PMMIFG & SVMHIFG)  SetLED(1,1);   

这样似乎达不到预期目的

请问要怎样设置?

另外,这个电压监测是只在电压降低到某值下降沿事件发生时置位标志位,还是说随时监测到低于该值都会置位?