Datasheet

2013-2015 Microchip Technology Inc. DS40001723D-page 121
PIC12(L)F1571/2
12.6 Register Definitions: Interrupt-On-Change Control
REGISTER 12-1: IOCAP: INTERRUPT-ON-CHANGE PORTA POSITIVE EDGE REGISTER
U-0 U-0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0
—IOCAP<5:0>
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit
u = Bit is unchanged x = Bit is unknown U = Unimplemented bit, read as ‘0’
‘1’ = Bit is set ‘0’ = Bit is cleared -n/n = Value at POR and BOR/Value at all other Resets
bit 7-6 Unimplemented: Read as ‘0
bit 5-0 IOCAP<5:0>: Interrupt-On-Change PORTA Positive Edge Enable bits
1 = Interrupt-On-Change is enabled on the pin for a positive going edge; IOCAFx bit and IOCIF flag
will be set upon detecting an edge
0 = Interrupt-On-Change is disabled for the associated pin
REGISTER 12-2: IOCAN: INTERRUPT-ON-CHANGE PORTA NEGATIVE EDGE REGISTER
U-0 U-0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0
—IOCAN<5:0>
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit
u = Bit is unchanged x = Bit is unknown U = Unimplemented bit, read as ‘0’
‘1’ = Bit is set ‘0’ = Bit is cleared -n/n = Value at POR and BOR/Value at all other Resets
bit 7-6 Unimplemented: Read as ‘0
bit 5-0 IOCAN<5:0>: Interrupt-On-Change PORTA Negative Edge Enable bits
1 = Interrupt-On-Change is enabled on the pin for a negative going edge; IOCAFx bit and IOCIF flag
will be set upon detecting an edge.
0 = Interrupt-On-Change is disabled for the associated pin