|
|
View previous topic :: View next topic |
Author |
Message |
Mk Guest
|
SPI bus conflict |
Posted: Mon Oct 17, 2005 10:25 pm |
|
|
Hi,
I need three PICs to communicate with each other via SPI bus. I setup one as a SPI Master and the other two as SPI Slaves.
The communication was fine with 1 Master and 1 Slave until I connect the second Slave to the SPI bus . I think the problem is related to the SDO signal of the two slaves. When the SPI Master wants to talk to the second Slave, because the SDI signal of the Master is held either high or low by the first Slave, the second slave cannot toggle the SDO pin (since they are tied together at the Master's SDI pin).
I tried to sum the two SDO signals of the two Slaves via 1K resistor, but the comm is still intermittent. Is there other anyway around this? Thanks!
Best regards, |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Mon Oct 17, 2005 11:37 pm |
|
|
Sonds like you are asserting the chip select for both slaves at the same time. Only one slave should be active at a time. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|