Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
18-61
Section 18.3.2.7, “eQADC Interrupt and eDMA Control Registers 0–5
,” the eQADC generates requests for more commands from a command queue. An
interrupt request, served by the host CPU, is generated when CFFS is negated, and a eDMA request, served
by the eDMA, is generated when CFFS is asserted. The host CPU or the eDMA respond to these requests
by writing to the
Section 18.3.2.4, “eQADC CFIFO Push Registers 0–5 (EQADC_CFPRn)
,” to fill the
CFIFO.
NOTE
Only whole words must be written to EQADC_CFPR. Writing halfwords or
bytes to EQADC_CFPR pushes the entire 32-bit CF_PUSH field into the
corresponding CFIFO, but undefined data fills the areas of CF_PUSH that
were not specifically designated as target locations for writing.
describes the important components in the CFIFO. Each CFIFO is implemented as a circular
set of registers to avoid the need to move all entries at each push/pop operation. The push next data pointer
points to the next available CFIFO location for storing data written into the eQADC command FIFO push
register. The transfer next data pointer points to the next entry to be removed from CFIFO
n
when it
completes a transfer. The CFIFO transfer counter control logic counts the number of entries in the CFIFO
and generates eDMA or interrupt requests to fill the CFIFO. TNXTPTR in
FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn)
,” indicates the index of the entry that is
currently being addressed by the transfer next data pointer, and CFCTR, in the same register, provides the
number of entries stored in the CFIFO.
Using TNXTPTR and CFCTR, the absolute addresses for the entries indicated by the transfer next data
pointer and by the push next data pointer can be calculated using the following formulas:
Transfer Next Data Pointer Address = CFIFO
n
_BASE_A TNXTPTR
n
*4
Push Next Data Pointer Address = CFIFO
n
_BASE_A
[(TNXTPTR
n
+CFCTR
n
) mod CFIFO_DEPTH] * 4
where
•
a
mod b
returns the remainder of the division of
a
by
b
.
•
CFIFO
n
_BASE_ADDRESS is the smallest memory mapped address allocated to a CFIFO
n
entry.
•
CFIFO_DEPTH is the number of entries contained in a CFIFO - four in this implementation.
When CFS
n
Section 18.3.2.11, “eQADC CFIFO Status Register (EQADC_CFSR)
,” is in the
TRIGGERED state, the eQADC generates the proper control signals for the transfer of the entry pointed
by transfer next data pointer. CFUF
n
in
Section 18.3.2.8, “eQADC FIFO and Interrupt Status Registers
,” is set when a CFIFO
n
underflow event occurs. A CFIFO underflow occurs when
the CFIFO is in the TRIGGERED state and it becomes empty. No commands are transferred from an
underflowing CFIFO, and command transfers from lower priority CFIFOs are not blocked. CFIFO
n
is
empty when the transfer next data pointer
n
equals the push next data pointer
n
and CFCTR
n
is 0. CFIFO
n
is full when the transfer next data pointer
n
equals the push next data pointer
n
and CFCTR
n
is not 0.
When the eQADC completes the transfer of an entry from CFIFO
n
: the transferred entry is popped from
CFIFO
n
, the CFIFO counter CFCTR in the
Section 18.3.2.8, “eQADC FIFO and Interrupt Status Registers
,” is decremented by 1, and transfer next data pointer
n
is incremented by 1 (or
wrapped around) to point to the next entry in the CFIFO. The transfer of entries bound for the on-chip
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...