Hello,
I’m at the moment building a small project using the MSP430 to control lights wirelessly. Because this is my first time, I chose existing system from TI EZ430-RF2500 because it already works
But, I am not sure what is happening with SPI. I want to understand how SPI talks to CC2500 radio.
I found this [MSP430 Tutorial on SPI. It is good because it talks about very basic things. It talks about SPI setup but I still don’t understand because code is not complete
Here is code that I have for configuring SPI on UCB0:
UCB0CTL0 |= UCMSB + UCMST + UCSYNC; // 3-pin, 8-bit SPI mstr, MSB 1st
UCB0CTL1 |= UCSSEL_2; // SMCLK
UCB0BR0 = 0x02;
UCB0BR1 = 0;
UCB0CTL1 &= ~UCSWRST; // Initialize USCI state machine
How do I configure clock speed for SPI? What does it mean by SMCLK? Should I use 3-pin? I see 4 pins in the schematic.
Thank you very much](http://argenox.com/design/wp_msp430tutorial.php)