USCI Operation: SPI Mode
20-7
Universal Serial Communication Interface, SPI Mode
20.3.3 Master Mode
Figure 20−2. USCI Master and External Slave
Receive Buffer
UCxRXBUF
Receive Shift Register
Transmit Buffer
UCxTXBUF
Transmit Shift Register
SPI Receive Buffer
Data Shift Register (DSR)
UCx
SOMI
SOMI
UCxSIMO
SIMO
MASTER
SLAVE
Px.x
STE
UCxSTE
SS
Port.x
UCxCLK
SCLK
MSP430 USCI
COMMON SPI
Figure 20−2 shows the USCI as a master in both 3-pin and 4-pin
configurations. The USCI initiates data transfer when data is moved to the
transmit data buffer UCxTXBUF. The UCxTXBUF data is moved to the TX shift
register when the TX shift register is empty, initiating data transfer on
UCxSIMO starting with either the most-significant or least-significant bit
depending on the UCMSB setting. Data on UCxSOMI is shifted into the receive
shift register on the opposite clock edge. When the character is received, the
receive data is moved from the RX shift register to the received data buffer
UCxRXBUF and the receive interrupt flag, UCxRXIFG, is set, indicating the
RX/TX operation is complete.
A set transmit interrupt flag, UCxTXIFG, indicates that data has moved from
UCxTXBUF to the TX shift register and UCxTXBUF is ready for new data. It
does not indicate RX/TX completion.
To receive data into the USCI in master mode, data must be written to
UCxTXBUF because receive and transmit operations operate concurrently.
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...