Datasheet
数据手册 > 接口,芯片 > Microchip > MCP23017-E/SS 数据手册PDF > MCP23017-E/SS 应用笔记 第 1/12 页
MCP23017-E/SS
¥ 14.03
百芯的价格

MCP23017-E/SS 应用笔记 - Microchip

  • 制造商:
    Microchip
  • 分类:
    接口,芯片
  • 封装
    SSOP-28
  • 描述:
    MICROCHIP MCP23017-E/SS I/O Expander, 16Bit, 1.7MHz, I2C, Serial, 4.5V, 5.5V, SSOP
更新时间: 2024-06-27 23:17:04 (UTC+8)

MCP23017-E/SS 应用笔记

页码:/12页
下载 PDF
重新加载
下载
© 2007 Microchip Technology Inc. DS01081A-page 1
AN1081
INTRODUCTION
This application note discusses interfacing a 4x4 matrix
keypad with MCP23X08 8-Bit GPIO Expander. This
application note references the MCP23X08/17 GPIO
Expander Keypad/LCD Demo Board (GPIODM-
KPLCD).
GPIO Expanders provide easy I/O expansion using
standard serial interfaces such as I
2
C™ and SPI. They
are especially useful in applications where pin count is
limited on the microcontroller unit (MCU) or if remote
inputs / outputs (I/O’s) are needed. It is best to think of
an 8-bit GPIO Expander like adding another 8-bit wide
digital port to the MCU.
The MCP23X08 8-Bit GPIO Expanders family consists
of two (2) devices which are similar, except for their
serial interfaces:
MCP23008 - I
2
C
MCP23S08 - SPI
This application note does not detail all of the features
of the MCP23X08. Refer to the MCP23008/MCP23S08
Data Sheet, “8-Bit I/O Expander with Serial Interface”
(DS21919) for more information.
FEATURE DESCRIPTIONS
The MCP23X08 devices have several features that
make them ideal for controlling a 4x4 matrix keypad.
These features have been broken down into two main
groups:
1. The ports input and output characteristics.
2. The interrupt-on-change feature, which is an
important aspect of the key scan method used.
Input and Output Characteristics
There are three (3) registers that control the port pins
input and output characteristics that need to be
manipulated:
GPIO Pull-Up Resistor Register (GPPU): The
GPPU register controls the individually selectable
internal 100 kΩ pull-up resistors. When set, the
pull-up resistor is enabled.
I/O Direction Register (IODIR): The IODIR
register controls the direction of the port pins. A
high on the corresponding bit configures the pin
as an input and a low configures it as an output.
General Purpose I/O Port Register (GPIO): The
GPIO register is the data port of the MCP23X08.
Reading from this register reads the state of the
port pins. Writing to the GPIO register will write
that value to the output latches for each pin. Also,
reading of GPIO unlocks the Interrupt Capture
Register (INTCAP) and deactivates the interrupt
pin (INT), which will be explained in detail later.
Interrupt-On-Change Feature
The MCP23X08 devices have one interrupt output pin
(INT), which, if enabled, will activate when an input pin
(GP7-GP0) changes state. This is known as Interrupt-
on-change and can be configured to function with one
of the following options:
1. If the state of the pin changes from the current
state. This option is useful for monitoring a pin
where anytime the state of the pin is changed,
an action needs to be taken. For example, if the
state of the pin switches from high to low, an
interrupt will occur. Assuming the interrupt is
serviced (cleared) while the pin is low, when the
pin changes back to a high state another
interrupt will occur. This is a useful option for
many applications, but is not desired for this
one.
2. If the pin changes state as compared to a pre-
configured default value in the Default Value
Register (DEFVAL). This option is used for the
key scan which this application note discusses.
An interrupt will occur if the pin is in an opposite
state as compared to a pre-configured default
input value. For example, if the default value
(configured in DEFVAL) is set high, and assum-
ing the pin’s idle state is high, once the corre-
sponding pin changes state from high to low an
interrupt will occur. The interrupt condition will
stay active as long as the input pin remains in
the low state. Once the input pin returns to a
high state and the INTCAP or GPIO register is
read the interrupt will clear.
Author: Mike Curran
Microchip Technology Inc.
Interfacing a 4x4 Matrix Keypad with an
8-Bit GPIO Expander

MCP23017-E/SS 数据手册 PDF

MCP23017-E/SS 数据手册
Microchip
43 页, 821 KB
MCP23017-E/SS 其它数据手册
Microchip
48 页, 637 KB
MCP23017-E/SS 应用笔记
Microchip
12 页, 479 KB
MCP23017-E/SS 产品修订记录
Microchip
2 页, 111 KB
MCP23017-E/SS 产品目录
Microchip
24 页, 11224 KB
MCP23017-E/SS 其他参考文件
Microchip
1 页, 151 KB

MCP23017 数据手册 PDF

MCP23017-E/SO
数据手册
Microchip
I/O Expander, 16Bit, 1.7MHz, I2C, Serial, 1.8V, 5.5V, SOIC
MCP23017-E/SS
数据手册
Microchip
MICROCHIP MCP23017-E/SS I/O Expander, 16Bit, 1.7MHz, I2C, Serial, 4.5V, 5.5V, SSOP
MCP23017-E/ML
数据手册
Microchip
MICROCHIP MCP23017-E/ML I/O Expander, 16Bit, 1.7MHz, I2C, 1.8V, 5.5V, QFN
MCP23017T-E/SS
数据手册
Microchip
I2C GPIO Expander 1700kHz 5.5V 28Pin SSOP T/R
MCP23017T-E/SO
数据手册
Microchip
I2C GPIO Expander 1700kHz 5.5V 28Pin SOIC W T/R
MCP23017-E/SP
数据手册
Microchip
I/O Expander, 16Bit, 1.7MHz, I2C, Serial, 1.8V, 5.5V, DIP
MCP23017T-E/ML
数据手册
Microchip
MCP23017 Series 5.5V 1.7MHz SMT 16Bit I2C I/O Expander - QFN-28
MCP23017-E/SSVAO
数据手册
Microchip
Interface- Serial Peripheralsl
MCP23017T-E/SP
数据手册
Microchip
16Bit I/O Expander with Serial Interface
MCP23017-E/ML
数据手册
Micrel
Datasheet 搜索
搜索
百芯智造数据库涵盖1亿多个数据手册,每天更新超过5,000个PDF文件。
相关文档: MCP23017 数据手册
在线联系我们
黄经理 - 百芯智造销售经理在线,5 分钟前
您的邮箱 *
消息 *
发送