Yahoo Groups archive

Lpc2000

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

Message

Re: SPI usage - answer

2005-01-13 by smt5211

We had the same problem with comms between a SPI master and slave. 
Unless we used CS to synchronize the start of each byte, we had 
problems with the slave determining the start of each byte.

With an FPGA, it would be active and possibly transmitting bytes 
long before the ARM was active. In this case, you will definitely 
need to use CS so that the slave wont get confused.

--- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> 
wrote:
> Hello All,
> 
> I want to use the SPI bus for communication between a LPC2129 and 
a 
> FPGA. I think that I will decide to make the processor 
the 'Master'.
> 
> But I was wondering, suppose that I would use the LPC2129 as a 
Slave 
> instead of a Master, how can I guarantee that the write buffer 
gets 
> filled at the right moment. There is no buffer between the write 
buffer 
> and the actual shift register, so the register needs to be written 
in 
> the short interval between the transmission of the bytes (assuming 
a 
> message with several bytes).
> 
> The problem is, if the LPC2129 is used as the Slave then the 
timing is 
> determined by the Master at the other end. Isn't this getting 
tricky?
> 
> Regards,
> 
> -- 
> ==============================
> Aalt Lokhorst
> Schut Geometrische Meettechniek bv
> Duinkerkenstraat 21
> 9723 BN Groningen
> P.O. Box 5225
> 9700 GE Groningen
> The Netherlands
> Tel: +31-50-5877877
> Fax: +31-50-5877899
> E-mail: Lokhorst@S...
> ==============================

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.