Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Please help with SPI initialization on LPC2368

Status
Not open for further replies.

kender

Advanced Member level 4
Joined
Jun 19, 2005
Messages
1,425
Helped
138
Reputation
276
Reaction score
39
Trophy points
1,328
Location
Stanford, SF Bay Peninsula, California, Earth, Sol
Activity points
10,035
Colleagues,

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.
 

Hi

Are you using Interrupt & DMA in your code?

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

All the best

Bobi

The microcontroller specialist
 

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?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top