EasyManua.ls Logo

NXP Semiconductors MPC5566 - Classic SPI Transfer Format (CPHA = 0)

NXP Semiconductors MPC5566
1268 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)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor 20-57
20.4.7.1 Classic SPI Transfer Format (CPHA = 0)
The transfer format shown in Figure 20-34 is used to communicate with peripheral SPI slave devices
where the first data bit is available on the first clock edge. In this format, the master and slave sample the
SINx pins on the odd-numbered SCKx edges, and change the data on the SOUTx pins on the
even-numbered SCKx edges.
Figure 20-34. DSPI Transfer Timing Diagram (MTFE = 0, CPHA = 0, FMSZ = 8)
The master initiates the transfer by placing its first data bit on the SOUTx pin and asserting the appropriate
peripheral chip select signals to the slave device. The slave responds by placing its first data bit on its
SOUTx pin. After the t
CSC
delay has elapsed, the master outputs the first edge of SCKx. This is the edge
used by the master and slave devices to sample the first input data bit on their serial data input signals. At
the second edge of the SCKx the master and slave devices place their second data bit on their serial data
output signals. For the rest of the frame the master and the slave sample their SINx pins on the
odd-numbered clock edges and changes the data on their SOUTx pins on the even-numbered clock edges.
After the last clock edge occurs a delay of t
ASC
is inserted before the master negates the PCS signals. A
delay of t
DT
is inserted before a new frame transfer can be initiated by the master.
For the CPHA = 0 condition of the master, TCF and EOQF are set and the RXCTR counter is updated at
the next to last serial clock edge of the frame (edge 15) of Figure 20-34.
For the CPHA = 0 condition of the slave, TCF is set and the RXCTR counter is updated at the last serial
clock edge of the frame (edge 16) of Figure 20-34.
SCK
(CPOL = 0)
PCSx_SS
t
ASC
SCK
(CPOL = 1)
Master and slave
sample
Master SOUT
Slave SIN
Master SIN
Slave SOUT
Bit 6
Bit 1
Bit 5
Bit 2
Bit 4
Bit 3
Bit 3
Bit 4
Bit 2
Bit 5
Bit 1
Bit 6
LSB
MSB
MSB
LSB
t
DT
t
CSC
t
CSC
MSB first (LSBFE = 0):
LSB first (LSBFE = 1):
t
CSC
= PCS to SCK delay.
t
ASC
= After SCK delay.
t
DT
= Delay after transfer (minimum CS idle time).
Master (CPHA = 0): TCF and EOQF are set and RXCTR counter
is updated at next to last SCK edge of frame (edge 15)
Slave (CPHA = 0): TCF is set and RXCTR counter is updated at
last SCK edge of frame (edge 16)
1234567891011121314 1615

Table of Contents

Related product manuals