Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X Datenbogen

Produktcode
DK-TM4C129X
Seite von 2182
20.3
Functional Description
The QSSI performs serial-to-parallel conversion on data received from a peripheral device. The
CPU accesses data, control, and status information. The transmit and receive paths are buffered
with internal FIFO memories allowing up to eight 16-bit values to be stored independently in both
transmit and receive modes. The QSSI also supports the µDMA interface. The transmit and receive
FIFOs can be programmed as destination/source addresses in the µDMA module. µDMA operation
is enabled by setting the appropriate bit(s) in the SSIDMACTL register (see page 1409).
20.3.1
Bit Rate Generation
The QSSI includes a programmable bit rate clock divider and prescaler to generate the serial output
clock. Bit rates are supported to 2 MHz and higher, although maximum bit rate is determined by
peripheral devices.
The serial bit rate is derived by dividing down the input clock (SysClk). The clock is first divided by
an even prescale value
CPSDVSR
from 2 to 254, which is programmed in the SSI Clock Prescale
(SSICPSR) register (see page 1401). The clock is further divided by a value from 1 to 256, which is
1 +
SCR
, where
SCR
is the value programmed in the SSI Control 0 (SSICR0) register (see page 1393).
The frequency of the output clock
SSInClk
is defined by:
SSInClk = SysClk / (CPSDVSR * (1 + SCR))
Note:
SYSCLK or ALTCLK is used as the source for the
SSInClk
depending on how the
CS
field
in the SSI Clock Configuration (SSICC) register is configured. For master legacy mode,
the SYSCLK or ALTCLK must be at least two times faster than the
SSInClk
, with the
restriction that
SSInClk
cannot be faster than 60 MHz. For slave mode, SYSCLK or ALTCLK
must be at least 12 times faster than the
SSInClk
. In slave legacy mode, the maximum
frequency of
SSInClk
is 10 MHz.
See “Synchronous Serial Interface (SSI)” on page 2142 to view legacy SSI and QSSI timing parameters.
20.3.2
FIFO Operation
20.3.2.1
Transmit FIFO
The common transmit FIFO is a 16-bit wide, 8-locations deep, first-in, first-out memory buffer. The
CPU writes data to the FIFO by writing the SSI Data (SSIDR) register (see page 1398), and data is
stored in the FIFO until it is read out by the transmission logic.
When configured as a master or a slave, parallel data is written into the transmit FIFO prior to a
legacy SSI serial conversion and transmission to the attached slave or master, respectively, through
the
SSInDAT0/SSInTX
pin.
In slave mode, the legacy SSI transmits data each time the master initiates a transaction. If the
transmit FIFO is empty and the master initiates, the slave transmits the 8th most recent value in the
transmit FIFO. If less than 8 values have been written to the transmit FIFO since the SSI module
clock was enabled using the
Rn
bit in the RCGCSSI register or if the QSSI is reset using the SRSSI
register, then 0 is transmitted. Care should be taken to ensure that valid data is in the FIFO as
needed. The QSSI can be configured to generate an interrupt or a µDMA request when the FIFO
is empty.
Note:
When operating in Legacy Mode, the QuadSSI's
SSInXDAT0
signal functions as
SSInTX
.
December 13, 2013
1378
Texas Instruments-Advance Information
Quad Synchronous Serial Interface (QSSI)