Configure low-power sleep and wakeup sequences for RF alarm trigger without noise interruption
This commit is contained in:
@@ -194,9 +194,15 @@ void main(void)
|
||||
// Port0 中断服务函数 (由 isr_jump.asm 从向量 37 @ 0x012BH 跳转至此)
|
||||
void Port0_Isr(void) interrupt 13
|
||||
{
|
||||
EAXFR = 1;
|
||||
P0INTF = 0x00; // 清除 P0 端口中断悬挂标志
|
||||
P0INTE = 0x00; // 立即禁用,防止低电平保持期间反复触发
|
||||
}
|
||||
|
||||
// Port2 中断服务函数 (由 isr_jump.asm 从向量 39 @ 0x013BH 跳转至此)
|
||||
void Port2_Isr(void) interrupt 15
|
||||
{
|
||||
EAXFR = 1;
|
||||
P2INTF = 0x00; // 清除 P2 端口中断悬挂标志
|
||||
P2INTE = 0x00; // 立即禁用,防止低电平保持期间反复触发
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user