This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 SPI Configuration

Other Parts Discussed in Thread: SIMPLICITI

hello TI

I have this code for SPI configuration

void spi_init(void)
{
// Master Mode
PERCFG |= 0x02; // PERCFG.U1CFG = 1
P1SEL |= 0xE0; // P1_7, P1_6, and P1_5 are peripherals
P1SEL &= ~0x10; // P1_4 is GPIO (SSN)
P1DIR |= 0x10; // SSN is set as output


// Set baud rate to max (system clock frequency / 8)
// Assuming a 26 MHz crystal (CC1110Fx/CC2510Fx),
// max baud rate = 26 MHz / 8 = 3.25 MHz.
U1BAUD = 0x00; // BAUD_M = 0
U1GCR |= 0x11; // BAUD_E = 17


// SPI Master Mode
U1CSR &= ~0xA0;

// Configure phase, polarity, and bit order
U1GCR &= ~0xC0; // CPOL = CPHA = 0
U1GCR |= 0x20; // ORDER = 1

//1st priority: USART 1
P2DIR &= ~0xC0;
P2DIR |= ~0x40;

}

I checked that SCK signal with oscilloscopebut nothing happens..

what is wrong?

thanks a lot