Flash Magic Forum

General => Off-Topic (Read Only) => Topic started by: Caleno on January 04, 2006, 11:49:54 AM

Title: LPC936 SPI
Post by: Caleno on January 04, 2006, 11:49:54 AM
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!

Title: Re: LPC936 SPI
Post by: Andy Ayre on January 05, 2006, 06:12:52 AM
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.

Title: Re: LPC936 SPI
Post by: Caleno on January 05, 2006, 06:20:01 AM
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!
Title: Re: LPC936 SPI
Post by: Andy Ayre on January 05, 2006, 09:21:11 AM
I replied on 8052.com with an example project.