新手上路
- 积分
- 44
- 金钱
- 44
- 注册时间
- 2014-12-29
- 在线时间
- 0 小时
|
5金钱
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>nrf51822芯片datasheet原文,说是系统可以设置在</span></span></span><span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>System OFF MODE</span></span></span><span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>,此模式下CPU停止,外设运行,RAM数据保存,是最省电的睡眠,系统可以被GPIO的detect信号唤醒而后重启,原文如下: <br />
</span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>System OFF is the deepest power saving mode the system can enter. In this mode, the system’s core </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>functionality is powered down and all ongoing tasks are terminated. The only mechanism that is functional </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>and responsive in this mode is the reset mechanism. </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>One or more blocks of the RAM can be retained in System OFF mode depending on the settings in the </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>RAMON register. </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>The system can be woken up from system OFF mode either from the DETECT signal generated by the GPIO </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>peripheral, or from a reset. When the system wakes up from OFF mode, a system reset is performed. </span></span></span><br />
<br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>库函sd_power_system_off()的函数说明是:Puts the chip in System OFF mode. 我用这个函数点灯基本确定CPU是睡下去了,但是GPIO中断没有唤醒起来。<br />
<br />
芯片GPIO关于DETECT信号有这样的说明,如下: </span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span></span></span></span><br />
<span style="background-color:#FFFFFF;"><span style="background-color:#D1D9E2;"><span>ORT is an event that can be generated from multiple input pins using the GPIO DETECT signal. The event<br />
will be generated on the rising edge of the DETECT signal. See section 13.1 on page 55 for more information<br />
about the DETECT signal.<br />
This feature is always enabled although the peripheral itself appears to be IDLE, that is, no clocks or other<br />
power intensive infrastructure have to be requested to keep this feature enabled. This feature can therefore<br />
be used to wake-up the CPU from a WFI or WFE type sleep in System ON with all peripherals and the CPU<br />
idle, that is, lowest power consumption in System ON mode.<br />
<br />
我个人觉得,detect信号就是一个高低电平,GPIO原文也说这个DETECT信号可以将CPU从睡眠模式唤醒,但是实际却还是没有唤醒。希望有搞这一块的朋友帮一起看看,或者加QQ312382027讨论一下。谢谢哈</span></span></span> |
最佳答案
查看完整内容[请看2#楼]
不太正確喔!system off mode 除了core停止,peripheral也是停止的,功能幾乎等同關機,RAM可以設定是否保存(需耗費額外電力),喚醒除了power on reset,其他方式要在NRF_POWER register進行設定喚醒源(RESETREAS)
而 sd_app_evt_wait功能等同m0裡的WFE__,core停止,peripheral可以單獨運行,差別在enable softdevice時使用 sd_app_evt_wait,disable softdevice時使用W ...
|