MCP23S17 I/O Expander
16-Bit I/O Expander with Serial Interface (SPI)
Hello World
Import programMCP23S17_Basic_IO_Demo
A simple IO demo using the MCP23S17 library
Library
Datasheet
http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdfNotes
This SPI I/O expander chip has an internal power on reset and you can just tie the reset pin high (don't just leave it floating) - per data sheet at http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf it must be "externally biased".
Make sure that you order the chip in a skinny DIP package it you want to plug it directly in the breadboard. It also comes in surface mount.
DigiKey stocks and sells both SPI and I2C versions in a DIP for around $1.50.
MCP2S317 - SPI 16 bit I/O port expander
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=MCP23S17-E/SP-ND
and
MCP23017 - I2C 16 bit I/O port expander
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=MCP23017-E/SP-ND
You need to log in to post a discussion