Yahoo Groups archive

Lpc2000

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

Message

Re: SPI comms with another micro

2006-03-06 by Guillermo Prandi

I am using *ehem* MAX3100 to talk with a GPS module from my LPC2138's 
SPI0 port and I have no issues at all. I don't have the need for 
control lines (though MAX3100 supports them), but I do need a non-
polling mechanism, so I'm using MAX3100's IRQ line into one of the 
LPC's IRQ. I am performing fully-bidirectional communications (mostly 
inbound) and everything works fine. In my scheme, LPC is the SPI 
master. The software part was tricky, although I experimented no 
issues with LPC2138's SPI implementation.

Philips just released (or is about to release) an I2C/SPI UART, 
SC16IS750IPW+112. I got one via the Philips sample program. I haven't 
tested it, nor checked its availability. Looks promising. Here's a 
link:

http://www.semiconductors.philips.com/pip/SC16IS750.html

Guille

--- In lpc2000@yahoogroups.com, Robert Wood <robert.wood@...> wrote:
>
> Chaps,
> 
> I'd like to pick your collective brains.
> 
> I'm using a 2194 that communicates with lots of other devices using 
all 
> four CAN ports and both UARTs. One UART communicates with an AVR 
which 
> does some real time stuff and passes data to the ARM, and the other 
> talks to a PC. I need to add another UART, which means I need to 
somehow 
> free up the serial port that talks to the AVR and come up with an 
> alternative way of getting the two devices to communicate.
> 
> I would do it as a parallel interface using P1 if it wasn't for the 
> ridiculous pinout of that port! The next best way seems like it 
might be 
> SPI (as I'm not using the SPI port). I would almost definitely have 
to 
> go to four layer if I did it this way, and I don't want to do that.
> 
> Would I be mad to try this? It strikes me from reading about 
various SPI 
> issues on here I might be asking for trouble. I need to get 
information 
> out of the AVR and into the ARM as rapidly as possible and also get 
> configuration data from the ARM to the AVR, so I'm assuming I would 
have 
> to change which was master and slave from time to time?
> 
> I would add I've done lots of SPI in the past, but always with the 
micro 
> being the master and talking to D/As, EEPROMs etc. I'm wondering 
how 
> difficult it is to get a micro running as a slave, and in 
particular the 
> 2194, as my perception is the LPC family has some SPI issues. (This 
may 
> well be a false impression of course.)
> 
> I have thought about using an SPI UART, but I think only Maxim do 
those 
> and I refuse to use Maxim stuff!
> 
> Many thanks,
> 
> Rob
>

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.