The MCP23017/MCP23S17 (MCP23X17) (CJMCU-2317) device family provides 16-bit, general-purpose parallel I/O expansion for I²C bus or SPI applications. The two devices differ only in the serial interface:
The MCP23X17 contains multiple 8-bit configuration registers for input, output, and polarity selection. The system master can set I/Os as inputs or outputs by writing to the I/O configuration bits (IODIRA/B).
The data for each input or output is stored in the corresponding register. The polarity of the Input Port register can be reversed using the Polarity Inversion register. The system master can read all registers.
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.
Operating voltage: 1.8V to 5.5V
Voltage on Vdd with respect to Vss: -0.3V to +5.5V
Communication interface: I²C (up to 1.7 MHz), SPI (up to 10 MHz)
Number I/O Pins: 16
Interrupt pins: 2
Operating temperature: -40 °C to 125 °C
Total power dissipation: 700 mW
Maximum current out of Vss pin: 150 mA
Maximum current into Vdd pin: 125 mA
MCP23017 / MCP23S17 IC Features:
| Pin name | Description | Pin name | Description | Pin name | Description |
|---|---|---|---|---|---|
| A2 | Hardware address pin; look below | Vcc | Power supply (1.8V to 5.5V) | GND | Ground |
| A1 | Hardware address pin; look below | ITB | Interrupt output for PORTB. Can be configured as active-high, active-low, or open-drain | ITA | Interrupt output for PORTA. Can be configured as active-high, active-low, or open-drain |
| A0 | Hardware address pin; look below | B0 | digital output pin | A0 | digital input pin |
| RESET | Hardware reset. Must be externally biased | B1 | digital output pin | A1 | digital input pin |
| NC/SO | I²C nop / SPI slave out | B2 | digital output pin | A2 | digital input pin |
| NC/CS | I²C nop / SPI chip select | B3 | digital output pin | A3 | digital input pin |
| SDA/SI | I²C data / SPI slave in | B4 | digital output pin | A4 | digital input pin |
| SCL/SCK | I²C clock / SPI clock | B5 | digital output pin | A5 | digital input pin |
| GND | Ground | B6 | digital output pin | A6 | digital input pin |
| Vcc | Power supply (1.8V to 5.5V) | B7 | digital output pin | A7 | digital input pin |
The hardware address pins are used to determine the device address. To address a device, the corresponding address bits in the control byte must match the pin state. The pins must be biased externally.
This page has been accessed for: Today: 1, Until now: 80