Yahoo Groups archive

Lpc2000

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

Message

SPI interface usage

2005-02-04 by Umesh V. HUILGOL

Hello ,

I am new to lpc2000 user group.Was happy to know
about such a platform. I had some problem regarding
the  SPI interface.

While implementing a simple SPI transfer to a
memory thro KEIL debugger, I found a problem in the
simulation:

After I write the clock control to the clock control
register, control parameters to the control
register, and data to data register(target device
LPC2106),I find the parameters are correctly getting
loaded in the SPCCR and SPCR register during
debugging but data is  getting loaded in the data
register(in the peripherals GUI).

Here is the piece of code:-

char temp=0x10; 

PINSEL0|=0x00005500;

 SPCCR=0x08;
 SPCR=0x20;
 SPDR=temp; // this value not getting loaded
correctly.

Could anybody help me out with this. 

Umesh


[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.