Yahoo Groups archive

Lpc2000

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

Message

Problems with using SPI

2004-10-12 by johnnorgaard2003

Hi 
I am using lpc2106 and SPI.
I can't get it to work, it should be simple but..

Here is what I do
//----------------------------------------------
PINSEL0 |= 0x5500;	// enable SPI pins
SPCR     = 0x20;	// set master mode
SPCCR    = 128;		// SCK =pclk/128


SPDR = c;		// start transfer
//-----------------------------------------------

but there is no activity on the  SCLK.

1) Should be SSEL be pull-up ? (it is always low)
How do activate/deactivate SSEL ?
(in the user manual on page 127 is say SSEL is not directly driven by
the master.It could be driven by a simple general purpose I/O under
software control.)
2) Should I still select SSEL as alternate function SSEL or general
purpose I/O ?


Please if any one have used SPI and SSEL, please comment

best regards

John

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.