Author Topic: LPC936 SPI  (Read 6659 times)

Caleno

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
LPC936 SPI
« on: January 04, 2006, 08:49:54 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC936 SPI
« Reply #1 on: January 05, 2006, 03:12:52 pm »
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

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: LPC936 SPI
« Reply #2 on: January 05, 2006, 03:20:01 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC936 SPI
« Reply #3 on: January 05, 2006, 06:21:11 pm »
I replied on 8052.com with an example project.

Embedded Systems Academy, Inc.
support at esacademy dot com