標(biāo)題: PIC24F32KA301深度休眠無法喚醒 [打印本頁(yè)]

作者: ainolike    時(shí)間: 2014-6-17 11:03
標(biāo)題: PIC24F32KA301深度休眠無法喚醒
PIC24F32KA301深度休眠通過實(shí)時(shí)時(shí)鐘總是無法喚醒,單獨(dú)的休眠可以喚醒,下面是進(jìn)入深度休眠的程序,有沒有什么問題
void Deep_Sleep(void)
{
        //Disable Interrupts For 5 instructions
        asm("DISI #5");
        //Issue Unlock Sequence
        asm("MOV #0x55,W0");
        asm("MOV W0,NVMKEY");
        asm("MOV #0xAA,W1");
        asm("MOV W1, NVMKEY");
        asm("bset DSCON,#15");
        asm("nop");
        asm("nop");
        asm("nop");
        asm("pwrsav #0");
}






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1