Init Differences between SPIO1 and SPOI0

Hi

Does anyone know what the difference is between initialisation of SPI1 and SPI0??? There must be a difference in setting up the SCLK?

no there are no difference, exactelly the same!

care just to : PINSEL to declarate the pins and to names of control and status reg

lpcH2129:
no there are no difference, exactelly the same!

Depending on what chip you’re using, this is not true. On the LPC2148 that I usually develop on, there are definitely differences between SPI0 and SPI1. SPI1 is actually the SSP controller, and can do other serial data formats besides SPI. Also, the maximum data rates are different between SPI1 and SPI0 (I made a post about this about a month ago…if I remember correctly SPI0 was around 7 or 8 Mbps and SPI1 was around 30 Mbps).

brennen:
Depending on what chip you’re using, this is not true. On the LPC2148 that I usually develop on, there are definitely differences between SPI0 and SPI1. SPI1 is actually the SSP controller, and can do other serial data formats besides SPI. Also, the maximum data rates are different between SPI1 and SPI0 (I made a post about this about a month ago…if I remember correctly SPI0 was around 7 or 8 Mbps and SPI1 was around 30 Mbps).

…But in terms on initializing one or the other in SPI mode, The same code can be used, right?

There are indeed a few differences in the registers. I haven’t reviewed that code in a while, but a quick look in the datasheet will reveal some discrepancies between the two. I think the register names are pretty much the same though - just some different bits inside them.

Depending on what chip you’re using, this is not true.

i’m using lpc2129, and use the same code for spi0 and spi1, just names of reg and pins changes