Need more input pins
Erlend
Posts: 612
My project keeps expanding, and now there are no more spare i/o pins. I remember having seen a digital input chip with spi i/f on the parallax site, but now I just cannot find it. (I know, it's like asking my wife where my socks are - right in front of me)
-like Firefox says "Well, this is embarrassing",
Erlend
-like Firefox says "Well, this is embarrassing",
Erlend
Comments
I am not too familiar with I2C, but this would be an opportunity to fix that. The fun is in learning. I'm not into PASM, though, I spend most of my Propeller time on improving my Spin skills. Will have to lean on Obex. Cannot find MCP23017 in the Parallax store, though, and not at Sparkfun. Any idea where?
@Mike
8 inputs is just enough, but I may tie 2-3 together. Any idea where I can find some more on the data communication? The datasheet is quite rudimentary on that.
@TC
MAX6957 looks very flexible.
I guess this boils down to availability. I prefer to place an order of more than one chip, and I like to support the Parallax store when I can.
Erlend
One of the nice things about the 595/597(and 165) is that they can add as many input and output pins as you want using only 3 prop pins in total.
If the needs are simple, then octal logic shifters are cheap, if not very bright.
If you need more than ~ 2-3 of these, you could look at low cost 'vanilla' uC like AT89LP52 (~66c/100) ie < 2c / io pin at 36 ios.
Erlend
Thanks,
Marcus
For simple IO, I agree. I've attached my MCP23017 object which uses my basic I2C object. Both objects are Spin.
Mouser is my favorite parts source, and they care all packaging variations of the chip.
http://propellerpowered.us/index.php?route=product/product&path=25_64_68&product_id=99
This and Jon's I2C driver should answer my one of my little "delema's" on my current project...
Thanks all for posting!
Fred
Erlend