meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| sensor:mcp23017 [2025/12/03 23:34] – vamsan | sensor:mcp23017 [2025/12/04 00:34] (current) – vamsan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOCACHE~~ | ~~NOCACHE~~ | ||
| ====== lamaPLC: MCP23017 / MCP23S17 16-Bit I/O Expander with Serial Interface ====== | ====== lamaPLC: MCP23017 / MCP23S17 16-Bit I/O Expander with Serial Interface ====== | ||
| - | The MCP23017/ | + | The MCP23017/ |
| - | * MCP23017 – I2C interface | + | * MCP23017 – I²C interface |
| * MCP23S17 – SPI interface | * MCP23S17 – SPI interface | ||
| Line 10: | Line 10: | ||
| 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. | 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. | ||
| - | ===== Features ===== | + | ===== MCP23017 / MCP23S17 |
| + | Operating voltage: 1.8V to 5.5V \\ | ||
| Voltage on Vdd with respect to Vss: **-0.3V 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: | ||
| Total power dissipation: | Total power dissipation: | ||
| Maximum current out of Vss pin: 150 mA \\ | Maximum current out of Vss pin: 150 mA \\ | ||
| Maximum current into Vdd pin: 125 mA \\ | Maximum current into Vdd pin: 125 mA \\ | ||
| + | **MCP23017 / MCP23S17 IC Features:** \\ | ||
| * 16-Bit Remote Bidirectional I/O Port | * 16-Bit Remote Bidirectional I/O Port | ||
| * I/O pins default to input | * I/O pins default to input | ||
| Line 37: | Line 43: | ||
| * 2.7V to 5.5V @ -40°C to +85°C | * 2.7V to 5.5V @ -40°C to +85°C | ||
| * 4.5V to 5.5V @ -40°C to +125°C | * 4.5V to 5.5V @ -40°C to +125°C | ||
| - | |{{: | ||
| - | ===== Functional Block Diagram ===== | + | |{{: |
| + | ===== MCP23017 / MCP23S17 Modul Pinout ===== | ||
| + | ^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, | ||
| + | |**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/ | ||
| + | |**NC/ | ||
| + | |**SDA/ | ||
| + | |**SCL/ | ||
| + | |**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| | ||
| + | ===== MCP23017 / MCP23S17 IC pins ===== | ||
| + | {{: | ||
| + | |||
| + | ===== MCP23017 / MCP23S17 | ||
| {{: | {{: | ||
| + | ===== MCP23017 / MCP23S17 I²C / SPI address coding ===== | ||
| + | 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. | ||
| - | ====== Source ====== | + | |{{:sensor: |
| - | https://ww1.microchip.com/downloads/ | + | |The MCP23017 is a slave I²C interface device that supports 7-bit addressing, with the read/write bit filling out the control byte. The slave address includes four fixed bits and three user-defined hardware address bits (pins A2, A1, and A0).|The MCP23S17 is a slave SPI device. The slave address contains four fixed bits and three user-defined hardware address bits (if enabled via IOCON.HAEN) (pins A2, A1, and A0), with the read/write bit filling out the control byte| |
| + | ====== MCP23017 / MCP23S17 Source ====== | ||
| + | https:// | ||
| ===== I²C topics on lamaPLC ===== | ===== I²C topics on lamaPLC ===== | ||
| Line 52: | Line 77: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | {{tag> | + | {{tag> |
| \\ | \\ | ||
| This page has been accessed for: Today: {{counter|today}}, | This page has been accessed for: Today: {{counter|today}}, | ||