MCP23016-I/P Microchip Technology, MCP23016-I/P Datasheet

no-image

MCP23016-I/P

Manufacturer Part Number
MCP23016-I/P
Description
16-Bit I2C I/O Expander
Manufacturer
Microchip Technology
Datasheet
Features
• 16-bit remote bidirectional I/O port
• Fast I
• Three hardware address pins allow use of up to
• High-current drive capability per I/O: ±25 mA
• Open-drain interrupt output on input change
• Interrupt port capture register
• Internal Power-On Reset (POR)
• Polarity inversion register to configure the polarity
• Compatible with most microcontrollers
• Available temperature range:
CMOS Technology
• Operating Supply Voltage: 2.0V to 5.5V
• Low standby current
Packages
• 28-pin PDIP, 300 mil; 28-pin SOIC, 300 mil
• 28-pin SSOP, 209 mil; 28-pin QFN, 6x6 mm
Block Diagram
M
- 16 I/O pins default to 16 inputs
eight devices
of the input port data
- Industrial (I): -40°C to +85°C
2003 Microchip Technology Inc.
CLKIN
2
C™ bus clock frequency (0 - 400 kbits/s)
SDA
SCL
V
V
INT
TP
A0
A1
A2
DD
SS
Interface/
Protocol
Handler
I
Power-on
2
Clock
Gen
C™ Bus
Reset
Interrupt
Logic
8-Bit
I
Control
16-Bit I
2
C™ Bus
Address
Decoder
Configuration
Registers
2
C
I/O Expander
Write pulse
Read pulse
Package Types
Low Pass
16 Bits
PDIP, SOIC, SSOP
IARES
QFN
Filter
Control
MCP23016
GP1.0
GP1.1
GP1.2
GP1.3
GP1.4
GP1.5
GP1.6
GP1.7
GP1.2
GP1.3
GP1.4
CLK
SCL
CLK
V
Vss
INT
V
INT
TP
TP
SS
SS
Port
I/O
1
2
3
4
5
6
7
28
8 9
• 1
2
3
4
5
6
7
8
9
10
11
12
13
14
MCP23016
27
26
1011
25
121314
24
23
28
27
26
25
24
23
22
21
20
19
18
17
16
15
GP0.0 to GP0.7
GP1.0 to GP1.7
22
21
20
19
18
17
16
15
DS20090B-page 1
GP0.7
GP0.6
GP0.5
GP0.4
GP0.3
GP0.2
GP0.1
GP0.0
V
V
A2
A1
A0
SDA
DD
SS
GP0.3
GP0.2
GP0.1
GP0.0
V
V
A2
DD
SS

Related parts for MCP23016-I/P

MCP23016-I/P Summary of contents

Page 1

... GP0 GP0 GP0 SDA GP0.3 GP0 GP0.1 MCP23016 GP0 1011 121314 GP0.0 to GP0.7 GP1.0 to GP1.7 DS20090B-page 1 ...

Page 2

... MCP23016 NOTES: DS20090B-page 2 2003 Microchip Technology Inc. ...

Page 3

... I/Os are needed for ACPI, power switches, sensors, push buttons, LEDs and so on. The MCP23016 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. The data for each input or output is kept in the corresponding 1 ...

Page 4

... V , temperature and process variation. See DD Table 2-4 for details (T , parameter 3). PWRT 1.4 Clock Generator The MCP23016 uses an external RC circuit to determine the internal clock speed. The user must connect R and C to the MCP23016, as shown in Figure 1-1. FIGURE 1-1: CLOCK CONFIGURATION Internal Clock EXT CLK ...

Page 5

... IOD1.3 IOD1.2 ICP0.5 ICP0.4 ICP0.3 ICP0.2 ICP1.5 ICP1.4 ICP1.3 ICP1.2 — — — — — — — — MCP23016 Value on Bit 1 Bit 0 POR GP0.1 GP0.0 0000 0000 GP1.1 GP0.0 0000 0000 OL0.1 OL0.0 0000 0000 OL1.1 OL1.0 0000 0000 IGP0.1 IGP0.0 0000 0000 IGP1 ...

Page 6

... MCP23016 1.7.1 DATA PORT REGISTERS Two registers provide access to the two GPIO ports: • GP0 (provides access to data port GP0) • GP1 (provides access to data port GP1) A read from this register provides status on pins of these ports. A write to these registers will modify the output latch registers (OLAT0, OLAT1) and data output ...

Page 7

... Bit is set ‘0’ = Bit is cleared R/W-0 R/W-0 R/W-0 R/W-0 OL1.5 OL1.4 OL1.3 OL1 Writable bit U = Unimplemented bit, read as ‘0’ ‘1’ = Bit is set ‘0’ = Bit is cleared MCP23016 R/W-0 R/W-0 OL0.1 OL0.0 bit Bit is unknown R/W-0 R/W-0 OL1.1 OL1.0 bit Bit is unknown DS20090B-page 7 ...

Page 8

... MCP23016 1.7.3 INPUT POLARITY REGISTERS These registers allow the user to configure the polarity of the input port data (GP0 and GP1 bit in this reg- ister is set, the corresponding input port (GPn) data bit polarity will be inverted. • IPOL0 (controls the polarity of GP0) • ...

Page 9

... Bit is set ‘0’ = Bit is cleared R/W-1 R/W-1 R/W-1 R/W-1 IOD1.5 IOD1.4 IOD1.3 IOD1 Writable bit U = Unimplemented bit, read as ‘0’ ‘1’ = Bit is set ‘0’ = Bit is cleared MCP23016 R/W-1 R/W-1 IOD0.1 IOD0.0 bit Bit is unknown R/W-1 R/W-1 IOD1.1 IOD1.0 bit Bit is unknown DS20090B-page 9 ...

Page 10

... MCP23016 1.7.5 INTERRUPT CAPTURE REGISTERS Two registers contain the value of the port that generated the interrupt: • INTCAP0 contains the value of GP0 at time of GP0 change interrupt • INTCAP1 contains the value of GP1 at time of GP1 change interrupt These registers are ‘read-only’ registers (A write to these registers is ignored) ...

Page 11

... IOCON1 is a shadow register for IOCON0. Access to IOCON1 results in access to IOCON0. 2003 Microchip Technology Inc. U-0 U-0 U-0 U-0 — — — — Writable bit U = Unimplemented bit, read as ‘0’ ‘1’ = Bit is set ‘0’ = Bit is cleared MCP23016 U-0 R/W-0 — IARES bit Bit is unknown DS20090B-page 11 ...

Page 12

... I C bus and GPIO. 1.9 Interrupt Logic The MCP23016 asserts the open-drain interrupt output (INT) low when one of the port pins changes state. Only those pins that are configured as an input can cause an interrupt. Pins defined as an output have no effect on INT ...

Page 13

... WRITING THE REGISTERS To write to a MCP23016 register, the Master I needs to follow the requirements, as illustrated in Figure 1-3. First, the device is selected by sending the slave address and setting the R/W bit to logic ‘0’. The command byte is sent after the address and determines which register will be written. Table 1-3 shows the relationship of the command byte and register ...

Page 14

... MCP23016 FIGURE 1-4: WRITE TO CONFIGURATION REGISTERS (CASE 2) DS20090B-page 14 FIGURE 1-5: WRITE TO OUTPUT PORTS 2003 Microchip Technology Inc. ...

Page 15

... READING THE REGISTERS To read a MCP23016 register, the Master needs to follow the requirements shown in Figure 1-6. First, the device is selected by sending the slave address and setting the R/W bit to logic ‘0’. The command byte is sent after the address and determines which register will be read. A restart condition is generated and the device address is sent again with the R/W bit set to logic ‘ ...

Page 16

... MCP23016 FIGURE 1-7: READ FROM INPUT PORTS (CASE 1) DS20090B-page 16 2003 Microchip Technology Inc. ...

Page 17

... FIGURE 1-8: READ FROM INPUT PORTS (CASE 2) 2003 Microchip Technology Inc. MCP23016 DS20090B-page 17 ...

Page 18

... MCP23016 NOTES: DS20090B-page 18 2003 Microchip Technology Inc. ...

Page 19

... 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. 2003 Microchip Technology Inc. ......................................................................................... -0. ....................................................................................................... DD > ................................................................................................ MCP23016 + 0.3V DS20090B-page 19 ...

Page 20

... MCP23016 2.1 DC Characteristics TABLE 2-1: DC CHARACTERISTICS DC CHARACTERISTICS Param Characteristic No. D001 Supply Voltage D002 Standby Current D003 Standby Current Input Low Voltage I/O ports D004 TTL buffer D004A D005 Schmitt Trigger buffer Input High Voltage I/O ports D006 TTL buffer D006A D007 Schmitt Trigger buffer Input Leakage Current ...

Page 21

... Symbol Characteristic No Power-up Timer Period PWRT † Data in "Typ" column is at 5V, +25°C unless otherwise stated. These parameters are for design guidance only and are not tested. 2003 Microchip Technology Inc. MCP23016 1 Min Typ† Max Units 100 — — ns Minimum time where a V transition from 5 ...

Page 22

... MCP23016 2 FIGURE 2- BUS START/STOP BITS TIMING SCL 91 90 SDA START Condition 2 TABLE 2- BUS START/STOP BITS REQUIREMENTS Param Symbol Characteristic No START condition SU STA Setup time START condition HD STA Hold time STOP condition SU STO Setup time STOP condition ...

Page 23

... FIGURE 2- BUS DATA TIMING 103 SCL 90 91 SDA In 109 SDA Out 2003 Microchip Technology Inc. 100 101 106 107 111 109 MCP23016 102 92 110 DS20090B-page 23 ...

Page 24

... MCP23016 2 TABLE 2- BUS DATA REQUIREMENTS Param Symbol Characteristic No. 100 T Clock High Time HIGH 101 T Clock Low Time LOW 102 T SDA and SCL Rise R Time 103 T SDA and SCL Fall F Time START Condition SU STA Setup Time START Condition HD STA ...

Page 25

... MCP23016 Conditions MHz IARES = MHz IARES = MHz IARES = MHz IARES = MHz MHz DS20090B-page 25 ...

Page 26

... MCP23016 FIGURE 2-5: GP0 AND GP1 PORT TIMINGS DS20090B-page 26 2003 Microchip Technology Inc. ...

Page 27

... Standard marking consists of Microchip part number, year code, week code, and traceability code. Please check with your Microchip Sales Office. 2003 Microchip Technology Inc. MCP23016 Example: MCP23016-I/SP 0317017 Example: MCP23016-I/SO 0310017 Example: MCP23016 -I/SS 0320017 Example: 1 MCP23016 -I/ML 0310017 DS20090B-page 27 ...

Page 28

... MCP23016 28-Lead Skinny Plastic Dual In-line (SP) – 300 mil (PDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width Overall Length Tip to Seating Plane Lead Thickness ...

Page 29

... A2 .088 .091 .094 A1 .004 .008 .012 E .394 .407 .420 E1 .288 .295 .299 D .695 .704 .712 h .010 .020 .029 L .016 .033 .050 .009 .011 .013 B .014 .017 .020 MCP23016 A2 MILLIMETERS MIN NOM MAX 28 1.27 2.36 2.50 2.64 2.24 2.31 2.39 0.10 0.20 0.30 10.01 10.34 10.67 7.32 7.49 7.59 17.65 17.87 18.08 0.25 0.50 0.74 0.41 0.84 1. 0.23 0.28 0.33 0.36 0.42 0. ...

Page 30

... MCP23016 28-Lead Plastic Shrink Small Outline (SS) – 209 mil, 5.30 mm (SSOP Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Overall Length Foot Length Lead Thickness Foot Angle Lead Width Mold Draft Angle Top ...

Page 31

... BSC E1 .226 BSC E2 .140 .146 .152 D .236 BSC D1 .226 BSC D2 .140 .146 .152 B .009 .011 .014 L .020 .024 .030 R .005 .007 .010 Q .012 .016 .026 CH .009 .017 .024 12 MCP23016 MILLIMETERS* MIN NOM MAX 28 0.65 BSC 0.85 1.00 0.65 0.80 0.00 0.01 0.05 0.20 REF. 6.00 BSC 5.75 BSC 3.55 3.70 3.85 6.00 BSC 5.75 BSC 3.55 3.70 3.85 0.23 0.28 0.35 0.50 0.60 0.75 ...

Page 32

... MCP23016 28-Lead Plastic Quad Flat No Leads Package (ML) 6x6 mm Body (QFN) (Continued SOLDER MASK Dimension Limits Pitch Pad Width Pad Length Pad to Solder Mask *Controlling Parameter Drawing No. C04-2114 DS20090B-page 32 B Units INCHES MIN NOM MAX p .026 BSC B .009 .011 .014 L .020 ...

Page 33

... APPENDIX A: REVISION HISTORY Revision A (December 2002) Original data sheet for MCP23016 device. Revision B (September 2003) 1. Addition of Output Low Voltage section to Table 2-1 in Electrical Characteristics. 2. Addition of Output High Voltage section to Table 2-1 in Electrical Characteristics. 2003 Microchip Technology Inc. MCP23016 DS20090B-page 33 ...

Page 34

... MCP23016 NOTES: DS20090B-page 34 2003 Microchip Technology Inc. ...

Page 35

... Register on our web site (www.microchip.com/cn) to receive the most current information on our products. 2003 Microchip Technology Inc. Examples I/O Expander a) MCP23016 MCP23016-I/P: Industrial Temperature, PDIP package. MCP23016-I/SO: Industrial Temperature, SOIC package. MCP23016-I/SS: Industrial Temperature, SOIC package. MCP23016-I/ML: Industrial Temperature, QFN package. DS20090B-page 35 ...

Page 36

... MCP23016 NOTES: DS20090B-page 36 2003 Microchip Technology Inc. ...

Page 37

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2003, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system certification for its worldwide headquarters, ...

Page 38

... Italy Via Quasimodo, 12 20025 Legnano (MI) Milan, Italy Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands Biesbosch 14 NL-5152 SC Drunen, Netherlands Tel: 31-416-690399 Fax: 31-416-690340 United Kingdom 505 Eskdale Road Winnersh Triangle Wokingham Berkshire, England RG41 5TU Tel: 44-118-921-5869 Fax: 44-118-921-5820 07/28/03 2003 Microchip Technology Inc. ...

Related keywords