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.

MSP430G2 SPI 16bit configuration

Hello,

I try to use Launchpad to comunicate with an external DAC on USCIB  SPI_BUS.

But I do not have enough information how I can configure the SPI for my requirements.

I have configure 3 wire SPI with SLCK=1MHZ and 16bit data. Is there a example or documentation regarding the SPI registers?

 

I foun the code but only with 8 bit data;

P1SEL = BIT1 + BIT2 + BIT4;

P1SEL2 = BIT1 + BIT2 + BIT4;

UCA0CTL1 = UCSWRST;   // **Put state machine in reset**

UCA0CTL0 |= UCCKPL + UCMSB + UCSYNC;  // 3-pin, 8-bit SPI master

UCA0CTL1 &= ~UCSWRST;  // **Initialize USCI state machine**

I will apreciate any help.

**Attention** This is a public forum