Thanks for your reply. i found the problem. As u rightly pointed out the problem was with the settings. i have some questions first is that SPDR register value never changes why is that? second what is spi_out? is this signal same as MOSI? thanks again for ur reply
regards
I think you did not quite understand writing to SPDR register twice consecutively, that would mean
LPC_SPI->SPDR = byte; LPC_SPI->SPDR = byte;