TI中文支持网
TI专业的中文技术问题搜集分享网站

MSP430F2418: 关于P1口的外部中断使用问题

Part Number:MSP430F2418

查阅手册得知,P1IFG位置1的条件是,对应的IE置1和GIE打开

我在程序调试中,发现没有配置对应的IE位为1,IFG接收到边沿也会置1

如上图,请问怎样才能让我没有配置IE的位 IFG就算检测到边沿也不置1

Susan Yang:

能否给出您的程序?另外请注意

Only transitions, not static levels, cause interrupts. If any PxIFGx flag becomes set during a Px interrupt service routine, or is set after the RETI instruction of a Px interrupt service routine is executed, the set PxIFGx flag generates another interrupt. This ensures that each transition is acknowledged.

赞(0)
未经允许不得转载:TI中文支持网 » MSP430F2418: 关于P1口的外部中断使用问题
分享到: 更多 (0)