Yahoo Groups archive

Lpc2000

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

Message

Re: SPI1

2005-08-16 by y4krys

Alsig,
 If you write a byte to the transmit register the SCK clock should be 
generated.  Make sure the SPI1 peripheral is enabled and powered 
(Check PCONP bits).  You should be able to do your initial test using 
your debugger and the direct access to the control registers.  Also, 
only the MISO pin should show as an input, MOSI and SCK should be 
outputs driven SPI.  Once you are past the clock and MOSI hurdle 
you'll need the slave select signal from your LPC to the EE and the 
right SPI mode (CPOL and CPHA) for proper data access.
I hope it helps.
Regards,
Krys
--- In lpc2000@yahoogroups.com, Jens Alsig <alsig@g...> wrote:
> Hi,
> The all pins seam to float or be as input even after I configure 
the 
> PINSEL1 register. I'm using a LPC2214 as
> the master and the 25Lc640 as a slave. I've connected the SSEL to 3 
volt.
> Regarding the setup of the registers I've tried the IAR MakeApp 
code for 
> the PCB module and the SPI module. And at the
> moment this gives the same result.
> 
> Regards Jens Alsig
> 
> 
> y4krys wrote:
> 
> > --- In lpc2000@yahoogroups.com, "jensalsig" <alsig@g...> wrote:
> > > Hi,
> > >
> > > have anyone every used the SPI 1 channel on a LPC device that 
has 2
> > > channels?
> > >
> > > I've tried without any luck and getting very frustrated! I have 
tried
> > > using the IAR MakeApp and that doesn't work either. My setup is 
a
> > > LPC2214 from Olimex and a MicroChip EEPROM.
> > >
> > > Any suggestions are VERY welcome.
> > >
> > > Regards Jens Alsig
> >
> > Hi Alsig,
> > What do you mean by "doesn't work"?  Is SPI1 properly setup (IO 
pin
> > selection and function, Master/Slave etc.) and enabled?  Have you
> > checked the bus with a scope?  What hardware do you use?
> >
> > Krys
> >
> >
> >
> > ------------------------------------------------------------------
------
> > YAHOO! GROUPS LINKS
> >
> >     *  Visit your group "lpc2000
> >       <http://groups.yahoo.com/group/lpc2000>" on the web.
> >        
> >     *  To unsubscribe from this group, send an email to:
> >        lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> >        
> >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > ------------------------------------------------------------------
------
> >
> 
> 
> 
> [Non-text portions of this message have been removed]

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.