Datasheet

MCP19111
DS22331A-page 120 2013 Microchip Technology Inc.
20.5 Interrupt-On-Change Registers
REGISTER 20-1: IOCA: INTERRUPT-ON-CHANGE PORTGPA REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
IOCA7 IOCA6 IOCA5 IOCA4 IOCA3 IOCA2 IOCA1 IOCA0
bit 7 bit 0
Legend:
R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-6 IOCA<7:6>: Interrupt-on-Change PORTGPA Register bits.
1 = Interrupt-on-change enabled on the pin.
0 = Interrupt-on-change disabled on the pin.
bit 5 IOCA<5>: Interrupt-on-Change PORTGPA Register bits
(1)
.
1 = Interrupt-on-change enabled on the pin.
0 = Interrupt-on-change disabled on the pin.
bit 4-0 IOCA<4:0>: Interrupt-on-Change PORTGPA Register bits.
1 = Interrupt-on-change enabled on the pin.
0 = Interrupt-on-change disabled on the pin.
Note 1: The Interrupt-on-change on GPA5 is disabled if GPA5 is configured as MCLR
.
REGISTER 20-2: IOCB: INTERRUPT-ON-CHANGE PORTGPB REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 U-0 R/W-0 R/W-0 R/W-0
IOCB7 IOCB6 IOCB5 IOCB4 IOCB2 IOCB1 IOCB0
bit 7 bit 0
Legend:
R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-4 IOCB<7:4>: Interrupt-on-Change PORTGPB Register bits.
1 = Interrupt-on-change enabled on the pin.
0 = Interrupt-on-change disabled on the pin.
bit 3 Unimplemented: Read as ‘0
bit 2-0 IOCB<2:0>: Interrupt-on-Change PORTGPB Register bits.
1 = Interrupt-on-change enabled on the pin.
0 = Interrupt-on-change disabled on the pin.
TABLE 20-1: SUMMARY OF REGISTERS ASSOCIATED WITH INTERRUPT-ON-CHANGE
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Register
on Page
ANSELA
————ANSA3ANSA2ANSA1ANSA0113
ANSELB
ANSB5 ANSB4 ANSB2 ANSB1 116
INTCON GIE PEIE
T0IE INTE IOCE T0IF INTF IOCF
94
IOCA IOCA7 IOCA6 IOCA5 IOCA4 IOCA3 IOCA2 IOCA1 IOCA0
120
IOCB IOCB7 IOCB6 IOCB5 IOCB4
IOCB2 IOCB1 IOCB0
120
TRISGPA TRISA7 TRISA6 TRISA5 TRISA4 TRISA3 TRISA2 TRISA1 TRISA0
112
TRISGPB
TRISB7 TRISB6 TRISB5 TRISB4
TRISB2 TRISB1 TRISB0 115
Legend: — = unimplemented locations read as ‘0’. Shaded cells are not used by interrupt-on-change.