MCP23017-E/SP

MCP23017-E/SP


Specifications
Details

BUY MCP23017-E/SP https://www.utsource.net/itm/p/12608624.html

Parameter Description Value/Range
Operating Voltage (VDD) Supply voltage range 1.8V to 5.5V
I2C Address Default I2C address 0x20 to 0x27
GPIO Pins Number of General Purpose Input/Output pins 16
Interrupt Output Active-low open-drain interrupt output pin INTA, INTB
Configuration Registers Registers for configuring the device IODIRA/B, IPOLA/B, GPINTENA/B, etc.
Input Latch Registers Registers that hold the state of the input pins INTCAPA/B
Output Latches Registers that control the state of the output pins OLATA/B
Polarity Inversion Option to invert polarity of the port IPOLA/B
Interrupt Control Control how interrupts are generated INTCONA/B
Power Consumption Typical power consumption < 4 渭A (quiescent current)
Operating Temperature Temperature range for operation -40掳C to +85掳C

Instructions for Use:

  1. Power Supply:

    • Connect VDD to a supply voltage between 1.8V and 5.5V.
    • Connect GND to the system ground.
  2. I2C Bus Connection:

    • Connect SDA and SCL to the I2C bus lines of your microcontroller.
    • Ensure pull-up resistors are present on both SDA and SCL lines if not already provided by the system.
  3. Address Configuration:

    • Set the address using the A0, A1, and A2 pins. The default address is 0x20, which can be changed by connecting these pins to VDD or GND.
  4. Initialization:

    • Write to configuration registers (IODIRA/B, IPOLA/B, etc.) to set up the desired behavior of each GPIO pin (input/output, polarity, interrupt settings).
  5. Reading Inputs:

    • Read from the input latch registers (INTCAPA/B) to get the current state of the input pins.
  6. Writing Outputs:

    • Write to the output latches (OLATA/B) to control the state of the output pins.
  7. Handling Interrupts:

    • Configure interrupt settings via INTCONA/B and other related registers.
    • Monitor the INTA/B pins to detect when an interrupt occurs.
    • Read INTCAPA/B to determine which pin(s) triggered the interrupt.
  8. Power Management:

    • Ensure proper power sequencing during startup and shutdown to avoid potential issues with data corruption or damage.
  9. Environmental Considerations:

    • Operate within the specified temperature range to ensure reliable performance.
(For reference only)

View more about MCP23017-E/SP on main site