EEWORLDEEWORLDEEWORLD

Part Number

Search

MCP23X08/17

Description
Unique Features of the MCP23X08/17 GPIO Expanders
File Size255KB,10 Pages
ManufacturerMicrochip
Websitehttps://www.microchip.com
Download Datasheet Compare View All

MCP23X08/17 Overview

Unique Features of the MCP23X08/17 GPIO Expanders

AN1043
Unique Features of the MCP23X08/17 GPIO Expanders
Author:
Pat Richards
Microchip Technology Inc.
I/O PORT DESCRIPTION
The I/O port is highly configurable for maximum
flexibility. Figure 1 is a simplified block diagram of an
I/O port pin. The port can either drive logic levels on the
pin, or read logic levels from the pad. The level on the
pad can be read at any time, regardless if the pin is
configured as an input or an output.
The IODIR register controls the direction of the pins
(input or output). More specifically, the IODIR registers
simply enables/disables the output driver. When the
driver is activated (IODIR = 0), the pad is driven to the
state in the latch register (OLAT). When deactivated
(IODIR = 1), the driver is high impedance.
The I/O port has multiple, individual configurations.
Each pin can
INTRODUCTION
GPIO expanders provide easy I/O expansion using
standard serial interfaces. GPIO products are used to
increase the I/O on an MCU or provide remote I/O
using a serial interface.
This application note discusses the feature set and use
of the MCP23X08/17 (8-bit and 16-bit) GPIO Expand-
ers.
The MCP23X08 are 8-bit GPIO Expanders:
• MCP23008: I
2
C™ Interface
• MCP23S08: SPI Interface
The MCP23X17 are 16-bit GPIO Expanders:
• MCP23017: I
2
C Interface
• MCP23S17: SPI Interface
The functions and features of the MCP23X08 and
MCP23X17 are basically the same, except where
otherwise noted.
be configured as an input. The output driver is
FEATURES
This application note discusses some of the features of
the MCP23X08/17 and how they may be used in an
application:
• I/O Port Description
• 8/16-Bit Mode (MCP23X17 only)
• Interrupt Features
- Mapping Interrupts
- Mirroring Interrupts (MCP23X17 only)
- Servicing Interrupts
• Internal Address Pointer Control
• Hardware Address Pin on SPI
disabled (high impedance)
be configured as an output. The output driver
is enabled and the value in the latch is driven on
the pin.
enable a weak pull-up resistor
emulate an open-drain configuration. This is
accomplished by clearing the output latch (OLAT)
bit to a zero and using the direction register
(IODIR) to set the level on the pin. A pull-up
resistor is required to pull the pin to voltage when
the pin is an input
- To drive a 0: configure the pin as an output
(IODIR = 0) so the port drives whatever is in
OLAT (logic 0 in this case)
- To float a 1: set the pin as an input
(IODIR = 1). The output driver is disabled
and the pull-up resistor pulls the pin to a
logic 1
©
2006 Microchip Technology Inc.
DS01043A-page 1

MCP23X08/17 Related Products

MCP23X08/17 AN1043
Description Unique Features of the MCP23X08/17 GPIO Expanders Unique Features of the MCP23X08/17 GPIO Expanders
ADI's latest Chinese technical information
[align=left][font=宋体]Whichever one you need, take it yourself[/font]~ezchina.analog.com/thread/17635[/align][align=left] [/align][align=left][font=宋体]E-BOOK[/align][align=left][list] [*]ADI[font=宋体]Re...
鲁宾汗 Analog electronics
Problems with LPC2214
I am using lpc2214. I read the Chinese document published by Zhou Ligong. It says that when P1, P2, and P3 are used as input , the level can be pulled up by the built-in pull-up resistor . I think thi...
smallwind1 ARM Technology
How to solve the problem of program not being able to download normally when debugging MSP430 chip under IAR
As the title says, I recently encountered a problem that the connection and burning of the MSP430 chip failed after installing IAR, as shown in the figure below. Later, I tried many methods and found ...
hansonhe Microcontroller MCU
NXP launches crossover processor i.MX RT1170, with a main frequency of up to 1G. What do you think? Is it fun? Is it easy to use?
Recently, NXP launched a new processor, i.MX RT1170, which is said to have a main frequency of up to 1G! What does that mean?The main frequency of general MCUs, such as the familiar ST MCUs, is genera...
okhxyyo Special Edition for Assessment Centres
Using TMS320C54x C Compiler
[size=4]TMS320C54x applications are generally more complex, so it would be very difficult and inefficient to program completely in assembly language. However, C language has become a trend in microcon...
灞波儿奔 DSP and ARM Processors
EEWORLD Download Center May Recommended Books---Illustrated Electronic Innovation Production Book Album
[i=s]This post was last edited by tiankai001 on 2014-5-14 11:12[/i] [align=center][color=#000][size=5] Illustrated Electronic Innovation Production Book Album[/size][/color][/align] [size=5][color=#00...
tiankai001 Download Centre

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Robot
development
community

Index Files: 2723  490  300  859  261  55  10  7  18  6 
Datasheet   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Room 1530, 15th Floor, Building B, No. 18 Zhongguancun Street, Haidian District, Beijing Telephone: (010) 82350740 Postal Code: 100190
Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号