
Deserial – Serial Peripheral Interface (DSPI)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor
30-35
30.4.3.5.2
Draining the RX FIFO
Host software or the eDMA controller can remove (pop) entries from the RX FIFO by reading the DSPI
POP RX FIFO Register (DSPI_POPR). For more information on DSPI_POPR, refer to
DSPI POP RX FIFO Register (DSPI_POPR).
A read of the DSPI_POPR decrements the RX FIFO counter
by one. Attempts to pop data from an empty RX FIFO are ignored, and the RX FIFO counter remains
unchanged. The data returned from reading an empty RX FIFO is undetermined.
When the RX FIFO is not empty, the RX FIFO drain flag (RFDF) in the DSPI_SR is set. The RFDF bit is
cleared when the RX_FIFO is empty and the DMA controller indicates that a read from DSPI_POPR is
complete or by host software writing a 1 to the RFDF.
30.4.4
Deserial Serial Interface (DSI) Configuration
The DSI configuration supports pin-count reduction by serializing parallel input signals or register bits and
shifting them out in a SPI-like protocol. The timing and transfer protocol is described in
The received serial frames are converted to a parallel form (deserialized) and placed on
the parallel output signals or in a register.
The various features of the DSI configuration are set in the DSPI_DSICR. For more information on the
DSPI_DSICR, refer to
Section 30.3.2.10, DSPI DSI Configuration Register (DSPI_DSICR).
The DSPI is
in DSI configuration when the DCONF field in the DSPI_MCR = 0b01.
The DSI frames can be from 4 to 16 bits long, but 4 to 32 bits can be used in the TSB configuration (see
Section 30.4.10, Timed Serial Bus (TSB),
for detailed information).
30.4.4.1
DSI Master Mode
In DSI master mode, the DSPI initiates and controls the DSI transfers. The DSI master has these conditions
that can initiate a transfer:
•
Continuous
•
Change in data
The two transfer initiation conditions are described in
Section 30.4.4.5, DSI Transfer Initiation Control.
Transfer attributes are set during initialization. The DSICTAS field in the DSPI_DSICR determines which
DSPI_CTAR
n
register controls the transfer attributes.
30.4.4.2
DSI Slave Mode
In DSI slave mode, the DSPI responds to transfers initiated by a SPI or DSI bus master. In this mode the
DSPI does not initiate DSI transfers. Certain transfer attributes such as clock polarity and phase must be
set for successful communication with a DSI master. The DSI slave mode transfer attributes are set in the
DSPI_CTAR1.
30.4.4.3
DSI Serialization
In the DSI configuration, 4 to 16 bits can be serialized using two different sources. The TXSS bit in the
DSPI_DSICR selects between the DSPI DSI Serialization Data Register (DSPI_SDR) and the DSPI DSI
Содержание PXN2020
Страница 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Страница 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Страница 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Страница 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Страница 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Страница 162: ...Clocks Reset and Power CRP PXN20 Microcontroller Reference Manual Rev 1 6 30 Freescale Semiconductor...
Страница 182: ...Frequency Modulated Phase Locked Loop FMPLL PXN20 Microcontroller Reference Manual Rev 1 7 20 Freescale Semiconductor...
Страница 268: ...Boot Assist Module BAM PXN20 Microcontroller Reference Manual Rev 1 9 14 Freescale Semiconductor...
Страница 318: ...Interrupts and Interrupt Controller INTC PXN20 Microcontroller Reference Manual Rev 1 10 50 Freescale Semiconductor...
Страница 326: ...General Purpose Static RAM SRAM PXN20 Microcontroller Reference Manual Rev 1 11 8 Freescale Semiconductor...
Страница 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Страница 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Страница 460: ...Memory Protection Unit MPU PXN20 Microcontroller Reference Manual Rev 1 18 20 Freescale Semiconductor...
Страница 478: ...Error Correction Status Module ECSM PXN20 Microcontroller Reference Manual Rev 1 19 18 Freescale Semiconductor...
Страница 488: ...Software Watchdog Timer SWT PXN20 Microcontroller Reference Manual Rev 1 20 10 Freescale Semiconductor...
Страница 494: ...System Timer Module STM PXN20 Microcontroller Reference Manual Rev 1 21 6 Freescale Semiconductor...
Страница 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Страница 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Страница 926: ...Controller Area Network FlexCAN PXN20 Microcontroller Reference Manual Rev 1 29 42 Freescale Semiconductor...
Страница 990: ...Deserial Serial Peripheral Interface DSPI PXN20 Microcontroller Reference Manual Rev 1 30 64 Freescale Semiconductor...
Страница 1044: ...Enhanced Serial Communication Interface eSCI PXN20 Microcontroller Reference Manual Rev 1 31 54 Freescale Semiconductor...
Страница 1080: ...Cross Triggering Unit CTU PXN20 Microcontroller Reference Manual Rev 1 33 12 Freescale Semiconductor...
Страница 1134: ...Analog to Digital Converter ADC PXN20 Microcontroller Reference Manual Rev 1 34 54 Freescale Semiconductor...
Страница 1150: ...IEEE 1149 1 Test Access Port Controller JTAGC PXN20 Microcontroller Reference Manual Rev 1 35 16 Freescale Semiconductor...
Страница 1257: ...Nexus Development Interface NDI PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 36 107...
Страница 1258: ...Nexus Development Interface NDI PXN20 Microcontroller Reference Manual Rev 1 36 108 Freescale Semiconductor...
Страница 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...