I/O Expanders
txmarsh
Posts: 58
I need 64 output and 64 inputs on my propeller project. I have searched the forum and found some great threads regarding I/O Expanders... but these threads all appear to be at least 2 years old (unless I missed one).
Are the 8255, 74HC595, etc. still the best options? I would prefer DIP based chips since surface mount is hard for me to do.
Thanks so much.
Tim
Are the 8255, 74HC595, etc. still the best options? I would prefer DIP based chips since surface mount is hard for me to do.
Thanks so much.
Tim
Comments
You do realise that chip came out with Intel's 8 bit micros in the late 70's. It's still managing annoy me over 30 years later. I recently found it's used in some hardware my company was deploying. Despite being in a well shielded industrial box with shielded cables it is still flipping out when subject to electrical noise in it's operating environment. All outputs suddenly get reset to inputs.
As a result I have also been pondering the best way to get lots of I/O for a Prop. My conclusion is that the best I/O expander for a Prop is, wait for it, another Prop.
Yes, use another Prop or two just for the I/O. They are not so expensive, they are rugged, they have high current drive. You can program any individual pin to be IN, or OUT, or a open source or open drain driver.
You can add some little intelligence to your I/O subsystem as a bonus.
James
http://www.rayslogic.com/propeller/Programming/i2c/i2c.htm
I like the idea of using multiple propellers... is there a good way to allow propeller no. 1 to interface with IO physically connected to propeller no. 2?
thanks again!
tim
After some discussion here, the best solution was to use another prop chip because the overhead of trying to deal what that many I/O expanders, not to mention the processing of the I/O's...
I quickly found out that if I didn't use props for my expansion I would have run out of COGS in collecting and processing all the data from my I/O's
I designed it so I had a master prop that controlled 3 other props, this master prop also programmed the other 3 props, and my master prop is the only one that has the eeprom.
The props communicate at 250kbps using the OBEX object "full duplex serial"
Link
http://forums.parallaxinc.com/forums/default.aspx?f=21&m=376422
Don't forget the SX48 and SX52. You can have SPI or I2C without any external components at 4MHz, or 50 MHz with a resonator (and greater power consumption).
Cheers,
Peter (pjv)
A special thanks to clock loop... I love it when people post schematics!
The 4 slave props can be simply programmed and use a serial protocol to talk to them or you can get really cunning and use a 32bit protocol as ~8MBs
You can also make an 8bit bus and use the 74LVC573s which are transparent latches but you will have a lot of wiring. For outputs use latch mode and for inputs use them transparently by en/disabling -OE. However, you will require 8 for output and 8 for input, so 16 x 20pin chips and 16 I/O prop pins to drive them (total =24pins).