This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem in SPI of LPC2378

Hi everybody!

I want to send a byte with SPI in LPC2378 and i initialize the SPI block according to the user manual.

But my problem is here that when i put a byte (for example 0x9F) in S0SPDR register, the value of this register equal with 0xFF and no change at the next.

please help me to solution of this problem.

thanks a lot !

Parents
  • Hi dear Vikram!

    You can transmit data with both SSP or SPI. But notice to one point, that you should select pin of SSP or SPI blocks by PINSEL register. Indeed, first syntax that you write for transmit data with SSPn (0~1) and second of them are for transmit with SPI.

    hope that guidance you correctly!

    "RAMZEI"

Reply
  • Hi dear Vikram!

    You can transmit data with both SSP or SPI. But notice to one point, that you should select pin of SSP or SPI blocks by PINSEL register. Indeed, first syntax that you write for transmit data with SSPn (0~1) and second of them are for transmit with SPI.

    hope that guidance you correctly!

    "RAMZEI"

Children
  • HI RAMZEI.

    Am also got the same logic.But when am tryed to get sample code for the SPI protocol there all of them used 1 syntax(in my first reply)after getting this logic i was used the 2 syntax (in my first rwply).

    If u have any idea about below give me solution for that one please.

    I am using the landtiger development board(LPC1768) in that one they given one data flash(AT45db161D) they given communicate this one by using SPI protocol.When am try to Tx & Rx data from that am not able to getting.I was observed the CS,MOSI pins output by using oscilloscope there am getting what am given the values in the code but am not getting any signal change in MISO it will be always in High state only,finally i was tried to read the device id then also am not getting any response from that data flash,By using multimeter i was checked the that data flash i got the there is continuity, the IC was working am getting CS and MOSI pins values then why it was not responding can u give solution for this one please from last few days am working on this only.

    If u don't mind can u give me Ur social media ID there I'll contact.

    "VIKRAM"