Yahoo Groups archive

Lpc2000

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

Thread

General SPI Question

General SPI Question

2006-01-27 by jeffbranc01

Hello,
This is more of a general question regarding using the SPI peripherals
with the LPC2000 chips.  I'm somewhat new to this form of serial
communications, so sorry for boring all you pros out there.  I'm
developing with the LPC2220 chip, and am actually using the SSP
peripheral, which, for all intents and purposes works just like an
SPI, but with a few extra options.  

My question is, if you're running the processor's SPI in slave mode,
do you still have to set up your clock speed in the SPI registers to
match the SCLK speed that the external master is giving?  Or does the
external SCLK pretty much just clock in everything into the
processor's SPI data registers for you and you don't have to worry
about the SCLK speed (on the processor side)?

Thanks so much in advance for your help.
Jeff.

Re: [lpc2000] General SPI Question

2006-01-27 by Sean

Jeff:

In the LPC manual (at least for the 2148) it says that the clock speed 
register is unused when you are operating in slave mode -- the incoming 
clock signal is used to latch the data.

-- Sean

At 07:03 PM 1/26/2006, you wrote:
Show quoted textHide quoted text
>Hello,
>This is more of a general question regarding using the SPI peripherals
>with the LPC2000 chips.  I'm somewhat new to this form of serial
>communications, so sorry for boring all you pros out there.  I'm
>developing with the LPC2220 chip, and am actually using the SSP
>peripheral, which, for all intents and purposes works just like an
>SPI, but with a few extra options.
>
>My question is, if you're running the processor's SPI in slave mode,
>do you still have to set up your clock speed in the SPI registers to
>match the SCLK speed that the external master is giving?  Or does the
>external SCLK pretty much just clock in everything into the
>processor's SPI data registers for you and you don't have to worry
>about the SCLK speed (on the processor side)?
>
>Thanks so much in advance for your help.
>Jeff.

Re: General SPI Question

2006-01-27 by jeffbranc01

--- In lpc2000@yahoogroups.com, Sean <embeddedrelated@w...> wrote:
>
> Jeff:
> 
> In the LPC manual (at least for the 2148) it says that the clock speed 
> register is unused when you are operating in slave mode -- the incoming 
> clock signal is used to latch the data.
> 
> -- Sean
> 
> At 07:03 PM 1/26/2006, you wrote:
> >Hello,
> >This is more of a general question regarding using the SPI peripherals
> >with the LPC2000 chips.  I'm somewhat new to this form of serial
> >communications, so sorry for boring all you pros out there.  I'm
> >developing with the LPC2220 chip, and am actually using the SSP
> >peripheral, which, for all intents and purposes works just like an
> >SPI, but with a few extra options.
> >
> >My question is, if you're running the processor's SPI in slave mode,
> >do you still have to set up your clock speed in the SPI registers to
> >match the SCLK speed that the external master is giving?  Or does the
> >external SCLK pretty much just clock in everything into the
> >processor's SPI data registers for you and you don't have to worry
> >about the SCLK speed (on the processor side)?
> >
> >Thanks so much in advance for your help.
> >Jeff.
>
 Sean,
This is good to know because I was going to have conflicting crystal
speed issues if it did require matching (regardless of clock
dividers).  What you've said is exactly what I had assumed, but I
looked all over the LPC2220 datasheet and it didn't specify.  There
was one part that barely implied it, but I just wanted to make sure.  
Thanks for the info.

Re: [lpc2000] Re: General SPI Question

2006-01-27 by Mauricio Scaff

You just must be sure that your PCLK is at least 8x the inclock clock in 
SCK pin.


jeffbranc01 wrote:
> --- In lpc2000@yahoogroups.com, Sean <embeddedrelated@w...> wrote:
> >
> > Jeff:
> >
> > In the LPC manual (at least for the 2148) it says that the clock speed
> > register is unused when you are operating in slave mode -- the incoming
> > clock signal is used to latch the data.
> >
> > -- Sean
> >
> > At 07:03 PM 1/26/2006, you wrote:
> > >Hello,
> > >This is more of a general question regarding using the SPI peripherals
> > >with the LPC2000 chips.  I'm somewhat new to this form of serial
> > >communications, so sorry for boring all you pros out there.  I'm
> > >developing with the LPC2220 chip, and am actually using the SSP
> > >peripheral, which, for all intents and purposes works just like an
> > >SPI, but with a few extra options.
> > >
> > >My question is, if you're running the processor's SPI in slave mode,
> > >do you still have to set up your clock speed in the SPI registers to
> > >match the SCLK speed that the external master is giving?  Or does the
> > >external SCLK pretty much just clock in everything into the
> > >processor's SPI data registers for you and you don't have to worry
> > >about the SCLK speed (on the processor side)?
> > >
> > >Thanks so much in advance for your help.
> > >Jeff.
> >
> Sean,
> This is good to know because I was going to have conflicting crystal
> speed issues if it did require matching (regardless of clock
> dividers).  What you've said is exactly what I had assumed, but I
> looked all over the LPC2220 datasheet and it didn't specify.  There
> was one part that barely implied it, but I just wanted to make sure. 
> Thanks for the info. 
>
>
>
>
>
> SPONSORED LINKS
> Microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=mfaAujKZXA2Z_vxre9sGnQ> 
> 	Microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=9jjd2D3GOLIESVQssLmLsA> 
> 	Intel microprocessors 
> <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=OMnZuqMZX95mgutt4B-tDw> 
>
> Pic microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=Malspbd0T4Rq3M4Q0nHrfw> 
>
>
>
> ------------------------------------------------------------------------
> 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]

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.