QADC64E Legacy Mode Operation
MPC561/MPC563 Reference Manual, Rev. 1.2
13-22
Freescale Semiconductor
1
PF1
Queue 1 Pause Flag. PF1 indicates that a queue 1 scan has reached a pause. PF1 is set
by the QADC64E when the current queue 1 CCW has the pause bit set, the selected input
channel has been converted, and the result has been stored in the result table.
Once PF1 is set, the queue enters the paused state and waits for a trigger event to allow
queue execution to continue. However, if the CCW with the pause bit set is the last CCW
in a queue, the queue execution is complete. The queue status becomes idle, not paused,
and both the pause and completion flags are set. Another exception occurs in software
controlled mode, where the PF1 can be set but queue 1 never enters the pause state since
queue 1 continues without pausing.
When PF1 is set and interrupts are enabled for the corresponding queue, the QADC64E
asserts an interrupt request at the level specified by IRL1 in the interrupt register. The
software may read PF1 during an interrupt service routine to identify the interrupt request.
The interrupt request is cleared when the software writes a zero to PF1, when the bit was
previously read as a one. Once set, only software or reset can clear PF1.
In external gated single-scan and continuous-scan mode the definition of PF1 has been
redefined. When the gate closes before the end-of-queue 1 is reached, PF1 becomes set
to indicate that an incomplete scan has occurred.In single-scan mode, setting PF1 can be
used to cause an interrupt and software can then determine if queue 1 should be enabled
again. In either external gated mode, setting PF1 indicates that the results for queue 1 have
not been collected during one scan (coherently).
NOTE: If a pause in a CCW is encountered in external gated mode for either single-scan
and continuous-scan mode, the pause flag
will not set,
and execution continues without
pausing. This has allowed for the added definition of PF1 in the external gated modes.
PF1 is maintained by the QADC64E regardless of whether the corresponding interrupts
are enabled. The software may poll PF1 to find out when the QADC64E has reached a
pause in scanning a queue.The software acknowledges that it has detected a pause flag
being set by writing a zero to PF1 after the bit was last read as a one.
0 = queue 1 has not reached a pause (or gate has not closed before end-of-queue in gated
mode)
1 = queue 1 has reached a pause (or gate closed before end-of-queue in gated mode)
Refer to
for a summary of pause response in all scan modes.
2
CF2
Queue 2 Completion Flag. CF2 indicates that a queue 2 scan has been completed. CF2 is
set by the QADC64E when the input channel sample requested by the last CCW in queue
2 is converted, and the result is stored in the result table.
The end-of-queue 2 is identified when the current CCW contains an end-of-queue code
instead of a valid channel number, or when the currently completed CCW is in the last
location of the CCW RAM.
When CF2 is set and interrupts are enabled for that queue completion flag, the QADC64E
asserts an interrupt request at the level specified by IRL2 in the interrupt register
(QADCINT). The software reads CF2 during an interrupt service routine to identify the
interrupt request. The interrupt request is cleared when the software writes a zero to the
CF2 bit, when the bit was previously read as a one. Once set, only software or reset can
clear CF2.
CF2 is maintained by the QADC64E regardless of whether the corresponding interrupts
are enabled. The software polls for CF2 to see if it is set. This allows the software to
recognize that the QADC64E is finished with a queue 2 scan. The software acknowledges
that it has detected the completion flag being set by writing a zero to the completion flag
after the bit was read as a one.
Table 13-14. QASR0 Bit Descriptions (continued)
Bits
Name
Description
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...