3.2.2 SPI Mode
The operation of the F23x/F24x USCI in SPI mode and the F13x/F14x USART is almost identical. The major differences are:
- The F14x USART supports two channels of simultaneous SPI communication (USART0 and USART1), and the F24x USCI supports four channels (USCI_A0, USCI_B0, USCI_A1, and USCI_B1).
- The F13x USART supports one channel of SPI communication (USART0), and the F23x USCI supports two channels (USCI_A0 and USCI_B0).
- On the F14x, each of the four SPI communication endpoints has a dedicated interrupt vector. On the F24x, each USCI module has a two shared interrupt vectors, combining transmit and receive events for each module. On both devices, four interrupt vectors are available in total.
- On the F13x and on the F23x, each SPI communication endpoint has a dedicated interrupt vector. On both devices, two interrupt vectors are available in total.
- On the F23x/F24x USCI, interrupt flags are no longer cleared automatically upon entering the interrupt service routine.
- The F23x/F24x USCI defaults to an LSB-first SPI bit order. The bit order can be configured with the UCMSB bit in the UCAxCTL0/UCBxCTL0 control registers. This is different from the UART module, where the bit order is MSB first and cannot be configured.
- The maximum F23x/F24x USCI bit clock frequency in SPI master mode is BRCLK, and on the F13x/F14x USART module it is BRCLK/2.