Freescale Semiconductor MCF54455 Reference Manual page 794

Table of Contents

Advertisement

Push TX FIFO
Register
31.5.5.1
Address Calculation for the First-in and Last-in Entries in the TX FIFO
The memory address of the first-in entry in the TX FIFO is computed by the following equation:
First-in entry address = TXFIFO base + 4  (TXNXTPTR)
The memory address of the last-in entry in the TX FIFO is computed by the following equation:
Last-in entry address = TX FIFO base + 4  [(TXCTR + TXNXTPTR - 1) modulo TX FIFO depth]
where:
TX FIFO base: base address of TX FIFO
TXCTR: TX FIFO counter
TXNXTPTR: transmit next pointer
TX FIFO depth: 16
31.5.5.2
Address Calculation for the First-in and Last-in Entries in the RX FIFO
The memory address of the first-in entry in the RX FIFO is computed by the following equation:
First-in entry address = RX FIFO base + 4  (POPNXTPTR)
The memory address of the last-in entry in the RX FIFO is computed by the following equation:
Last-in entry address = RX FIFO base + 4  [(RXCTR + POPNXTPTR - 1) modulo RX FIFO
depth]
RX FIFO base: base address of RX FIFO
RXCTR: RX FIFO counter
POPNXTPTR: pop next pointer
RX FIFO depth: 16
Freescale Semiconductor
TX FIFO Base
Entry A (First In)
Entry B
Entry C
Entry D (Last In)
+ 1
TX FIFO Counter
Figure 31-24. TX FIFO Pointers and Counter
DMA Serial Peripheral Interface (DSPI)
Transmit Next
Data Pointer
(TXNXTPTR)
Shift Register
DSPI_SOUT
– 1
31-41

Advertisement

Table of Contents
loading

Table of Contents