MCP23017-E/ML
The MCP23017/MCP23S17 (MCP23X17) device family provides 16-bit, general purpose parallel I/O expansion for I2C bus or SPI applications. The two devices differ only in the serial interface:
• MCP23017 – I2C interface
• MCP23S17 – SPI interface
The MCP23X17 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 (IODIRA/B). The data for each input or output is kept in the corresponding input or output register. The polarity of the Input Port register can be inverted with the Polarity Inversion register. All registers can be read by the system master.
The 16-bit I/O port functionally consists of two 8-bit ports (PORTA and PORTB). The MCP23X17 can be configured to operate in the 8-bit or 16-bit modes via IOCON.BANK. There are two interrupt pins, INTA and INTB, that can be associated with their respective ports, or can be logically OR’ed together so that both pins will activate if either port causes an interrupt. The interrupt output can be configured to activate under two conditions (mutually exclusive):
1. When any input state differs from its corresponding Input Port register state. This is used to indicate to the system master that an input state has changed.
2. When an input state differs from a preconfigured register value (DEFVAL register).
The Interrupt Capture register captures port values at the time of the interrupt, thereby saving the condition that caused the interrupt. The Power-on Reset (POR) sets the registers to their default values and initializes the device state machine. The hardware address pins are used to determine the device address.
MCP23017/MCP23S17 (MCP23X17)系列器件为I2C总线或SPI应用提供16位通用并行I/O扩展。这两款设备的不同之处仅在于串行接口:
MCP 23017–I2C接口
MCP 23s 17–SPI接口
MCP23X17由多个8位配置寄存器组成,用于输入、输出和极性选择。通过写入I/O配置位(IODIRA/B ),系统主机可以将I/O作为输入或输出使能。每个输入或输出的数据保存在相应的输入或输出寄存器中。输入端口寄存器的极性可以通过极性反转寄存器反转。系统主机可以读取所有寄存器。
16位I/O端口在功能上由两个8位端口(PORTA和PORTB)组成。MCP23X17可以通过IOCON.BANK配置为8位或16位模式。有两个中断引脚,INTA和INTB,它们可以与各自的端口相关联,或者可以进行逻辑“或”运算,以便在任一端口引起中断时,两个引脚都将激活。中断输出可以配置为在两种情况下激活(互斥):
1.当任何输入状态与其对应的输入端口寄存器状态不同时。这用于向系统主设备指示输入状态已经改变。
2.当输入状态不同于预配置的寄存器值(DEFVAL寄存器)时。
中断捕获寄存器捕获中断时的端口值,从而保存导致中断的条件。上电复位(POR)将寄存器设置为默认值,并初始化器件状态机。硬件地址引脚用于确定设备地址。
Product Features 产品特性
16-bit input/output port expander with interrupt output
Cascadable for up to 8 devices on one bus
25mA sink/source capability per I/O
Supports 100kHz, 400kHz and 1.7MHz I2C™Compatible compatible modes
- 带中断输出的16位输入/输出端口扩展器
- 一条总线上最多可级联8个器件
- 每25mA吸电流/源电流能力
- 支持100kHz、400kHz和1.7MHz I2C兼容模式
MCP23017-E/ML
The MCP23017/MCP23S17 (MCP23X17) device family provides 16-bit, general purpose parallel I/O expansion for I2C bus or SPI applications. The two devices differ only in the serial interface:
• MCP23017 – I2C interface
• MCP23S17 – SPI interface
The MCP23X17 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 (IODIRA/B). The data for each input or output is kept in the corresponding input or output register. The polarity of the Input Port register can be inverted with the Polarity Inversion register. All registers can be read by the system master.
The 16-bit I/O port functionally consists of two 8-bit ports (PORTA and PORTB). The MCP23X17 can be configured to operate in the 8-bit or 16-bit modes via IOCON.BANK. There are two interrupt pins, INTA and INTB, that can be associated with their respective ports, or can be logically OR’ed together so that both pins will activate if either port causes an interrupt. The interrupt output can be configured to activate under two conditions (mutually exclusive):
1. When any input state differs from its corresponding Input Port register state. This is used to indicate to the system master that an input state has changed.
2. When an input state differs from a preconfigured register value (DEFVAL register).
The Interrupt Capture register captures port values at the time of the interrupt, thereby saving the condition that caused the interrupt. The Power-on Reset (POR) sets the registers to their default values and initializes the device state machine. The hardware address pins are used to determine the device address.
MCP23017/MCP23S17 (MCP23X17)系列器件为I2C总线或SPI应用提供16位通用并行I/O扩展。这两款设备的不同之处仅在于串行接口:
MCP 23017–I2C接口
MCP 23s 17–SPI接口
MCP23X17由多个8位配置寄存器组成,用于输入、输出和极性选择。通过写入I/O配置位(IODIRA/B ),系统主机可以将I/O作为输入或输出使能。每个输入或输出的数据保存在相应的输入或输出寄存器中。输入端口寄存器的极性可以通过极性反转寄存器反转。系统主机可以读取所有寄存器。
16位I/O端口在功能上由两个8位端口(PORTA和PORTB)组成。MCP23X17可以通过IOCON.BANK配置为8位或16位模式。有两个中断引脚,INTA和INTB,它们可以与各自的端口相关联,或者可以进行逻辑“或”运算,以便在任一端口引起中断时,两个引脚都将激活。中断输出可以配置为在两种情况下激活(互斥):
1.当任何输入状态与其对应的输入端口寄存器状态不同时。这用于向系统主设备指示输入状态已经改变。
2.当输入状态不同于预配置的寄存器值(DEFVAL寄存器)时。
中断捕获寄存器捕获中断时的端口值,从而保存导致中断的条件。上电复位(POR)将寄存器设置为默认值,并初始化器件状态机。硬件地址引脚用于确定设备地址。
Product Features 产品特性
16-bit input/output port expander with interrupt output
Cascadable for up to 8 devices on one bus
25mA sink/source capability per I/O
Supports 100kHz, 400kHz and 1.7MHz I2C™Compatible compatible modes
- 带中断输出的16位输入/输出端口扩展器
- 一条总线上最多可级联8个器件
- 每25mA吸电流/源电流能力
- 支持100kHz、400kHz和1.7MHz I2C兼容模式