Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

关于低功耗的一些疑问

$
0
0

各位好,

我使用SPPBLESever的工程,我想实现串口控制进入低功耗。

1)一上电,在MAIN函数中执行:

/* Set constraints for Standby, powerdown and idle mode */
Power_setConstraint(Power_SB_DISALLOW);
Power_setConstraint(Power_IDLE_PD_DISALLOW);

2)当串口接收到进入低功耗指令时,执行:

// release constraints for Standby and idle mode
PowerState = STANDBY;
Power_releaseConstraint(Power_SB_DISALLOW);
Power_releaseConstraint(Power_IDLE_PD_DISALLOW);

3)当串口接收到进入shutdown模式时,执行:

        Power_shutdown(NULL);

4)当IO触发中断时,唤醒MCU,执行:

/* Set constraints for Standby, powerdown and idle mode */
Power_setConstraint(Power_SB_DISALLOW);
Power_setConstraint(Power_IDLE_PD_DISALLOW);

以上就是代码的修改地方,现在有一些疑问:

Q1:执行步骤2)时,电流只下降了0.5ma,如何进入STANDBY模式(电流可以到达1ua)

Q2:当进入shutdown模式,电流可以到达0.1ua,但是此时如何唤醒MCU呢?


Viewing all articles
Browse latest Browse all 7485

Trending Articles