电子工程世界电子工程世界电子工程世界

关键词

搜索

型号

搜索

AN1043

产品描述Unique Features of the MCP23X08/17 GPIO Expanders
文件大小255KB,共10页
制造商Microchip(微芯科技)
官网地址https://www.microchip.com
下载文档 选型对比 全文预览

AN1043概述

Unique Features of the MCP23X08/17 GPIO Expanders

文档预览

下载PDF文档
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

AN1043相似产品对比

AN1043 MCP23X08/17
描述 Unique Features of the MCP23X08/17 GPIO Expanders Unique Features of the MCP23X08/17 GPIO Expanders
夏宇文verilog经典教程
28782...
number007cool FPGA/CPLD
第一次找工作面试就遇到培训机构
本帖最后由 fjjjnk1234 于 2016-10-9 22:34 编辑 今年六月份毕业,想回老家找工作,因为有点事耽误了两三个月,十一之前刚在招聘网站上投的简历。十一假期结束8号就收到一个公司的电话,在这 ......
fjjjnk1234 工作这点儿事
ccs5.4 JTAG 菊花链的配置
请问大家配置过ccs5.4 的菊花链么,我现在两片570LS1227采用的是这种接法,可是按照网上的一个视频教程配置(《以28335为例,CCS5.4下新建工程,配置两片DSP菊花链视频》),仿真器却始终无法连接 ......
luoam2008 微控制器 MCU
【C2000使用经验】不要频繁切换数据页
C28对数据的操作是要分页的。在同一页的数据操作将处理很快,而跨页的操作需要加入相当的处理。 下面以实例来说明之。 先给个C2000的页划分图片: 193485 ......
dontium 微控制器 MCU
一种微波相位测试的方法‘
一种微波相位测试的方法 本文提出了一种微波相位测试的新方法,这种方法只需一只魔T,一只可变移相器和一只功率检测器。它具有简单、准确等优点文章对这种测试方法与其它方法行了比较 ......
取个名字真麻烦 测试/测量
求一个 电源组 常用的过零检测电路
本帖最后由 paulhyde 于 2014-9-15 03:30 编辑 求一个 电源组 常用的过零检测电路 ...
HZLDIANZI 电子竞赛

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程 索引文件: 309  2434  919  234  705  7  49  19  5  15 

器件索引   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

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved