Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: best way to do SPI

2005-09-23 by y4krys

It is "always both".  It's up to your protocol to decide which data 
stream is "don't care" and when.  Only the master can initiate an 
exchange on an SPI bus.

Krys

--- In lpc2000@yahoogroups.com, "Gus" <gus_is_working@y...> wrote:
> Hello,
> 
> In your opinion, what is the best way to transfer data between 2 
LPC 
> micros using SPI?
> 
> The way I have it now, one is master and other is slave. The slave 
one 
> have 1 pin called DATA_READY. When the slave needs to send data to 
> master, it sets DATA_READY high.
> 
> Now the problem is that when the master reads data, it also writes 
> data at the same time (the way SPI works) How would the slave know 
> that the SPI transaction is read, write or both.
> 
> Thanks,
> 
> Gus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.