11.4.10 Change Notice (CN)
The Change Notification pins provide devices the ability to generate
interrupt requests to the processor in response to a Change-of-State (COS) on selected
input pins (corresponding TRISx bits must be = 1
).
The enabled pin values are compared with the values sampled during the last read operation of the designated PORTx register. If the pin value is different from the last value read, a mismatch condition is generated. The mismatch condition can occur on any of the enabled input pins. The mismatches are “ORed” together to provide a single interrupt-on-change signal. The enabled pins are sampled on every internal system clock cycle, SYSCLK.