MCP23008-E/P Microchip Technology, MCP23008-E/P Datasheet

IC I/O EXPANDER I2C 8B 18DIP

MCP23008-E/P

Manufacturer Part Number
MCP23008-E/P
Description
IC I/O EXPANDER I2C 8B 18DIP
Manufacturer
Microchip Technology
Datasheets

Specifications of MCP23008-E/P

Package / Case
18-DIP (0.300", 7.62mm)
Interface
I²C
Number Of I /o
8
Interrupt Output
Yes
Frequency - Clock
1.7MHz
Voltage - Supply
1.8 V ~ 5.5 V
Operating Temperature
-40°C ~ 125°C
Mounting Type
Through Hole
Includes
POR
Logic Family
MCP23008
Propagation Delay Time
50 ns
Operating Supply Voltage
1.8 V to 5.5 V
Power Dissipation
700 mW
Operating Temperature Range
- 40 C to + 125 C
Input Voltage
1.8 V to 5.5 V
Logic Type
I/O Expander
Maximum Clock Frequency
10 MHz
Maximum Operating Frequency
1.7 MHz
Mounting Style
Through Hole
Output Current
25 mA
Output Voltage
1.8 V to 4.5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
GPIODM-KPLCD - BOARD DEMO LCD GPIO EXP KEYPAD
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP23008-E/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP23008-E/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Features
• 8-bit remote bidirectional I/O port
• High-speed I
• High-speed SPI interface (MCP23S08)
• Hardware address pins
• Configurable interrupt output pin
Block Diagram
© 2007 Microchip Technology Inc.
- I/O pins default to input
- 100 kHz
- 400 kHz
- 1.7 MHz
- 10 MHz
- Three for the MCP23008 to allow up to eight
- Two for the MCP23S08 to allow up to four
- Configurable as active-high, active-low or
devices on the bus
devices using the same chip-select
open-drain
MCP23S08
A1:A0
2
C™ interface (MCP23008)
8-Bit I/O Expander with Serial Interface
MCP23S08
RESET
MCP23008
SCK
A2:A0
SO
SDA
SCL
V
SI
V
INT
DD
SS
3
MCP23008/MCP23S08
Decode
Interrupt
POR
Logic
Serial
Interface
Configuration/
Serializer/
Deserializer
Registers
• Configurable interrupt source
• Polarity Inversion register to configure the polarity
• External reset input
• Low standby current: 1 µA (max.)
• Operating voltage:
Packages
• 18-pin PDIP (300 mil)
• 18-pin SOIC (300 mil)
• 20-pin SSOP
• 20-pin QFN
Control
Control
8
- Interrupt-on-change from configured defaults
of the input port data
- 1.8V to 5.5V @ -40°C to +85°C
- 2.7V to 5.5V @ -40°C to +85°C
- 4.5V to 5.5V @ -40°C to +125°C
or pin change
I
SPI @ 5 MHz
I
SPI @ 10 MHz
I
SPI @ 10 MHz
2
2
2
C @ 100 kHz
C @ 400 kHz
C @ 1.7 kHz
8
GPIO
DS21919E-page 1
GP0
GP1
GP2
GP3
GP4
GP5
GP6
GP7

Related parts for MCP23008-E/P

MCP23008-E/P Summary of contents

Page 1

... MHz • 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 ...

Page 2

... 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 GP2 SSOP GP7 18 GP6 17 GP5 16 GP4 15 GP3 14 GP2 13 GP1 12 GP0 11 N/C © 2007 Microchip Technology Inc. ...

Page 3

... Package Types: (Continued) PDIP/SOIC 1 18 SCK RESET INT RESET CS © 2007 Microchip Technology Inc. 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 ...

Page 4

... MCP23008/MCP23S08 NOTES: DS21919E-page 4 © 2007 Microchip Technology Inc. ...

Page 5

... I Hardware address input. Must be biased externally. I Hardware address input. Must be biased externally. I External reset input. Must be biased externally connect (MCP23008)/External chip select input (MCP23S08). O Interrupt output. Can be configured for active-high, active-low or open-drain. P Ground. I/O Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor ...

Page 6

... Figure 1-1. This sequence is followed by another control byte (includ- ing the START condition and ACK) with the R/W bit equal to a logic 1 (R/W = 1). The MCP23008 then transmits the data contained in the addressed register. The sequence is ended with the master generating a STOP or RESTART condition ...

Page 7

... The hardware address pins are used to determine the device address. To address a device, the correspond- ing address bits in the control byte must match the pin state. • MCP23008 has address pins A2, A1 and A0. • MCP23S08 has address pins A1 and A0. The pins must be biased externally. D ...

Page 8

... A1 and A0), with the read/ write bit filling out the control byte. Figure 1-3 shows the control byte format. 2 FIGURE 1-4: I C™ ADDRESSING REGISTERS Device Opcode The ACKs are provided by the MCP23008. FIGURE 1-5: SPI ADDRESSING REGISTERS R/W Device Opcode DS21919E-page 8 FIGURE 1-2: S ...

Page 9

... INT6 INTCAP 08 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 ...

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

... 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

... Note: 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^^ e ...

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

... Plastic DIP (300 mil Body), 18-Lead SO = Plastic SOIC (300 mil Body), 18-Lead SS = SSOP, (209 mil Body, 5.30 mm), 20-Lead © 2007 Microchip Technology Inc. MCP23008/MCP23S08 . Examples: a) MCP23008-E/P: b) MCP23008-E/SO: Extended Temp MCP23008T-E/SO: Tape and Reel, C™ Interface 2 C Interface d) MCP23008-E/SS: e) MCP23008T-E/SS: Tape and Reel, ...

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 ...

Related keywords