MSP430据说是能耗控制最好的一代,而MSP432是在MSP430的基础上提高了运算能力,仍然保留了低功耗的传统(高性能/低功耗)。
在MSP432中,有多种低功耗模式。
有那么多种低功耗模式,具体指的是什么呢?
活跃模式:
这些都是在TI培训里截图的,不知道有没有侵权,如果有的话,麻烦联系下我,我就撤回。
那么我们该如何在MSP432的TIdrivers下使用低功耗模式呢?
我在TIdrivers没有找到进入LM的程序,但是我在DriverLib中就找到了相关函数。
/* Enabling "rude" mode which forces device to go to sleep regardless of
* outstanding clock requests
*/
MAP_PCM_enableRudeMode();
/* Enabling MASTER interrupts */
MAP_Interrupt_enableMaster();
/* Going to LPM3 */
while (1)
{
/* Note that while this examples just goes to LPM3, LPM4 is essentially
just LPM3 with WDT_A/RTC_C disabled. For convenience, the user can
use the MAP_PCM_gotoLPM4() function if they want the API to handle
the disabling of these components */
MAP_PCM_gotoLPM3();
}
这个是进入LPM3的程序DriverLibs的程序。我在TIDrivers中没有找到LM的相关定义,但是有powerdeepsleep/powersleep/powerperformance/powershutdown,不知道跟LP模式有没有关系。
/*
* Turn off PSS high-side supervisors to consume lower power in deep sleep
*/
MAP_PSS_disableHighSide();
/* Select PowerMSP432_deepSleepPolicy to enable transition
* into the PowerMSP432_DEEPSLEEP_1 (LPM4) state
*/
Power_setPolicy((Power_PolicyFxn)PowerMSP432_deepSleepPolicy);
这个需要引入两个头文件
/* Driver Header files */
#include #include 这个功耗模式在Tidrivers里我有点懵,希望有大侠能指导一下。有机会大家还是看下官方培训视频。
相关文章









