Yahoo Groups archive

Lpc2000

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

Thread

spi - some undocumented registers?

spi - some undocumented registers?

2003-12-11 by arturo_tramontini

/* SPI (Serial Peripheral Interface) */
#define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
#define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
#define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
#define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
#define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))<<?
#define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))<<?
#define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))<<?
#define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))


someone know about these registers?
have you some old manuals?

thanks.
artur

Re: [lpc2100] spi - some undocumented registers?

2003-12-11 by Amit

hi
 
When using SPI in master mode be sure to drive SSEL high. If you dont do that you wont see SPI  working.
 
Try that
 
Amit

arturo_tramontini <a.t@...> wrote:
/* SPI (Serial Peripheral Interface) */
#define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
#define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
#define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
#define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
#define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))<<?
#define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))<<?
#define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))<<?
#define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))


someone know about these registers?
have you some old manuals?

thanks.
artur


Yahoo! Groups SponsorADVERTISEMENT

To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Re: [lpc2100] spi - some undocumented registers?

2003-12-11 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "arturo_tramontini" <a.t@...>
To: <lpc2100@yahoogroups.com>
Sent: Thursday, December 11, 2003 2:58 PM
Subject: [lpc2100] spi - some undocumented registers?


> /* SPI (Serial Peripheral Interface) */
> #define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
> #define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
> #define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
> #define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
> #define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))<<?
> #define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))<<?
> #define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))<<?
> #define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))
>
>
> someone know about these registers?
> have you some old manuals?

Those registers aren't in the User Manual. Their addresses have probably
been reserved for some reason.

Leon

Re: spi - some undocumented registers?

2003-12-11 by Richard

SPCR, SPSR, etc are the SFRs associated with the SPI and are well 
documented in the users manual.

http://www.semiconductors.philips.com/acrobat/usermanuals/UM_LPC2106_2
105_2104_2.pdf

Richard

--- In lpc2100@yahoogroups.com, "arturo_tramontini" <a.t@t...> wrote:
Show quoted textHide quoted text
> /* SPI (Serial Peripheral Interface) */
> #define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
> #define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
> #define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
> #define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
> #define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))<<?
> #define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))<<?
> #define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))<<?
> #define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))
> 
> 
> someone know about these registers?
> have you some old manuals?
> 
> thanks.
> artur

Re: spi - some undocumented registers?

2003-12-11 by Richard

Yes they are!  Search for SPCR and you will find many references.  
You can always name the SFR something different like SPI_SPCR in you 
header file.

Richard

--- In lpc2100@yahoogroups.com, "Leon Heller" <leon_heller@h...> 
wrote:
> 
> ----- Original Message ----- 
> From: "arturo_tramontini" <a.t@t...>
> To: <lpc2100@yahoogroups.com>
> Sent: Thursday, December 11, 2003 2:58 PM
> Subject: [lpc2100] spi - some undocumented registers?
> 
> 
> > /* SPI (Serial Peripheral Interface) */
> > #define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
> > #define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
> > #define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
> > #define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
> > #define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))
<<?
> > #define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))
<<?
> > #define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))
<<?
> > #define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))
> >
> >
> > someone know about these registers?
> > have you some old manuals?
> 
> Those registers aren't in the User Manual. Their addresses have 
probably
Show quoted textHide quoted text
> been reserved for some reason.
> 
> Leon

Re: spi - some undocumented registers?

2003-12-11 by Richard

Ooooops, nevermind.  Didn't see your "pointers".

Richard

--- In lpc2100@yahoogroups.com, "Leon Heller" <leon_heller@h...> 
wrote:
> 
> ----- Original Message ----- 
> From: "arturo_tramontini" <a.t@t...>
> To: <lpc2100@yahoogroups.com>
> Sent: Thursday, December 11, 2003 2:58 PM
> Subject: [lpc2100] spi - some undocumented registers?
> 
> 
> > /* SPI (Serial Peripheral Interface) */
> > #define SPI_SPCR       (*((volatile unsigned char *) 0xE0020000))
> > #define SPI_SPSR       (*((volatile unsigned char *) 0xE0020004))
> > #define SPI_SPDR       (*((volatile unsigned char *) 0xE0020008))
> > #define SPI_SPCCR      (*((volatile unsigned char *) 0xE002000C))
> > #define SPI_SPTCR      (*((volatile unsigned char *) 0xE0020010))
<<?
> > #define SPI_SPTSR      (*((volatile unsigned char *) 0xE0020014))
<<?
> > #define SPI_SPTOR      (*((volatile unsigned char *) 0xE0020018))
<<?
> > #define SPI_SPINT      (*((volatile unsigned char *) 0xE002001C))
> >
> >
> > someone know about these registers?
> > have you some old manuals?
> 
> Those registers aren't in the User Manual. Their addresses have 
probably
Show quoted textHide quoted text
> been reserved for some reason.
> 
> Leon

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.