請問:
我使用NuMaker-IoT-M487 開發板, 測試 SYS_SPDMode_Wakeup 這包sample code 然後在debug模式下執行, 並選擇RTC alarm進入power down mode , 接著在UART1視窗看到
如下訊息後, 就沒看到有wake up的動作, 我將程式停止後 只看到停在這行程式而已 /* Restore HIRC control register */
SYS->IRCTCTL = u32HIRCTRIMCTL; 請問這code的具體動作是如何以及怎麼知道已經喚醒?謝謝!!
CPU @ 192000000 Hz
Power manager Power Manager Status 0x0
+-----------------------------------------------------------------+
| SPD Power-down Mode and Wake-up Sample Code |
| Please Select Power Down Mode and Wake up source. |
+-----------------------------------------------------------------+
|[1] SPD0 GPIO Wake-up pin(PA.0) and using rising edge wake up. |
|[2] SPD0 Wake-up TIMER time-out interval is 1024 OSC10K clocks. |
|[3] SPD0 Wake-up by ACMP0.(band-gap voltage) |
|[4] SPD0 Wake-up by RTC Tick. |
|[5] SPD0 Wake-up by RTC Alarm. |
|[6] SPD0 Wake-up by RTC Tamper0(PF.6), Low level. |
|[7] SPD0 Wake-up by BOD. |
|[8] SPD0 Wake-up by LVR. |
|[a] SPD1 GPIO Wake-up pin(PA.0) and using rising edge wake up. |
|[b] SPD1 Wake-up TIMER time-out interval is 1024 OSC10K clocks. |
|[c] SPD1 Wake-up by ACMP0.(band-gap voltage) |
|[d] SPD1 Wake-up by RTC Tick. |
|[e] SPD1 Wake-up by RTC Alarm. |
|[f] SPD1 Wake-up by RTC Tamper0(PF.6), Low level. |
|[g] SPD1 Wake-up by BOD. |
|[h] SPD1 Wake-up by LVR. |
+-----------------------------------------------------------------+
# Set RTC current date/time: 2020/09/04 10:00:00.
# Set RTC alarm date/time: 2020/09/04 10:00:59.
Enter to SPD0 Power-Down mode......
|