EasyManua.ls Logo

Texas Instruments MSP430x1xx - SPI Enable

Texas Instruments MSP430x1xx
432 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
USART Operation: SPI Mode
14-7
USART Peripheral Interface, SPI Mode
14.2.4 SPI Enable
The SPI transmit/receive enable bit USPIEx enables or disables the USART
in SPI mode. When USPIEx = 0, the USART stops operation after the current
transfer completes, or immediately if no operation is active. A PUC or set
SWRST bit disables the USART immediately and any active transfer is
terminated.
Transmit Enable
When USPIEx = 0, any further write to UxTXBUF does not transmit. Data
written to UxTXBUF will begin to transmit when USPIEx = 1 and the BRCLK
source is active. Figure 14−4 and Figure 14−5 show the transmit enable state
diagrams.
Figure 14−4. Master Mode Transmit Enable
Idle State
(Transmitter
Enabled)
Transmit
Disable
Transmission
Active
USPIEx = 0
No Data Written
to Transfer Buffer
Not Completed
USPIEx = 1
USPIEx = 0
USPIEx = 1,
Data Written to
Transmit Buffer
Handle Interrupt
Conditions
Character
Transmitted
USPIEx = 1
USPIEx = 0 And Last Buffer
Entry Is Transmitted
SWRST
PUC
Figure 14−5. Slave Transmit Enable State Diagram
Idle State
(Transmitter
Enabled)
Transmit
Disable
Transmission
Active
USPIEx = 0
No Clock at UCLK
Not Completed
USPIEx = 1
USPIEx = 0
USPIEx = 1
Handle Interrupt
Conditions
Character
Transmitted
USPIEx = 1
USPIEx = 0
SWRST
PUC
External Clock
Present

Table of Contents

Related product manuals