
Deserial Serial Peripheral Interface (DSPI)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
1335
Figure 30-59. TX FIFO pointers and counter
30.10.6.1 Address calculation for the first-in entry and last-in entry in the TX FIFO
The memory address of the first-in entry in the TX FIFO is computed by the following equation:
Eqn. 30-7
The memory address of the last-in entry in the TX FIFO is computed by the following equation:
Eqn. 30-8
TX FIFO Base: Base address of TX FIFO
TXCTR: TX FIFO Counter
TXNXTPTR: Transmit Next Pointer
TX FIFO Depth: Transmit FIFO depth, implementation-specific
30.10.6.2 Address calculation for the first-in entry and last-in entry in the RX FIFO
The memory address of the first-in entry in the RX FIFO is computed by the following equation:
Eqn. 30-9
The memory address of the last-in entry in the RX FIFO is computed by the following equation:
Eqn. 30-10
RX FIFO Base: Base address of RX FIFO
RXCTR: RX FIFO counter
POPNXTPTR: Pop Next Pointer
RX FIFO Depth: Receive FIFO depth, implementation specific
Push TX FIFO Register
Transmit Next
Data Pointer
Shift Register
SOUT
+1
-1
TX FIFO Counter
TX FIFO Base
—
—
Entry A (first-in)
Entry B
Entry C
Entry D (last-in)
—
—
First-in Entry Address
TX FIFO Base
4
TXNXTPTR
+
=
Last-in Entry address
TX FIFO Base
4
TXCTR
TXNXTPTR
1
–
+
mod TXFIFOdepth
+
=
First-in Entry Address
RX FIFO Base
4
POPNXTPTR
+
=
Last-in Entry address
RX FIFO Base
4
RXCTR
POPNXTPTR
1
–
+
mod (RXFIFOdepth)
+
=
Summary of Contents for MPC5644A
Page 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Page 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Page 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Page 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Page 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Page 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Page 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...