
Deserial Serial Peripheral Interface (DSPI)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
20-67
in the DSPI return the correct values when read, but writing to them has no affect. Writing to the
DSPI
x
_TCR during module disable mode does not have an effect. Interrupt and DMA request signals
cannot be cleared while in the module disable mode.
20.4.10.2 Slave Interface Signal Gating
The DSPI module enable signal is used to gate slave interface signals such as address, byte enable,
read/write and data. This prevents toggling slave interface signals from consuming power unless the DSPI
is accessed.
20.5
Initialization and Application Information
20.5.1
How to Change Queues
DSPI queues are not part of the DSPI module, but the DSPI includes features in support of queue
management. Queues are primarily supported in SPI configuration. This section presents an example of
how to change queues for the DSPI.
1. Set the EOQ bit in the command word to indicate the last entry in the queue for the DSPI after the
last command word from a queue is executed.
2. Sample the command word that has the EOQ bit set at the end of the transfer. Set the EOQ flag
(EOQF) in the DSPI
x
_SR is set.
If EOQF flag is set to 1, the serial interface is disabled, preventing data transmission and reception.
The DSPI is put into the STOPPED state and the TXRXS bit is negated to indicate the STOPPED
state. The eDMA continues to fill the TX FIFO until one of the following conditions occur:
— TX FIFO is full
— Modified DMA descriptor that adds queues to the TX and RX channels is received (step 5).
3. Disable the DSPI DMA transfers by clearing the DMA channel enable bit for the DMA channel
assigned to the TX FIFO and RX FIFO. This is done in the eDMA controller.
4. Ensure all received data in the RX FIFO was transferred to the memory receive queue using one
of the following methods:
— Read RXCNT in DSPI
x
_SR
— Check RFDF in the DSPI
x
_SR after each read operation of the DSPI
x
_POPR.
5. Modify the DMA descriptor for the TX and RX channels for additional queues.
6. Flush the TX FIFO and RX FIFO by writing a 1 to the CLR_TXF and the CLR_RXF bits
respectively in the DSPI
x
_MCR register.
7. Clear the transfer count using one of the following methods:
— Set the CTCNT bit in the command word of the first entry in the new queue
— Write directly to SPI_TCNT field in DSPI
x
_TCR
8. Enable the DMA channel by setting the DMA enable request bit for the DMA channel assigned to
the DSPI TX and RX FIFOs.
9. Enable serial transmission and serial reception of data by clearing the EOQF bit.
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...