Posted on

Embedded Interface – MCP23017

Features

  • 16-bit input/output port expander with interrupt output
  • 16 bit serial interface
  • 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

 

Pin Details

INTA and INTB

  • 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.

(IODIRA/B)

  • system master can enable the I/Os as either inputs or outputs by writing the I/O configuration bits
    IOCON.BANK – The MCP23X17 can beconfigured to operate in the 8-bit or 16-bit modes via “IOCON.BANK.”

Data Sheet :

  • 2005-2016 http://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf
  • 2007 http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf

Examples

  • Interfacing a 4×4 Matrix Keypad with an 8-Bit GPIO Expander
    • http://ww1.microchip.com/downloads/en/AppNotes/01081a.pdf
  • Expanding the number of I/O lines using Microchip MCP23008
    • http://embedded-lab.com/blog/expanding-the-number-of-io-lines-using-microchip-mcp23008/
  • Unique Features of the MCP23X08/17 GPIO Expanders
    • http://ww1.microchip.com/downloads/en/AppNotes/01043a.pdf
  • MCP23008 port expander interfaced to PIC12F683
    • http://embedded-lab.com/blog/expanding-the-number-of-io-lines-using-microchip-mcp23008/

reference Link

  • http://www.microchip.com/wwwproducts/en/MCP23017
  • https://github.com/nodemcu/nodemcu-firmware/tree/master/lua_examples

 

Leave a Reply

Your email address will not be published. Required fields are marked *