![Microchip Technology PIC12F1501 Manual Download Page 120](http://html1.mh-extra.com/html/microchip-technology/pic12f1501/pic12f1501_manual_1785833120.webp)
2011-2015 Microchip Technology Inc.
DS40001609E-page 121
PIC16(L)F1508/9
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
—
—
IOCAP5
IOCAP4
IOCAP3
IOCAP2
IOCAP1
IOCAP0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
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 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 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
—
—
IOCAN5
IOCAN4
IOCAN3
IOCAN2
IOCAN1
IOCAN0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
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 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 disabled for the associated pin.
REGISTER 12-3:
IOCAF: INTERRUPT-ON-CHANGE PORTA FLAG REGISTER
U-0
U-0
R/W/HS-0/0
R/W/HS-0/0
R/W/HS-0/0
R/W/HS-0/0
R/W/HS-0/0
R/W/HS-0/0
—
—
IOCAF5
IOCAF4
IOCAF3
IOCAF2
IOCAF1
IOCAF0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
HS - Bit is set in hardware
bit 7-6
Unimplemented:
Read as ‘
0
’
bit 5-0
IOCAF<5:0>:
Interrupt-on-Change PORTA Flag bits
1
= An enabled change was detected on the associated pin.
Set when IOCAPx =
1
and a rising edge was detected on RAx, or when IOCANx =
1
and a falling edge was
detected on RAx.
0
= No change was detected, or the user cleared the detected change.