We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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;