EasyManua.ls Logo

NXP Semiconductors PXN2020 - 30.4.6 Buffered SPI Operation; 30.4.7 DSPI Baud Rate and Clock Delay Generation; 30.4.7.1 Baud Rate Generator

NXP Semiconductors PXN2020
1376 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...
Deserial – Serial Peripheral Interface (DSPI)
PXN20 Microcontroller Reference Manual, Rev. 1
30-40 Freescale Semiconductor
30.4.6 Buffered SPI Operation
The DSPI can use a FIFO buffering mechanism to transmit and receive commands and data to and from
external devices. The transmit FIFO buffers SPI commands and data to be transferred. The receive FIFO
buffers incoming serial data. Both FIFOs are four entries deep. The TX FIFO stores 32-bit words when the
DSPIs are configured for master mode. The 32-bit words are composed of 16-bit command fields and data
fields as wide as 16 bits. The RX FIFOs store 16-bit words of received data from external devices. When
the DSPI is configured for slave mode, the DSPI ignores the SPI command in the TX FIFO.
For queued operations, the SPI queues reside in system memory external to the DSPI. Data transfers
between the memory and the DSPI FIFOs are accomplished through the use of the eDMA controller or
through host software. See Figure 30-26 for conceptual diagram of the queue data transfer control in the
MCU.
Figure 30-26. DSPI Queue Transfer Control in PXN20
30.4.7 DSPI Baud Rate and Clock Delay Generation
The SCK frequency and the delay values for serial transfer are generated by dividing the system clock
frequency by a prescaler and a scaler with the option for doubling the baud rate. Figure 30-27 shows
conceptually how the SCK signal is generated.
Figure 30-27. Communications Clock Prescalers and Scalers
30.4.7.1 Baud Rate Generator
The baud rate is the frequency of the serial communication clock (SCK). The system clock is divided by
a baud rate prescaler (defined by DSPI_CTARn[PBR]) and baud rate scaler (defined by
System RAM
DSPI
DMA controller/
TX queue
RX FIFO
TX FIFO
Shift register
Data
Data
Address
RX queue
Data
Data
Address
DMA
control/
host
host

Table of Contents

Related product manuals