Yahoo Groups archive

Lpc2000

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

Message

Re: SPI usage

2005-01-13 by acetoel

Hello... I'm using SPI with the PC2106, but in Master Mode. 
I beleive that for the Slave mode, you should check the "Chip Select"
Pin, and when the master selects you, then be prepared to receive and
send bytes.
Hope helps a bit

Ezequiel
sunixs@...



--- 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.