Problem Resolution:
Hi,
You can use MPLAB SM tool to simulate interrupt-on-change function on PORTB.
The user, in the interrupt service routine can clear the interrupt in the following manner:
a) Any read or write of PORTB. This will end the mismatch condition.
b) Clear flag bit RBIF.
这是官方的回答,看来确实是没有读的问题:
Problem Resolution:
Hi,
You can use MPLAB SM tool to simulate interrupt-on-change function on PORTB.
The user, in the interrupt service routine can clear the interrupt in the following manner:
a) Any read or write of PORTB. This will end the mismatch condition.
b) Clear flag bit RBIF.
一周热门 更多>