MCP23S08-E/ML Microchip Technology, MCP23S08-E/ML Datasheet
![IC, I/O EXPANDER, 8BIT, 10MHZ, QFN-20](/photos/6/64/66481/c04-126_ml_sml.jpg)
MCP23S08-E/ML
Specifications of MCP23S08-E/ML
Available stocks
Related parts for MCP23S08-E/ML
MCP23S08-E/ML Summary of contents
Page 1
... High-speed SPI interface (MCP23S08 MHz • Hardware address pins - Three for the MCP23008 to allow up to eight devices on the bus - Two for the MCP23S08 to allow up to four devices using the same chip-select • Configurable interrupt output pin - Configurable as active-high, active-low or open-drain ...
Page 2
... MCP23008/MCP23S08 Package Types PDIP/SOIC 1 18 SCL 2 17 SDA RESET INT RESET NC DS21919E-page 2 MCP23008 1 SCL SDA GP7 3 A2 GP6 4 A1 GP5 5 A0 GP4 6 RESET GP3 7 NC GP2 8 INT GP1 GP0 10 N/C QFN 1 15 GP6 2 14 GP5 MCP23008 3 13 GP4 4 12 GP3 5 11 ...
Page 3
... MCP23008/MCP23S08 MCP23S08 1 SCK GP7 3 SO GP6 4 A1 GP5 5 A0 GP4 6 RESET GP3 7 CS GP2 8 INT GP1 GP0 10 N/C QFN 1 15 GP6 2 14 GP5 MCP23S08 3 13 GP4 4 12 GP3 5 11 GP2 SSOP GP7 18 GP6 17 GP5 16 GP4 15 GP3 14 GP2 13 GP1 12 GP0 11 N/C DS21919E-page 3 ...
Page 4
... MCP23008/MCP23S08 NOTES: DS21919E-page 4 © 2007 Microchip Technology Inc. ...
Page 5
... MCP23008 – interface; three address pins • MCP23S08 – SPI interface; two address pins The MCP23X08 consists of multiple 8-bit configuration registers for input, output and polarity selection. The system master can enable the I/Os as either inputs or outputs by writing the I/O configuration bits ...
Page 6
... Serial Interface This block handles the functionality of the I (MCP23008) or SPI (MCP23S08) interface protocol. The MCP23X08 contains eleven registers that can be addressed through the serial interface block (Table 1-2): TABLE 1-2: REGISTER ADDRESSES ...
Page 7
... For sequential operations, instead of deselecting the device by raising CS, the master clocks the next byte pointed to by the address pointer. The sequence ends by the raising of CS. The MCP23S08 address pointer will roll over to address zero after reaching the last register address. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 ...
Page 8
... A1 and A0). Figure 1-2 shows the control byte format. 1.4.2 ADDRESSING SPI DEVICES (MCP23S08) The MCP23S08 is a slave SPI device. The slave 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 shows the control byte format ...
Page 9
... ICP7 ICP6 GPIO 09 GP7 GP6 OLAT 0A OL7 OL6 * Not used on the MCP23008. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 1.6 Configuration and Control Registers The Configuration and Control blocks contain the registers as shown in Table 1-3. bit 5 bit 4 bit 3 bit 2 IO5 IO4 IO3 ...
Page 10
... 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 1-1: IODIR – I/O DIRECTION REGISTER (ADDR 0x00) R/W-1 R/W-1 R/W-1 IO7 ...
Page 11
... IP7:IP0: These bits control the polarity inversion of the input pins <7:0> GPIO register bit will reflect the opposite logic state of the input pin GPIO register bit will reflect the same logic state of the input pin. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 R/W-0 R/W-0 R/W-0 ...
Page 12
... MCP23008/MCP23S08 1.6.3 INTERRUPT-ON-CHANGE CONTROL (GPINTEN) REGISTER The GPINTEN register controls the interrupt-on- change feature for each pin bit is set, the corresponding pin is enabled for interrupt-on-change. The DEFVAL and INTCON registers must also be configured if any pins are enabled for interrupt-on-change. REGISTER 1-3: GPINTEN – ...
Page 13
... DEF7:DEF0: These bits set the compare value for pins configured for interrupt-on-change from defaults <7:0>. Refer to INTCON. If the associated pin level is the opposite from the register bit, an interrupt occurs. Refer to INTCON and GPINTEN. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 R/W-0 R/W-0 R/W-0 DEF4 ...
Page 14
... MCP23008/MCP23S08 1.6.5 INTERRUPT CONTROL (INTCON) REGISTER The INTCON register controls how the associated pin value is compared for the interrupt-on-change feature bit is set, the corresponding I/O pin is compared against the associated bit in the DEFVAL register bit value is clear, the corresponding I/O pin is compared against the previous value ...
Page 15
... Microchip Technology Inc. MCP23008/MCP23S08 • The Hardware Address Enable (HAEN) control bit enables/disables the hardware address pins (A1, A0) on the MCP23S08. This bit is not used on the MCP23008. The address pins are always enabled on the MCP23008. • The Open-Drain (ODR) control bit enables/ disables the INT pin for open-drain configuration. • ...
Page 16
... MCP23008/MCP23S08 1.6.7 PULL-UP RESISTOR CONFIGURATION (GPPU) REGISTER The GPPU register controls the pull-up resistors for the port pins bit is set and the corresponding pin is configured as an input, the corresponding port pin is internally pulled up with a 100 kΩ resistor. REGISTER 1-7: GPPU – GPIO PULL-UP RESISTOR REGISTER (ADDR 0x06) ...
Page 17
... INT7:INT0: These bits reflect the interrupt condition on the port. Will reflect the change only if interrupts are enabled (GPINTEN) <7:0> Pin caused interrupt Interrupt not pending. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 Note: INTF will always reflect the pin(s) that have an interrupt condition. For example, one pin causes an interrupt to occur and is captured in INTCAP and INF ...
Page 18
... 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 register will remain unchanged until the interrupt is cleared via a read of INTCAP or GPIO. ...
Page 19
... W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7-0 GP7:GP0: These bits reflect the logic level on the pins <7:0> Logic-high Logic-low. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 R/W-0 R/W-0 R/W-0 GP4 GP3 GP2 U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared ...
Page 20
... MCP23008/MCP23S08 1.6.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 modify the pins configured as outputs. ...
Page 21
... The interrupt condition will remain as long as the condition exists, regardless if the INTAP or GPIO is read. See Figure 1-6 and Figure 1-7 for more information on interrupt operations. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 FIGURE 1-6: INTERRUPT-ON-PIN- CHANGE GPx INT ACTIVE ...
Page 22
... MCP23008/MCP23S08 NOTES: DS21919E-page 22 © 2007 Microchip Technology Inc. ...
Page 23
... This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 (except V )............................................................. -0. )...................................................................................................................... ± ...
Page 24
... MCP23008/MCP23S08 2.1 DC Characteristics Operating Conditions (unless otherwise indicated): 1.8V ≤ Characteristics 4.5V ≤ V Param Characteristic Sym No. D001 Supply Voltage V DD D002 V Start Voltage POR Ensure Power-on Reset D003 V Rise Rate Ensure Power-on Reset D004 Supply Current I DD D005 Standby current I DDS ...
Page 25
... FIGURE 2-1: LOAD CONDITIONS FOR DEVICE TIMING SPECIFICATIONS SCL and SDA pin MCP23008 FIGURE 2-2: RESET AND DEVICE RESET TIMER TIMING V DD RESET Internal RESET Output pin © 2007 Microchip Technology Inc. MCP23008/MCP23S08 V DD Pin 1 kΩ 135 DS21919E-page 25 ...
Page 26
... MCP23008/MCP23S08 TABLE 2-1: DEVICE RESET SPECIFICATIONS Operating Conditions (unless otherwise indicated): 1.8V ≤ Characteristics 4.5V ≤ V Param Characteristic No. 30 RESET Pulse Width (Low) 32 Device Active After RESET high 34 Output High-Impedance From RESET Low Note 1: This parameter is characterized, not 100% tested. 2 FIGURE 2-3: I C™ ...
Page 27
... MHz mode Note 1: This parameter is characterized, not 100% tested specified to be from 10 to 400 pF. B © 2007 Microchip Technology Inc. MCP23008/MCP23S08 Operating Conditions (unless otherwise indicated): 1.8V ≤ V ≤ 5.5V at -40°C ≤ T ≤ +85°C (I-Temp 4.5V ≤ V ≤ 5.5V at -40°C ≤ T ≤ ...
Page 28
... MCP23008/MCP23S08 2 TABLE 2-2: I C™ BUS DATA REQUIREMENTS (CONTINUED C™ AC Characteristics Param Characteristic No. 109 Output Valid From Clock: 100 kHz mode 400 kHz mode 1.7 MHz mode 110 Bus Free Time: 100 kHz mode 400 kHz mode 1.7 MHz mode Bus Capacitive Loading: 100 kHz and 400 kHz 1 ...
Page 29
... Note 1: This parameter is characterized, not 100% tested (max) when address pointer rolls over from address 0x0A to 0x00. V © 2007 Microchip Technology Inc. MCP23008/MCP23S08 13 don’t care Operating Conditions (unless otherwise indicated): 1.8V ≤ V ≤ 5.5V at -40°C ≤ T ≤ +85°C (I-Temp) ...
Page 30
... MCP23008/MCP23S08 TABLE 2-3: SPI INTERFACE AC CHARACTERISTICS (CONTINUED) SPI Interface AC Characteristics Param Characteristic No. 9 Clock Low Time 10 Clock Delay Time 11 Clock Enable Time (2) 12 Output Valid from Clock Low 13 Output Hold Time 14 Output Disable Time Note 1: This parameter is characterized, not 100% tested. ...
Page 31
... GP input change to register valid 53 IOC event to INT active Glitch Filter on GP Pins Note 1: This parameter is characterized, not 100% tested © 2007 Microchip Technology Inc. MCP23008/MCP23S08 Operating Conditions (unless otherwise indicated): 1.8V ≤ V ≤ 5.5V at -40°C ≤ T ≤ +85°C (I-Temp 4.5V ≤ V ≤ ...
Page 32
... MCP23008/MCP23S08 NOTES: DS21919E-page 32 © 2007 Microchip Technology Inc. ...
Page 33
... In the event the full Microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 Example: MCP23008-E/P 0634256 Example: MCP23008 E/SO 0634256 Example 23S08 E/ML 0637 256 Example: MCP23S08 E/SS XXXXXXXXXXXX 0634256 ) e 3 DS21919E-page 33 ...
Page 34
... MCP23008/MCP23S08 18-Lead Plastic Dual In-Line (P) – 300 mil Body [PDIP] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging N NOTE Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width ...
Page 35
... Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.15 mm per side. 4. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 ...
Page 36
... MCP23008/MCP23S08 20-Lead Plastic Quad Flat, No Lead Package (ML) – 4x4x0.9 mm Body [QFN] Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging D TOP VIEW A3 Number of Pins Pitch Overall Height Standoff Contact Thickness Overall Width Exposed Pad Width ...
Page 37
... Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.20 mm per side. 3. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 ...
Page 38
... MCP23008/MCP23S08 NOTES: DS21919E-page 38 © 2007 Microchip Technology Inc. ...
Page 39
... Added Hardware Address Enable (HAEN) bit to Table 1-3. 2. Section 1.6.6 “Configuration (IOCON) Regis- ter”. Added Hardware Address Enable (HAEN) bit to Register 1-6. Revision A (December 2004) • Original Release of this Document. © 2007 Microchip Technology Inc. MCP23008/MCP23S08 Read in information DS21919E-page 39 ...
Page 40
... MCP23008/MCP23S08 NOTES: DS21919E-page 40 © 2007 Microchip Technology Inc. ...
Page 41
... MCP23008-E/ML: a) MCP23S08-E/P: b) MCP23S08-E/SO: Extended Temp., c) MCP23S08T-E/SO: Tape and Reel, d) MCP23S08-E/SS: Extended Temp., e) MCP23S08T-E/SS: Tape and Reel, f) MCP23S08T-E/MF: Tape and Reel, Extended Temp., 18LD PDIP package. 18LD SOIC package. Extended Temp., 18LD SOIC package. Extended Temp., 20LD SSOP package. Extended Temp., 20LD SSOP package. ...
Page 42
... MCP23008/MCP23S08 NOTES: DS21919E-page 42 © 2007 Microchip Technology Inc. ...
Page 43
... PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...
Page 44
... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2007 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...