PDA

View Full Version : Easiest Way To expand I/O



Giuseppe
11-23-2009, 12:32 PM
Soooooooo I need more input and output pins, what is the easiest way of doing this?

Mike Green
11-23-2009, 12:42 PM
Read the StampWorks Manual. It's downloadable from Parallax and there's a chapter on each topic. There are also several Nuts and Volts Columns on the subject also downloadable from Parallax. Go to their main webpage and click on the Resources tab. You'll see a link to the Nuts and Volts Columns index. For the StampWorks Manual, just search the Parallax website for "StampWorks".

Mike Green
11-23-2009, 12:54 PM
The Microchip MCP23S17 and MCP23S08 are nice I/O expanders that use the SPI protocol so you could use SHIFTIN and SHIFTOUT statements to control them. If you only need inputs, you can use a 74HC165 shift register as described in the StampWorks Manual. If you only need outputs, you can use a 74HC595 shift register, also as described in the StampWorks Manual.

Giuseppe
11-23-2009, 01:19 PM
thanks a bunch!