09.08.2013 Views

MCP23008/MCP23S08 - Microchip

MCP23008/MCP23S08 - Microchip

MCP23008/MCP23S08 - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MCP23008</strong>/<strong>MCP23S08</strong><br />

1.6.5 INTERRUPT CONTROL (INTCON)<br />

REGISTER<br />

The INTCON register controls how the associated pin<br />

value is compared for the interrupt-on-change feature.<br />

If a bit is set, the corresponding I/O pin is compared<br />

against the associated bit in the DEFVAL register. If a<br />

bit value is clear, the corresponding I/O pin is compared<br />

against the previous value.<br />

REGISTER 1-5: INTCON – INTERRUPT-ON-CHANGE CONTROL REGISTER (ADDR 0x04)<br />

R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0<br />

IOC7 IOC6 IOC5 IOC4 IOC3 IOC2 IOC1 IOC0<br />

bit 7 bit 0<br />

Legend:<br />

R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’<br />

-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown<br />

bit 7-0 IOC7:IOC0: These bits control how the associated pin value is compared for interrupt-on-change<br />

<br />

1 = Controls how the associated pin value is compared for interrupt-on-change.<br />

0 = Pin value is compared against the previous pin value.<br />

Refer to INTCON and GPINTEN.<br />

DS21919E-page 14 © 2007 <strong>Microchip</strong> Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!