Please help me with SPI initialization on LPC2368.
Could anyone post code for initialization of SPI0 on LPC2368?
I can't make my own code work (SCLK doesn't show on the oscilloscope, when it's supposed to).
Thanks!
- Nick
P.S. I don't forget to click "helped me" for those who helped.
Whether you are not using - try to search for SPI code for the LPC21xxx it has allmost the same setup
As far as I remember (I have upgraded to ARM cortex a year ago - the ARM7 is a bit old for me) there is good sources of code examples at NXP site as well and many other site in the WWW
Actually, my problem was in h/w rather than f/w. I have mixed-up SSP0 pins (34, 37, 38 ) and SPI pins (60, 61, 62). This is my 1st design with LPC2000. Wrote the code to make SSP0 work as an SPI master.
- Nick
P.S. Out of curiosity: why does the chip have two SSPs, which can do all SPI functions, and a redundant dedicated SPI peripheral ? Which one is preferable for SPI?