Hello 各位专家
如何用MSP430F6736的SVS监控电压,当电压小于2V时,产生一个中断?
是否有相关例程可供参考,谢谢
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.
Hello 各位专家
如何用MSP430F6736的SVS监控电压,当电压小于2V时,产生一个中断?
是否有相关例程可供参考,谢谢
Caspar,
首先,要实现你说的功能,得用SVM high side。你应该要监控的是Dvcc吧。如果是Vcore的话,用SVM low side。 SVS会导致POR(Power-on reset), SVM可以用来控制产生interrupt.
MSP430的PMM(SVS,SVM)控制还是较为复杂的,建议你直接使用MSP430 core library. 对应的源程序和API手册,请从下面链接下载:
http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=slaa448c&fileType=zip
请按照MSP430F6736 datasheet 中 PMM SVM High side部分选择2V 对应的设置。(不要忘了与Core level也是有关系的 )
之后可直接调用core library中的ENABLE_SVMH_INTERRUPT() 函数 以及其他你认为需要的。