Yahoo Groups archive

Lpc2000

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

Message

R: [lpc2000] SPI interface usage

2005-02-04 by Gianluca Marcante

When you are using the spi in master mode you also need to map SSEL to pin
P0.7 and drive it high.

-----Messaggio originale-----
Da: Umesh V. HUILGOL [mailto:umesh.huilgol@...]
Inviato: venerdi 4 febbraio 2005 11.00
A: lpc2000@yahoogroups.com
Oggetto: [lpc2000] SPI interface usage



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]




Yahoo! Groups Links

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.