This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI0 on LPC2148 (MCB2140)

Hi,

I'm working with a Keil MCB2140 board (LPC2148). I want to communicate with a Chipcon cc2420 transceiver chip via SPI. There for I'm using the lpc2148 spi0 interface and the following c-code to initialize spi0.

    S0SPCR = 0x00;
    PINSEL0 |= (1<<14) | (1<<12) | (1<<10) | (1<<8);
    S0SPCCR = 8;
    S0SPCR = 0x20;

SSEL0 is always high (connected to Vdd). When I write data to the S0SPDR, I can't scope any activity on SCLK.

Can anyone tell me, what I did wrong???

Thanks,

Marc