{"datasheetId":"ds_ad171507e6466176b2ee","chunkCount":112,"revision":"2026-11-09T20:01:10.433Z","source":"index","nextCursor":"49","chunks":[{"chunkId":"ds_ad171507e6466176b2ee-chunk-0001","chunkIndex":0,"heading":null,"headingPath":[],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0001"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0002","chunkIndex":1,"heading":"16-Bit I/O Expander with Serial Interface","headingPath":["16-Bit I/O Expander with Serial Interface"],"preview":"16 Bit I/O Expander with Serial Interface Features • AEC Q100 Qualified \\ 16 Bit Remote Bidirectional I/O Port (Pins GPA7, GPB7 are output only for MCP23017): \\ I/O pins default to input • High Speed I²C Interface (MCP23017): \\ 100 kHz \\ 40","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0002"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0003","chunkIndex":2,"heading":"Packages","headingPath":["16-Bit I/O Expander with Serial Interface","Packages"],"preview":"Packages • 28 pin QFN, 6 x 6 mm Body • 28 pin SOIC, Wide, 7.50 mm Body • 28 pin SPDIP, 300 mil Body • 28 pin SSOP, 5.30 mm Body SOIC SPDIP SSOP QFN $$ \\mathrm{GPB5} \\leftrightarrow 2 $$ $$ \\mathrm{GPB6} \\leftrightarrow 3 $$ $$ \\mathrm{GPB7}","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0003"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0004","chunkIndex":3,"heading":"MCP23017/MCP23S17","headingPath":["16-Bit I/O Expander with Serial Interface","MCP23017/MCP23S17"],"preview":"MCP23017/MCP23S17 Functional Block Diagram 1.0 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings † Ambient temperature under bias.... 40°C to +125°C Storage temperature.... 65°C to +150°C Voltage on V $ {DD}$ with respect to V $ {SS}$ ...","images":[{"path":"images/bf660f18044b7c24c998ca24fbc9c4f02235c721f12cc2acf8c462547c766369.jpg","name":"bf660f18044b7c24c998ca24fbc9c4f02235c721f12cc2acf8c462547c766369.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fbf660f18044b7c24c998ca24fbc9c4f02235c721f12cc2acf8c462547c766369.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0004"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0005","chunkIndex":4,"heading":"Absolute Maximum Ratings †","headingPath":["16-Bit I/O Expander with Serial Interface","Absolute Maximum Ratings †"],"preview":"$\\dagger$ Notice: Stresses above those listed under “Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in th","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0005"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0006","chunkIndex":5,"heading":"1.1 DC Characteristics","headingPath":["16-Bit I/O Expander with Serial Interface","1.1 DC Characteristics"],"preview":"Note 1: This parameter is characterized, not 100% tested. 1.2 AC Characteristics FIGURE 1 1: Load Conditions for device Timing Specifications. FIGURE 1 2: RESET and Device Reset Timer Timing. TABLE 1 2: DEVICE RESET SPECIFICATIONS","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0006"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0007","chunkIndex":6,"heading":"1.2 AC Characteristics","headingPath":["16-Bit I/O Expander with Serial Interface","1.2 AC Characteristics"],"preview":"FIGURE 1 3: $I^{2}C$ Bus Start/Stop Bits Timing. FIGURE 1 4: $I^{2}C$ Bus Data Timing. TABLE 1 3: I²C BUS DATA REQUIREMENTS","images":[{"path":"images/f0b7a76331c24321fcbec580d45edd5ff96a06aa8f62b4160ee2a74e4175f747.jpg","name":"f0b7a76331c24321fcbec580d45edd5ff96a06aa8f62b4160ee2a74e4175f747.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Ff0b7a76331c24321fcbec580d45edd5ff96a06aa8f62b4160ee2a74e4175f747.jpg"},{"path":"images/6acd9fe839a10a5a4c4c4c148da9fd1c22c8d203669578af092bab05cc7d5c94.jpg","name":"6acd9fe839a10a5a4c4c4c148da9fd1c22c8d203669578af092bab05cc7d5c94.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2F6acd9fe839a10a5a4c4c4c148da9fd1c22c8d203669578af092bab05cc7d5c94.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0007"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0008","chunkIndex":7,"heading":"1.2 AC Characteristics","headingPath":["16-Bit I/O Expander with Serial Interface","1.2 AC Characteristics"],"preview":"Note 1: This parameter is characterized, not 100% tested. 2: $C {B}$ is specified to be from 10 to 400 pF. TABLE 1 3: I²C BUS DATA REQUIREMENTS (CONTINUED)","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0008"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0009","chunkIndex":8,"heading":"1.2 AC Characteristics","headingPath":["16-Bit I/O Expander with Serial Interface","1.2 AC Characteristics"],"preview":"Note 1: This parameter is characterized, not 100% tested. 2: $C {B}$ is specified to be from 10 to 400 pF. FIGURE 1 5: SPI Input Timing. FIGURE 1 6: SPI Output Timing. TABLE 1 4: SPI INTERFACE REQUIREMENTS","images":[{"path":"images/da8c6e793031a95bbcc0d8f10276c2699504e624720e8f34b8d93e31f8ac27e1.jpg","name":"da8c6e793031a95bbcc0d8f10276c2699504e624720e8f34b8d93e31f8ac27e1.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fda8c6e793031a95bbcc0d8f10276c2699504e624720e8f34b8d93e31f8ac27e1.jpg"},{"path":"images/7cbcea0897b00c65198d5d217693f532567a9a604cde646dd81d026d935eb3aa.jpg","name":"7cbcea0897b00c65198d5d217693f532567a9a604cde646dd81d026d935eb3aa.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2F7cbcea0897b00c65198d5d217693f532567a9a604cde646dd81d026d935eb3aa.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0009"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0010","chunkIndex":9,"heading":"1.2 AC Characteristics","headingPath":["16-Bit I/O Expander with Serial Interface","1.2 AC Characteristics"],"preview":"Note 1: This parameter is characterized, not 100% tested. Note 1: This parameter is characterized, not 100% tested. FIGURE 1 7: GPIO and INT Timing. MCP23017/MCP23S17 TABLE 1 5: GP AND INT PINS REQUIREMENTS","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0010"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0011","chunkIndex":10,"heading":"MCP23017/MCP23S17","headingPath":["16-Bit I/O Expander with Serial Interface","MCP23017/MCP23S17"],"preview":"Note 1: This parameter is characterized, not 100% tested. 2.0 PIN DESCRIPTIONS The descriptions of the pins are listed in Table 2 1. TABLE 2 1: PINOUT DESCRIPTION","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0011"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0012","chunkIndex":11,"heading":"2.0 PIN DESCRIPTIONS","headingPath":["16-Bit I/O Expander with Serial Interface","2.0 PIN DESCRIPTIONS"],"preview":"3.0 DEVICE OVERVIEW MCP23017/MCP23S17 (MCP23X17) device family provides 16 bit, general purpose parallel I/O expansion for I²C bus or SPI applications. The two devices differ only in the serial interface: \\ MCP23017 – I $^{2}$ C interface \\","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0012"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0013","chunkIndex":12,"heading":"3.0 DEVICE OVERVIEW","headingPath":["16-Bit I/O Expander with Serial Interface","3.0 DEVICE OVERVIEW"],"preview":"1. When any input state differs from its corresponding Input Port register state. This is used to indicate to the system host that an input state has changed. 2. When an input state differs from a preconfigured register value (DEFVAL regist","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0013"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0014","chunkIndex":13,"heading":"3.1 Power-on Reset (POR)","headingPath":["16-Bit I/O Expander with Serial Interface","3.1 Power-on Reset (POR)"],"preview":"3.1 Power on Reset (POR) The on chip POR circuit holds the device in reset until $V {DD}$ has reached a high enough voltage to deactivate the POR circuit (i.e., release the device from reset). The maximum $V {DD}$ rise time is specified in","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0014"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0015","chunkIndex":14,"heading":"3.2 Serial Interface","headingPath":["16-Bit I/O Expander with Serial Interface","3.2 Serial Interface"],"preview":"3.2 Serial Interface This block handles the functionality of the I²C (MCP23017) or SPI (MCP23S17) interface protocol. MCP23X17 contains 22 individual registers (11 register pairs) that can be addressed through the Serial Interface block, as","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0015"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0016","chunkIndex":15,"heading":"3.2 Serial Interface","headingPath":["16-Bit I/O Expander with Serial Interface","3.2 Serial Interface"],"preview":"3.2.1 BYTE MODE AND SEQUENTIAL MODE MCP23X17 family has the ability to operate in Byte mode or Sequential mode (IOCON.SEQOP). Byte mode disables automatic Address Pointer incrementing. When operating in Byte mode, MCP23X17 family does not i","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0016"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0017","chunkIndex":16,"heading":"3.2.1 BYTE MODE AND SEQUENTIAL MODE","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.1 BYTE MODE AND SEQUENTIAL MODE"],"preview":"Sequential mode enables automatic address pointer incrementing. When operating in Sequential mode, MCP23X17 family increments its address counter after each byte during the data transfer. The Address Pointer automatically rolls over to addr","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0017"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0018","chunkIndex":17,"heading":"3.2.2 I²C INTERFACE","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.2 I²C INTERFACE"],"preview":"3.2.2 I²C INTERFACE 3.2.2.1 I²C Write Operation The I $^{2}$ C write operation includes the control byte and register address sequence, as shown in Figure 3 1. This sequence is followed by eight bits of data from the host and an Acknowledge","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0018"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0019","chunkIndex":18,"heading":"3.2.2.2 I²C Read Operation","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.2.2 I²C Read Operation"],"preview":"3.2.2.2 I²C Read Operation I²C Read operations include the control byte sequence, as shown in Figure 3 2. This sequence is followed by another control byte (including the Start condition and ACK) with the R/W bit set (R/W = 1). The MCP23017","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0019"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0020","chunkIndex":19,"heading":"3.2.2.3 I²C Sequential Write/Read","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.2.3 I²C Sequential Write/Read"],"preview":"3.2.2.3 I²C Sequential Write/Read For sequential operations (Write or Read), instead of transmitting a Stop or Restart condition after the data transfer, the host clocks the next byte pointed to by the address pointer (see Section 3.2.1 “By","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0020"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0021","chunkIndex":20,"heading":"3.2.3 SPI INTERFACE","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.3 SPI INTERFACE"],"preview":"3.2.3 SPI INTERFACE 3.2.3.1 SPI Write Operation The SPI write operation is started by lowering $\\overline{CS}$ . The Write command (client address with R/W bit cleared) is then clocked into the device. The opcode is followed by an address a","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0021"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0022","chunkIndex":21,"heading":"3.2.3.3 SPI Sequential Write/Read","headingPath":["16-Bit I/O Expander with Serial Interface","3.2.3.3 SPI Sequential Write/Read"],"preview":"3.2.3.3 SPI Sequential Write/Read For sequential operations, instead of deselecting the device by raising CS, the host clocks the next byte pointed to by the Address Pointer. (see Section 3.2.1 \"Byte Mode and Sequential Mode\" for details re","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0022"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0023","chunkIndex":22,"heading":"3.3.1 ADDRESSING I²C DEVICES (MCP23017)","headingPath":["16-Bit I/O Expander with Serial Interface","3.3.1 ADDRESSING I²C DEVICES (MCP23017)"],"preview":"3.3.1 ADDRESSING I²C DEVICES (MCP23017) MCP23017 is a client I $^{2}$ C interface device that supports 7 bit client addressing, with the read/write bit filling out the control byte. The client address contains four fixed bits and three user","images":[{"path":"images/e5cf5e99aff492268dee8dda84c6e05a888ee6a5d170c81cdf7f828aae10069c.jpg","name":"e5cf5e99aff492268dee8dda84c6e05a888ee6a5d170c81cdf7f828aae10069c.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fe5cf5e99aff492268dee8dda84c6e05a888ee6a5d170c81cdf7f828aae10069c.jpg"},{"path":"images/e5c36c631b7c9a66d4ecdda2d3114f500a8dbce1ae6b8bf50b5679db403239b3.jpg","name":"e5c36c631b7c9a66d4ecdda2d3114f500a8dbce1ae6b8bf50b5679db403239b3.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fe5c36c631b7c9a66d4ecdda2d3114f500a8dbce1ae6b8bf50b5679db403239b3.jpg"},{"path":"images/ca8d0858bf8762b7cda844ef5d0a59c875c5696c0c522b406cf30d234beceea2.jpg","name":"ca8d0858bf8762b7cda844ef5d0a59c875c5696c0c522b406cf30d234beceea2.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fca8d0858bf8762b7cda844ef5d0a59c875c5696c0c522b406cf30d234beceea2.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0023"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0024","chunkIndex":23,"heading":"3.3.2 ADDRESSING SPI DEVICES (MCP23S17)","headingPath":["16-Bit I/O Expander with Serial Interface","3.3.2 ADDRESSING SPI DEVICES (MCP23S17)"],"preview":"FIGURE 3 7: SPI Addressing Registers. 3.4 GPIO Port The GPIO module is a general purpose, 16 bit wide, bidirectional port that is functionally split into two 8 bit wide ports. The GPIO module contains the data ports (GPIOn), internal pull u","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0024"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0025","chunkIndex":24,"heading":"3.4 GPIO Port","headingPath":["16-Bit I/O Expander with Serial Interface","3.4 GPIO Port"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0025"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0026","chunkIndex":25,"heading":"3.4 GPIO Port","headingPath":["16-Bit I/O Expander with Serial Interface","3.4 GPIO Port"],"preview":"TABLE 3 3: SUMMARY OF REGISTERS ASSOCIATED WITH THE GPIO PORTS (BANK = 0)","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0026"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0027","chunkIndex":26,"heading":"3.4 GPIO Port","headingPath":["16-Bit I/O Expander with Serial Interface","3.4 GPIO Port"],"preview":"3.5 Configuration and Control Registers There are 21 registers associated with the MCP23X17, as shown in Tables 3 4 and 3 5. The two tables show the register mapping with the two BANK bit values. Ten registers are associated with PORTA and","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0027"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0028","chunkIndex":27,"heading":"3.5 Configuration and Control Registers","headingPath":["16-Bit I/O Expander with Serial Interface","3.5 Configuration and Control Registers"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0028"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0029","chunkIndex":28,"heading":"3.5 Configuration and Control Registers","headingPath":["16-Bit I/O Expander with Serial Interface","3.5 Configuration and Control Registers"],"preview":"TABLE 3 5: CONTROL REGISTER SUMMARY (IOCON.BANK = 0)","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0029"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0030","chunkIndex":29,"heading":"3.5 Configuration and Control Registers","headingPath":["16-Bit I/O Expander with Serial Interface","3.5 Configuration and Control Registers"],"preview":"3.5.1 I/O DIRECTION 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. IODIR: I/O DIRECTION REGISTER (ADDR 0x00)","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0030"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0031","chunkIndex":30,"heading":"3.5.2 INPUT POLARITY REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.2 INPUT POLARITY REGISTER"],"preview":"3.5.2 INPUT POLARITY REGISTER This register allows the user to configure the polarity on the corresponding GPIO port bits. If a bit is set, the corresponding GPIO register bit will reflect the inverted value on the pin. REGISTER 3 1: IPOL:","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0031"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0032","chunkIndex":31,"heading":"3.5.3 INTERRUPT-ON-CHANGE CONTROL REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.3 INTERRUPT-ON-CHANGE CONTROL REGISTER"],"preview":"3.5.3 INTERRUPT ON CHANGE CONTROL REGISTER The GPINTEN register controls the interrupt on change feature for each pin. If a bit is set, the corresponding pin is enabled for interrupt on change. The DEFVAL and INTCON registers must also be c","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0032"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0033","chunkIndex":32,"heading":"3.5.4 DEFAULT COMPARE REGISTER FOR INTERRUPT-ON-CHANGE","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.4 DEFAULT COMPARE REGISTER FOR INTERRUPT-ON-CHANGE"],"preview":"3.5.4 DEFAULT COMPARE 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, an opposite value on the associated pin wi","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0033"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0034","chunkIndex":33,"heading":"3.5.5 INTERRUPT CONTROL REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.5 INTERRUPT CONTROL REGISTER"],"preview":"3.5.5 INTERRUPT CONTROL REGISTER The INTCON register controls how the associated pin value is compared for the interrupt on change feature. If a bit is set, the corresponding I/O pin is compared against the associated bit in the DEFVAL regi","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0034"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0035","chunkIndex":34,"heading":"3.5.5 INTERRUPT CONTROL REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.5 INTERRUPT CONTROL REGISTER"],"preview":"0 = Pin value is compared against the previous pin value. Note 1: Refer to INTCON and GPINTEN. 3.5.6 CONFIGURATION REGISTER The IOCON register contains several bits for configuring the device: The BANK bit changes how the registers are mapp","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0035"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0036","chunkIndex":35,"heading":"3.5.6 CONFIGURATION REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.6 CONFIGURATION REGISTER"],"preview":"\\ Once the write completes, the internal address now points to 0Bh which is an invalid address when the BANK bit is set. For this reason, when changing the BANK bit, it is advised to only perform byte writes to this register. The MIRROR bit","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0036"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0037","chunkIndex":36,"heading":"3.5.6 CONFIGURATION REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.6 CONFIGURATION REGISTER"],"preview":"The Hardware Address Enable (HAEN) bit enables/disables hardware addressing on the MCP23S17 only. The address pins (A2, A1 and A0) must be externally biased, regardless of the HAEN bit value. If enabled (HAEN = 1), the device's hardware add","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0037"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0038","chunkIndex":37,"heading":"3.5.6 CONFIGURATION REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.6 CONFIGURATION REGISTER"],"preview":"bit 7 BANK: Controls how the registers are addressed 1 = The registers associated with each port are separated into different banks. 0 = The registers are in the same bank (addresses are sequential). bit 6 MIRROR: INT Pins Mirror bit 1 = Th","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0038"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0039","chunkIndex":38,"heading":"3.5.6 CONFIGURATION REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.6 CONFIGURATION REGISTER"],"preview":"Note 1: Address pins are always enabled on the MCP23017. 3.5.7 PULL UP RESISTOR CONFIGURATION REGISTER The GPPU register controls the pull up resistors for the port pins. If a bit is set and the corresponding pin is configured as an input,","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0039"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0040","chunkIndex":39,"heading":"3.5.8 INTERRUPT FLAG REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.8 INTERRUPT FLAG REGISTER"],"preview":"3.5.8 INTERRUPT FLAG REGISTER The INTF register reflects the interrupt condition on the port pins of any pin that is enabled for interrupts via the GPINTEN register. A set bit indicates that the associated pin caused the interrupt. This reg","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0040"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0041","chunkIndex":40,"heading":"3.5.9 INTERRUPT CAPTURED REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.9 INTERRUPT CAPTURED REGISTER"],"preview":"3.5.9 INTERRUPT CAPTURED 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 register remains unchanged until the interrup","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0041"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0042","chunkIndex":41,"heading":"3.5.10 PORT REGISTER","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.10 PORT REGISTER"],"preview":"3.5.10 PORT REGISTER The GPIO register reflects the value on the port. Reading from this register reads the port. Writing to this register modifies the Output Latch (OLAT) register. REGISTER 3 9: GPIO: GENERAL PURPOSE I/O PORT REGISTER (ADD","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0042"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0043","chunkIndex":42,"heading":"3.5.11 OUTPUT LATCH REGISTER (OLAT)","headingPath":["16-Bit I/O Expander with Serial Interface","3.5.11 OUTPUT LATCH REGISTER (OLAT)"],"preview":"3.5.11 OUTPUT LATCH REGISTER (OLAT) The OLAT register provides access to the output latches. A read from this register results in a read of the OLAT and not the port itself. A write to this register modifies the output latches that modifies","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0043"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0044","chunkIndex":43,"heading":"3.6 Interrupt Logic","headingPath":["16-Bit I/O Expander with Serial Interface","3.6 Interrupt Logic"],"preview":"3.6 Interrupt Logic If enabled, MCP23X17 activates the INTn interrupt output when one of the port pins changes state or when a pin does not match the preconfigured default. Each pin is individually configurable as follows: \\ Enable/disable","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0044"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0045","chunkIndex":44,"heading":"3.6.1 INTA AND INTB","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.1 INTA AND INTB"],"preview":"3.6.1 INTA AND INTB There are two interrupt pins: INTA and INTB. By default, INTA is associated with GPAn pins (PORTA) and INTB is associated with GPBn pins (PORTB). Each port has an independent signal which is cleared if its associated GPI","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0045"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0046","chunkIndex":45,"heading":"3.6.1.1 Mirroring the INT pins","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.1.1 Mirroring the INT pins"],"preview":"","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0046"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0047","chunkIndex":46,"heading":"3.6.2 IOC FROM PIN CHANGE","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.2 IOC FROM PIN CHANGE"],"preview":"3.6.2 IOC FROM PIN CHANGE If enabled, MCP23X17 generates an interrupt if a mismatch condition exists between the current port value and the previous port value. Only IOC enabled pins will be compared. Refer to Registers 3 2 and 3 4. 3.6.3 I","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0047"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0048","chunkIndex":47,"heading":"3.6.4 INTERRUPT OPERATION","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.4 INTERRUPT OPERATION"],"preview":"3.6.4 INTERRUPT OPERATION The INTn interrupt output can be configured as active low, active high or open drain via the IOCON register. Only those pins that are configured as an input (IODIR register) with Interrupt On Change (IOC) enabled (","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0048"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0049","chunkIndex":48,"heading":"3.6.4 INTERRUPT OPERATION","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.4 INTERRUPT OPERATION"],"preview":"Note: The value in INTCAP can be lost if GPIO is read before INTCAP while another IOC is pending. After reading GPIO, the interrupt will clear and then set due to the pending IOC, causing the INTCAP register to update. 3.6.5 INTERRUPT CONDI","images":[{"path":"images/135c7467ebfe3f3ac1dff25f91a496d39cd6d7446ca747911b8a4b87844d92d7.jpg","name":"135c7467ebfe3f3ac1dff25f91a496d39cd6d7446ca747911b8a4b87844d92d7.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2F135c7467ebfe3f3ac1dff25f91a496d39cd6d7446ca747911b8a4b87844d92d7.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0049"},{"chunkId":"ds_ad171507e6466176b2ee-chunk-0050","chunkIndex":49,"heading":"3.6.5 INTERRUPT CONDITIONS","headingPath":["16-Bit I/O Expander with Serial Interface","3.6.5 INTERRUPT CONDITIONS"],"preview":"FIGURE 3 8: Interrupt on Pin Change. FIGURE 3 9: Interrupt on Change from Register Default. 28 Lead QFN Example: 4.0 PACKAGING INFORMATION 4.1 Package Marking Information 28 Lead SOIC Example: Example:","images":[{"path":"images/a1a81bc12ae3ef15c3ab8fcd3b1d33a97f974f8846f326e729c04e63ac84f659.jpg","name":"a1a81bc12ae3ef15c3ab8fcd3b1d33a97f974f8846f326e729c04e63ac84f659.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fa1a81bc12ae3ef15c3ab8fcd3b1d33a97f974f8846f326e729c04e63ac84f659.jpg"},{"path":"images/67c0edfb22235a981d453c12f79db3d120499ede8e161178e2d0892cd04b5074.jpg","name":"67c0edfb22235a981d453c12f79db3d120499ede8e161178e2d0892cd04b5074.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2F67c0edfb22235a981d453c12f79db3d120499ede8e161178e2d0892cd04b5074.jpg"},{"path":"images/e88e04c612e0b9250d7effaa941c6cc94a2a6a4e05d7322e07c52147b625fd85.jpg","name":"e88e04c612e0b9250d7effaa941c6cc94a2a6a4e05d7322e07c52147b625fd85.jpg","mimeType":"image/jpeg","semanticKind":null,"semanticCaption":null,"viewUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/asset?path=images%2Fe88e04c612e0b9250d7effaa941c6cc94a2a6a4e05d7322e07c52147b625fd85.jpg"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_ad171507e6466176b2ee/chunks/ds_ad171507e6466176b2ee-chunk-0050"}]}