EasyManua.ls Logo

Texas Instruments TMS320 2833 Series

Texas Instruments TMS320 2833 Series
868 pages
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...
SPI Operation
www.ti.com
556
SPRUI07March 2020
Submit Documentation Feedback
Copyright © 2020, Texas Instruments Incorporated
Serial Peripheral Interface (SPI)
9.3.4 Data Format
The four-bit SPICHAR register field specifies the number of bits in the data character (1 to 16). This
information directs the state control logic to count the number of bits received or transmitted to determine
when a complete character has been processed.
The following statements apply to characters with fewer than 16 bits:
Data must be left-justified when written to SPIDAT and SPITXBUF.
Data read back from SPIRXBUF is right-justified.
SPIRXBUF contains the most recently received character, right-justified, plus any bits that remain from
previous transmission(s) that have been shifted to the left (shown in Example 9-1).
Example 9-1. Transmission of Bit From SPIRXBUF
Conditions:
1. Transmission character length = 1 bit (specified in bits SPICHAR)
2. The current value of SPIDAT = 737Bh
(1)
x = 1 if SPISOMI data is high; x = 0 if SPISOMI data is low; master mode is assumed.
SPIDAT (before transmission)
0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1
SPIDAT (after transmission)
(TXed) 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 x
(1)
(RXed)
SPIRXBUF (after transmission)
1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 x
(1)

Table of Contents

Related product manuals