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 RAMZEI
    Ur using the SPI protocol...? to which device you are going to communicate with SPI..?
    I am also try this one in LPC1768 to communicate with data flash in my development board.My question was to transmit the data by using SPI protocol which of the following syntax we have to use
    1.LPC_SSPn->DR= (data) (n:0,1)
    2.LPC_SPI->SPDR=(data)

    I was saw in sample code they are using 1 one. Then in that LPC17xx.h file they given 2 one.Which one is correct one to use for Tx data.

    Regards
    Vikram

Reply
  • HI RAMZEI
    Ur using the SPI protocol...? to which device you are going to communicate with SPI..?
    I am also try this one in LPC1768 to communicate with data flash in my development board.My question was to transmit the data by using SPI protocol which of the following syntax we have to use
    1.LPC_SSPn->DR= (data) (n:0,1)
    2.LPC_SPI->SPDR=(data)

    I was saw in sample code they are using 1 one. Then in that LPC17xx.h file they given 2 one.Which one is correct one to use for Tx data.

    Regards
    Vikram

Children