EmbeddedRelated.com
Forums

First time programming SPI on LPC2000

Started by jdauchot November 8, 2007
In my particular application, I have left the pin float and observed
it on a scope and logic analyzer. Any luck?

Regards,
Chris

--- In l..., "jdauchot" wrote:
>
> Hi
>
> I use the code from a NXP application note.
>
> Does this SSEL0 pin has to be pulled up to VCC or is it done
already
> done on chip?
>
> Regards
> Jean-Jacques
> --- In l..., "geeseelam"
> wrote:
> >
> > --- In l..., "jdauchot" wrote:
> > >
> > > Do I really need to loopback to monitor the signals on a
scope ?
> > >
> > >
> > > Jean-Jacques
> > >
> >
> > Hi,
> >
> > I've used the SPI port on the LPC2132 and I have verified the
> > signals using a Logic Analyzer without looping back the signals
or
> > connecting them to another SPI port.
> >
> > I noticed in your original post that you attempting to setup the
> SPI
> > as a master but have also configured the IO for SSEL (PINSEL > > 0x5500). The User's Manual for the LPC2132 (chp. 12-3) states
that
> > SSEL is only an input. I believe that I had an issue where the
SPI
> > would not send out any information if it's setup to be a master
and
> > SSEL IO is chosen.
> >
> > If you really want the SPI to be a Master, try not setting up
the
> > SSEL functionality (PINSEL |= 0x1500).
> >
> > Chris
>

An Engineer's Guide to the LPC2100 Series

Hi

Thanks for that, I understand the principle.

But this could be tricky if you are writing and reading registers in the
same process.

You could get data packets out of sequence

Regards

Jean-Jacques

._,___