Yahoo Groups archive

Lpc2000

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

Thread

which register name to be used ?????

which register name to be used ?????

2004-12-08 by Sridhar gadda

Hello, 
 
          which register name should be used to set the bits ????? 
  
          in user manual for example SPI0 control register is named as S0SPCR and when you see at LPC21xx.H header file you see as SPI0_SPCR......
 
with which name I should address this register to set the bits ????

thanks in advance  
 
Sridhar

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]

Re: [lpc2000] which register name to be used ?????

2004-12-08 by dasbento@aeiou.pt

Hello Sridhar,

            use the name that is in LPC21xx.H!!!!!
what is important is the position of memory the register, and not the
name!!!!

           Domingos





Citando Sridhar gadda <sridhargadda@...>:

> 
> Hello,
>
>           which register name should be used to set the bits ?????
>
>           in user manual for example SPI0 control register is named as
> S0SPCR and when you see at LPC21xx.H header file you see as
SPI0_SPCR......
>
> with which name I should address this register to set the bits ????
>
> thanks in advance
>
> Sridhar
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 

_________________________________________________________
CEAC Cursos de forma\ufffd\ufffdo profissional - pe\ufffda informa\ufffd\ufffdes aqui.:
http://ceac.online.pt/

Re: [lpc2000] which register name to be used ?????

2004-12-08 by Richard

In theory, they should match. In practice, you use the name defined in the 
header files provided by your compiler.

At 08:45 AM 12/8/2004, Sridhar gadda wrote:

>Hello,
>
>           which register name should be used to set the bits ?????
>
>           in user manual for example SPI0 control register is named as 
> S0SPCR and when you see at LPC21xx.H header file you see as SPI0_SPCR......
>
>with which name I should address this register to set the bits ????
>
>thanks in advance
>
>Sridhar

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com)

Re: [lpc2000] which register name to be used ?????

2004-12-08 by Sridhar gadda

Hello Domingos, 
 
                           if you go by header file name in LPC21xx.H then in example BLINKY of keil. It is stated U1THR for UART1Thansmit holding register ( the name used in user manual)  and if you see in header file UART1_THR 
 
could someone help to clear this doubt.
 
thanks 
 
Sridhar

dasbento@... wrote:

Hello Sridhar,

use the name that is in LPC21xx.H!!!!!
what is important is the position of memory the register, and not the
name!!!!

Domingos





Citando Sridhar gadda :

> 
> Hello,
>
> which register name should be used to set the bits ?????
>
> in user manual for example SPI0 control register is named as
> S0SPCR and when you see at LPC21xx.H header file you see as
SPI0_SPCR......
>
> with which name I should address this register to set the bits ????
>
> thanks in advance
>
> Sridhar
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 

_________________________________________________________
CEAC Cursos de forma��o profissional - pe�a informa��es aqui.:
http://ceac.online.pt/





Yahoo! Groups Links








		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search. Learn more.

[Non-text portions of this message have been removed]

Re: [lpc2000] which register name to be used ?????

2004-12-08 by Robert Adsett

At 09:08 AM 12/8/04 -0800, you wrote:
>                            if you go by header file name in LPC21xx.H 
> then in example BLINKY of keil. It is stated U1THR for UART1Thansmit 
> holding register ( the name used in user manual)  and if you see in 
> header file UART1_THR

Are you using the Keil compiler?

If you are I would expect the header file distributed by them and the name 
in the source to match.  If not then use the name supported by your toolset 
(or add appropriate macros to translate).

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.