
Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5566 Microcontroller Reference Manual, Rev. 2
19-60
Freescale Semiconductor
Section 19.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 19.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
x 4
Push Next Data Pointer Address = CFIFO
n
_BASE_A
[(TNXTPTR
n
+CFCTR
n
) mod CFIFO_DEPTH] x 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 19.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 19.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 19.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
Содержание 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...