{"datasheetId":"ds_f495d8763bbdc3bf93bb","chunkCount":94,"revision":"2026-11-09T19:57:55.012Z","source":"index","nextCursor":"49","chunks":[{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0001","chunkIndex":0,"heading":"MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)"],"preview":"MCP23008/MCP23S08 8 Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019) MCP23008 (I2C) and MCP23S08 (SPI) 8 bit remote bidirectional I/O expanders with configurable interrupt output, 1.8 V to 5.","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0001"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0002","chunkIndex":1,"heading":"Page 1","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 1"],"preview":"Page 1 Page 1: Front page: features (I2C 100 kHz/400 kHz/1.7 MHz, 1.8 5.5 V), package list and block diagram ```text MCP23008/MCP23S08 8 Bit I/O Expander with Serial Interface Features • Configurable Interrupt Source Interrupt on change fro","images":[{"path":"images/page-001.png","name":"page-001.png","mimeType":"image/png","semanticKind":"block_diagram","semanticCaption":"MCP23008/MCP23S08 functional block diagram","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-001.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0002"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0003","chunkIndex":2,"heading":"Page 1","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 1"],"preview":"10 MHz I2C at 100 kHz • Hardware Address Pins SPI at 5 MHz Three for the MCP23008 to allow up to eight 2.7V to 5.5V at 40°C to +85°C devices on the bus I2C at 400 kHz Two for the MCP23S08 to allow up to four SPI at 10 MHz devices using the","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0003"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0004","chunkIndex":3,"heading":"Page 1","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 1"],"preview":"SO MCP23008 SCL Serial Serializer/ GP0 SDA Interface Deserializer 8 GP1 MCP23S08 GP2 3 GP3 A1:A0 A2:A0 Decode GPIO GP4 Control GP5 RESET GP6 INT Interrupt GP7 Logic 8 VDD POR Configuration/","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0004"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0005","chunkIndex":4,"heading":"Page 1","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 1"],"preview":"Control VSS Registers  2004 2019 Microchip Technology Inc. DS20001919F page 1 Page 2 Page 2: Package Types: MCP23008 18 lead PDIP/SOIC pinout (top view) and 20 lead SSOP/QFN pinouts text MCP23008/MCP23S08 Package Types MCP23008 PDIP/SOIC S","images":[{"path":"images/page-002.png","name":"page-002.png","mimeType":"image/png","semanticKind":"package_drawing","semanticCaption":"MCP23008 package pin diagrams","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-002.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0005"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0006","chunkIndex":5,"heading":"Page 2","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 2"],"preview":"4 17 GP5 MCP23008 A1 MCP23008 A1 4 15 GP5 A0 5 16 GP4 A0 5 14 GP4 RESET 6 15 GP3 RESET 6 13 GP3 NC 7 14 GP2 NC 7 12 GP2 INT 8 13 GP1 INT 8 11 GP1 9 12","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0006"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0007","chunkIndex":6,"heading":"Page 2","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 2"],"preview":"VSS GP0 VSS 9 10 GP0 10 11 N/C N/C QFN GP7 SCL SDA VDD VSS 20 19 18 17 16","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0007"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0008","chunkIndex":7,"heading":"Page 2","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 2"],"preview":"A2 1 15 GP6 A1 2 14 GP5 A0 3 MCP23008 13 GP4 RESET 4 12 GP3 NC 5 11 GP2 10 7 6 8 9 N/C N/C GP0 GP1 INT","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0008"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0009","chunkIndex":8,"heading":"Page 2","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 2"],"preview":" 2004 2019 Microchip Technology Inc. DS20001919F page 2 Page 3 text MCP23008/MCP23S08 Package Types: (Continued) PDIP/SOIC MCP23S08 SSOP 1 18 VDD SCK 1 20 VDD SCK 2 17 GP7 SI 2 19 GP7 SI 3 16 GP6 SO 3 18 GP6 SO MCP23S08 A1 4 17 GP5 MCP23S0","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0009"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0010","chunkIndex":9,"heading":"Page 3","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 3"],"preview":"A0 5 16 GP4 A0 5 14 GP4 RESET 6 15 GP3 RESET 6 13 GP3 CS 7 14 GP2 CS 7 12 GP2 13 INT 8 GP1 INT 8 11 GP1 VSS 9 12 GP0 VSS 9 10 GP0 10 11 N/C N/C QFN","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0010"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0011","chunkIndex":10,"heading":"Page 3","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 3"],"preview":"GP7 SCK VDD VSS SI 20 19 18 17 SO 1 16 15 GP6 A1 2 14 GP5 A0 3 MCP23S08 13 GP4 RESET 4 12 GP3 CS 5 11 GP2 10","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0011"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0012","chunkIndex":11,"heading":"Page 3","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 3"],"preview":"7 6 8 9 N/C N/C GP0 GP1 INT  2004 2019 Microchip Technology Inc. DS20001919F page 3 ```","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0012"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0013","chunkIndex":12,"heading":"Page 4","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 4"],"preview":"Page 4 Page 4: Table 1 1 pinout description (PDIP/SOIC, QFN and SSOP pin numbers and functions) ```text MCP23008/MCP23S08 1.0 DEVICE OVERVIEW The interrupt output can be configured to activate under two conditions (mutually exclusive): The","images":[{"path":"images/page-004.png","name":"page-004.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"Pinout description table for MCP23008/MCP23S08","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-004.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0013"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0014","chunkIndex":13,"heading":"Page 4","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 4"],"preview":"• MCP23008 – I2C interface; three address pins 2. When an input state differs from a preconfigured • MCP23S08 – SPI interface; two address pins register value (DEFVAL register). The MCP23X08 consists of multiple 8 bit Configuration The Inte","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0014"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0015","chunkIndex":14,"heading":"Page 4","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 4"],"preview":"TABLE 1 1: PINOUT DESCRIPTION Pin PDIP/ Pin QFN SSOP Function Name SOIC Type SCL/SCK 1 19 1 I Serial clock input. SDA/SI 2 20 2 I/O Serial data I/O (MCP23008)/Serial data input (MCP23S08). A2/SO 3 1 3 I/O Hardware address input (MCP23008)/","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0015"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0016","chunkIndex":15,"heading":"Page 4","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 4"],"preview":"open drain. VSS 9 17 9 P Ground. GP0 10 9 12 I/O Bidirectional I/O pin. Can be enabled for interrupt on change and/or internal weak pull up resistor. GP1 11 10 13 I/O Bidirectional I/O pin. Can be enabled for interrupt on change and/or inte","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0016"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0017","chunkIndex":16,"heading":"Page 4","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 4"],"preview":"GP5 15 14 17 I/O Bidirectional I/O pin. Can be enabled for interrupt on change and/or internal weak pull up resistor. GP6 16 15 18 I/O Bidirectional I/O pin. Can be enabled for interrupt on change and/or internal weak pull up resistor. GP7","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0017"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0018","chunkIndex":17,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"Page 5 Page 5: Table 1 2 register addresses, power on reset and I2C write/read operation ```text MCP23008/MCP23S08 1.2 Power on Reset (POR) 1.3.2 I2C INTERFACE The on chip POR circuit holds the device in Reset until 1.3.2.1 I2C Write Operat","images":[{"path":"images/page-005.png","name":"page-005.png","mimeType":"image/png","semanticKind":"register_table","semanticCaption":"Register address map for MCP23008/MCP23S08","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-005.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0018"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0019","chunkIndex":18,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"ensure proper operation. Data is written to the MCP23008 after every byte transfer. If a STOP or RESTART condition is generated during a data transfer, the data will not be 1.3 Serial Interface written to the MCP23008. This block handles th","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0019"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0020","chunkIndex":19,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"sequence is followed by another control byte (includ 01h IPOL ing the START condition and ACK) with the R/W bit 02h GPINTEN equal to a logic ‘1’ (R/W = 1). The MCP23008 then 03h DEFVAL transmits the data contained in the addressed register.","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0020"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0021","chunkIndex":20,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"0Ah OLAT by the Address Pointer (see Section 1.3.1 “Sequen tial Operation Bit” for details regarding sequential operation control). 1.3.1 SEQUENTIAL OPERATION BIT The sequence ends with the master sending a STOP or The Sequential Operation","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0021"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0022","chunkIndex":21,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"is clocked. 1.3.3.1 SPI Write Operation When operating in Byte mode (IOCON.SEQOP = 1), The SPI Write operation is started by lowering CS. The the MCP23X08 does not increment its address Write command (slave address with R/W bit cleared) is","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0022"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0023","chunkIndex":22,"heading":"Page 5","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 5"],"preview":"out of the device.  2004 2019 Microchip Technology Inc. DS20001919F page 5 Page 6 Page 6: Figure 1 1 MCP23008 I2C device protocol text MCP23008/MCP23S08 FIGURE 1 1: MCP23008 I2C DEVICE PROTOCOL S START SR RESTART S OP W ADDR DIN .... DIN P","images":[{"path":"images/page-006.png","name":"page-006.png","mimeType":"image/png","semanticKind":"timing_diagram","semanticCaption":"MCP23008 I2C device protocol sequences","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-006.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0023"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0024","chunkIndex":23,"heading":"Page 6","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 6"],"preview":"S OP R DOUT .... DOUT P SR OP R DOUT .... DOUT P SR OP W ADDR DIN .... DIN P P Byte and Sequential Write Byte S OP W ADDR DIN P Sequential S OP W ADDR DIN .... DIN P Byte and Sequential Read Byte S OP W SR OP R DOUT P Sequential S OP W SR O","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0024"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0025","chunkIndex":24,"heading":"Page 6","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 6"],"preview":"1.3.3.3 SPI Sequential Write/Read 1.4 Hardware Address Decoder For sequential operations, instead of deselecting the The hardware address pins are used to determine the device by raising CS, the master clocks the next byte device address. T","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0025"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0026","chunkIndex":25,"heading":"Page 7","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 7"],"preview":"Page 7 Page 7: Figures 1 2 to 1 5: I2C control byte format 0100 A2 A1 A0 R/W and addressing registers ```text MCP23008/MCP23S08 1.4.1 ADDRESSING I2C DEVICES FIGURE 1 2: I2C CONTROL BYTE (MCP23008) FORMAT The MCP23008 is a slave I2C device t","images":[{"path":"images/page-007.png","name":"page-007.png","mimeType":"image/png","semanticKind":"timing_diagram","semanticCaption":"I2C and SPI control byte and addressing formats","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-007.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0026"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0027","chunkIndex":26,"heading":"Page 7","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 7"],"preview":"R/W = 0 = write The MCP23S08 is a slave SPI device. The slave R/W = 1 = read address contains five fixed bits and two user defined hardware address bits (pins A1 and A0), with the read/write bit filling out the control byte. Figure 1 3 FIGU","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0027"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0028","chunkIndex":27,"heading":"Page 7","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 7"],"preview":"FIGURE 1 4: I2C ADDRESSING REGISTERS S 0 1 0 0 A2 A1 A0 0 ACK A7 A6 A5 A4 A3 A2 A1 A0 ACK R/W = 0 Device Opcode Register Address The ACKs are provided by the MCP23008. FIGURE 1 5: SPI ADDRESSING REGISTERS CS 0 1 0 0 0 A1 A0 R/W A7 A6 A5 A4","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0028"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0029","chunkIndex":28,"heading":"Page 8","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 8"],"preview":"Page 8 Page 8: Table 1 3 configuration and control registers with POR/RST values ```text MCP23008/MCP23S08 1.5 GPIO Port 1.6 Configuration and Control The GPIO module contains the data port (GPIO), Registers internal pull up resistors and t","images":[{"path":"images/page-008.png","name":"page-008.png","mimeType":"image/png","semanticKind":"register_table","semanticCaption":"MCP23008/MCP23S08 configuration and control register map","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-008.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0029"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0030","chunkIndex":29,"heading":"Page 8","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 8"],"preview":"Register Address POR/RST bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Name (hex) value IODIR 00 IO7 IO6 IO5 IO4 IO3 IO2 IO1 IO0 1111 1111 IPOL 01 IP7 IP6 IP5 IP4 IP3 IP2 IP1 IP0 0000 0000 GPINTEN 02 GPINT7 GPINT6 GPINT5 GPINT4 GPINT3 GPI","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0030"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0031","chunkIndex":30,"heading":"Page 8","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 8"],"preview":"INTF 07 INT7 INT6 INT5 INT4 INT3 INT2 INT1 INTO 0000 0000 INTCAP 08 ICP7 ICP6 ICP5 ICP4 ICP3 ICP2 ICP1 ICP0 0000 0000 GPIO 09 GP7 GP6 GP5 GP4 GP3 GP2 GP1 GP0 0000 0000 OLAT 0A OL7 OL6 OL5 OL4 OL3 OL2 OL1 OL0 0000 0000 Not used on the MCP230","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0031"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0032","chunkIndex":31,"heading":"Page 9","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 9"],"preview":"Page 9 ```text MCP23008/MCP23S08 1.6.1 I/O DIRECTION (IODIR) REGISTER Controls the direction of the data I/O. When a bit is set, the corresponding pin becomes an input. When a bit is clear, the corresponding pin becomes an output. REGISTER","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0032"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0033","chunkIndex":32,"heading":"Page 9","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 9"],"preview":" 2004 2019 Microchip Technology Inc. DS20001919F page 9 Page 10 text MCP23008/MCP23S08 1.6.2 INPUT POLARITY (IPOL) REGISTER The IPOL register allows the user to configure the polarity on the corresponding GPIO port bits. If a bit is set, t","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0033"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0034","chunkIndex":33,"heading":"Page 10","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 10"],"preview":"bit 7 0 IP7:IP0: These bits control the polarity inversion of the input pins [7:0] 1 = GPIO register bit will reflect the opposite logic state of the input pin 0 = GPIO register bit will reflect the same logic state of the input pin  2004","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0034"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0035","chunkIndex":34,"heading":"Page 11","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 11"],"preview":"bit 7 bit 0 Legend: R = Readable bit W = Writable 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 0 GPINT7:GPINT0: General Purpose I/O Interrupt on Change [7:0] 1 = Enab","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0035"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0036","chunkIndex":35,"heading":"Page 12","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 12"],"preview":"Page 12 ```text MCP23008/MCP23S08 1.6.4 DEFAULT COMPARE (DEFVAL) REGISTER FOR INTERRUPT ON CHANGE The default comparison value is configured in the DEFVAL register. If enabled (via GPINTEN and INTCON) to compare against the DEFVAL register,","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0036"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0037","chunkIndex":36,"heading":"Page 12","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 12"],"preview":"If the associated pin level is the opposite from the register bit, an interrupt occurs. Refer to INTCON and GPINTEN.  2004 2019 Microchip Technology Inc. DS20001919F page 12 Page 13 text MCP23008/MCP23S08 1.6.5 INTERRUPT CONTROL (INTCON) R","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0037"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0038","chunkIndex":37,"heading":"Page 13","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 13"],"preview":"R = Readable bit W = Writable 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 0 IOC7:IOC0: These bits control how the associated pin value is compared for interrupt on c","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0038"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0039","chunkIndex":38,"heading":"Page 14","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 14"],"preview":"Page 14 ```text MCP23008/MCP23S08 1.6.6 CONFIGURATION (IOCON) • The Hardware Address Enable (HAEN) control bit REGISTER enables/disables the hardware address pins (A1, A0) on the MCP23S08. This bit is not used on the The IOCON register cont","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0039"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0040","chunkIndex":39,"heading":"Page 14","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 14"],"preview":"• The Interrupt Polarity (INTPOL) control bit sets each byte is clocked during a serial transfer. This the polarity of the INT pin. This bit is functional feature is useful when it is desired to continuously only when the ODR bit is cleared","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0040"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0041","chunkIndex":40,"heading":"Page 14","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 14"],"preview":"bit 7 bit 0 Legend: R = Readable bit W = Writable 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 Unimplemented: Read as ‘0’ bit 5 SEQOP: Sequential Operation Mode 1 =","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0041"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0042","chunkIndex":41,"heading":"Page 14","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 14"],"preview":"0 = Active driver output (INTPOL bit sets the polarity) bit 1 INTPOL: This bit sets the polarity of the INT output pin 1 = Active high 0 = Active low bit 0 Unimplemented: Read as ‘0’  2004 2019 Microchip Technology Inc. DS20001919F page 14","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0042"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0043","chunkIndex":42,"heading":"Page 15","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 15"],"preview":"bit 7 bit 0 Legend: R = Readable bit W = Writable 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 0 PU7:PU0: These bits control the weak pull up resistors on each pin (w","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0043"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0044","chunkIndex":43,"heading":"Page 16","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 16"],"preview":"Page 16 ```text MCP23008/MCP23S08 1.6.8 INTERRUPT FLAG (INTF) Note: INTF will always reflect the pin(s) that REGISTER have an interrupt condition. For example, The INTF register reflects the interrupt condition on the one pin causes an inte","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0044"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0045","chunkIndex":44,"heading":"Page 16","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 16"],"preview":"R 0 R 0 R 0 R 0 R 0 R 0 R 0 R 0 INT7 INT6 INT5 INT4 INT3 INT2 INT1 INT0 bit 7 bit 0 Legend: R = Readable bit W = Writable 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","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0045"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0046","chunkIndex":45,"heading":"Page 17","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 17"],"preview":"Page 17 ```text MCP23008/MCP23S08 1.6.9 INTERRUPT CAPTURE (INTCAP) REGISTER The INTCAP register captures the GPIO port value at the time the interrupt occurred. The register is ‘read only’ and is updated only when an interrupt occurs. The r","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0046"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0047","chunkIndex":46,"heading":"Page 17","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 17"],"preview":"bit 7 0 ICP7:ICP0: These bits reflect the logic level on the PORT pins at the time of interrupt due to pin change [7:0] 1 = Logic high 0 = Logic low  2004 2019 Microchip Technology Inc. DS20001919F page 17 Page 18 text MCP23008/MCP23S08 1.","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0047"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0048","chunkIndex":47,"heading":"Page 18","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 18"],"preview":"n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7 0 GP7:GP0: These bits reflect the logic level on the pins [7:0] 1 = Logic high 0 = Logic low  2004 2019 Microchip Technology Inc. DS20001919F page 18 Page 19 t","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0048"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0049","chunkIndex":48,"heading":"Page 19","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 19"],"preview":"R = Readable bit W = Writable 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 0 OL7:OL0: These bits reflect the logic level on the output latch [7:0] 1 = Logic high 0 =","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0049"},{"chunkId":"ds_f495d8763bbdc3bf93bb-chunk-0050","chunkIndex":49,"heading":"Page 20","headingPath":["MCP23008/MCP23S08 8-Bit I/O Expander with Serial Interface data sheet (Microchip DS20001919F, Revision F, March 2019)","Page 20"],"preview":"Page 20 Page 20: Figures 1 6 and 1 7 interrupt on pin change and interrupt on change from register default ```text MCP23008/MCP23S08 1.7 Interrupt Logic FIGURE 1 7: INTERRUPT ON CHANGE FROM REGISTER The interrupt output pin will activate if","images":[{"path":"images/page-020.png","name":"page-020.png","mimeType":"image/png","semanticKind":"timing_diagram","semanticCaption":"Interrupt-on-pin-change and interrupt-on-change-from-register-default timing","viewUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/asset?path=images%2Fpage-020.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_f495d8763bbdc3bf93bb/chunks/ds_f495d8763bbdc3bf93bb-chunk-0050"}]}