SPI communication; Combining Din and Dout
parsko
Posts: 501
All,
When doing SPI communications, can the Din and Dout Lines be combined together?
For instance:
MCP3002 has two separate pins for data; Din, and Dout. Can I use one (Propeller) output pin tied to both the Din and Dout without consequences?
Another for instance:
24LC515 has ONE pin for both Din and Dout. Can I use two (Propeller) pins together and tie them both to the same pin?
Thanks,
-Parsko
When doing SPI communications, can the Din and Dout Lines be combined together?
For instance:
MCP3002 has two separate pins for data; Din, and Dout. Can I use one (Propeller) output pin tied to both the Din and Dout without consequences?
Another for instance:
24LC515 has ONE pin for both Din and Dout. Can I use two (Propeller) pins together and tie them both to the same pin?
Thanks,
-Parsko
Comments
It depends on the device itself... the "safe" way to do it is to connect something like a 1K resistor across the Din and Dout pins of your device, then use the Din of
your device to connect to a Stamp, SX,·Propeller, etc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Thanks,
-Parsko
As you know I'm not an adept hardware guy, so take this question as such. In the absolute worst of cases (not with a Stamp but with posibly some other platform) couldn't a simple, signal diode be placed between Din and Dout which would avoid any possible "back-feed" problems whatever the case?
TIA
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
·
·
·· One other thing to consider here…Most SPI devices will work this way.· Our documentation on several such items supports this.· There are a few SPI devices that shift data out at the same time as the data is being shifted in.· In these cases you wouldn’t be able to easily combine the pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support