This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2540 PM2 中断无法唤醒



hi 各位好:

我现在做进、出 睡眠的测试。

halPwrMgtMode = HAL_SLEEP_TIMER; //进入PM2 睡眠

void halSleepSetTimer( uint32 sleepTimer, uint32 timeout )
{
HAL_SLEEP_TIMER_DISABLE_INT();

// compute sleep timer compare value
sleepTimer += timeout;

// subtract the processing time spent in function halSleep()
sleepTimer -= HAL_SLEEP_ADJ_TICKS;

// set sleep timer compare; ST0 must be written last
ST2 = ((uint8 *)&sleepTimer)[UINT32_NDX2];
ST1 = ((uint8 *)&sleepTimer)[UINT32_NDX1];
ST0 = ((uint8 *)&sleepTimer)[UINT32_NDX0];

HAL_SLEEP_TIMER_CLEAR_INT();
HAL_SLEEP_TIMER_DISABLE_INT();

return;
}

使用P0.1 引脚(如上图1)Si按钮,想用中断唤醒睡眠(p0.1我已经设置成上升沿触发中断)。

当进入PM2 睡眠后,按下SI按钮,无法从睡眠中唤醒,但是可以进入P0.1的中断函数。

请问:如上所述是什么问题?