Main Menu

LPC936 SPI

Started by Caleno, January 04, 2006, 11:49:54 AM

Previous topic - Next topic

Caleno

I need help using the SPI of LPC936. I used code architect and set the respective ports for I/O respectively. When I execute the code I do not see any response on the SPI pins. I am using scope to check this. Here is my set up.


SPCTL = 0xD7;// configure SPI
ESPI = 1;    // enable SPI interrupt

// send a byte
  Chip_S = 1; // slave select  
  SPDAT = 0x09;          // Send byte command
  delay();
  SPDAT = 0x80;        // send address byte
  delay();
  Chip_S = 0;   // end trans to slave


if I execute the code above, shouldn't I be seeing something in the SPI pins through the scope? I am using the internal clock at 7.37MHz.
Are there any problems with LPC9xx chips SPI?
All this testing is done with the EPM900.
Thanks!


Andy Ayre

I deleted your other posting.

Please don't post more than one copy of your question, and please don't post questions in a thread that are completely unreleated to that thread. It messes up the forum and makes it harder for everyone to use.

Also note that this forum is for discussion of Philips ISP. You might want to try posting your question at 8052.com.

Embedded Systems Academy, Inc.
support at esacademy dot com

Caleno

Sorry for the double posting and changing topics. I thought you might be able to help me on this SPI. I posted the question on 8052.com, but I was told you could help me on this one.

Thanks!

Andy Ayre

I replied on 8052.com with an example project.

Embedded Systems Academy, Inc.
support at esacademy dot com