I2C & SPI shared bus
Gerhard Fiedler email (remove spam text)
Olin Lathrop wrote:
>> Then during SPI transfers, there shouldn't be anything that resembles a
>> valid I2C transaction on the bus.
> Huh!!?. You are practically guaranteed to get some bus start and bus
> stop sequences.
Since SPI isn't really well-defined WRT data changes vs. clock changes,
this may or may not work. If any of your SPI devices requires you to
configure the SPI master so that there are data changes while the clock is
high or may produce such changes as slave, you are practically guaranteed
to create an IIC start condition while you are sending SPI data.
If OTOH you can guarantee that all SPI data transitions happen while the
clock is low, you can get away with it; in this case there won't be an IIC
start condition during SPI transfers.
I've done it before, and it can work. But it depends on the SPI devices and
their data transition timing.
In reply to: <firstname.lastname@example.org>
See also: www.piclist.com/techref/i2cs.htm?key=i2c
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the