MOTOROLA
Chapter 27. Queued Analog-to-Digital Converter (QADC)
27-53
Digital Control Subsystem
While the gate is open, queue 1 executes one time. Each CCW is read and the indicated
conversions are performed until an end-of-queue condition is encountered. When queue 1
completes, the QADC sets the completion flag (CF1) and clears the single-scan enable bit.
Set the single-scan enable bit again to allow another scan of queue 1 to be initiated during
the next open gate.
If the gate closes before queue 1 completes execution, the current CCW completes,
execution of queue 1 stops, the single-scan enable bit is cleared, and the PF1 bit is set. The
CWPQ1 field can be read to determine the last valid conversion in the queue. The
single-scan enable bit must be set again and the PF1 bit should be cleared before another
scan of queue 1 is initiated during the next open gate. The start of queue 1 is always the first
CCW in the CCW table.
Because the gate level is only sampled after each conversion during queue execution,
closing the gate for a period less than a conversion time interval does not guarantee the
closure will be captured.
27.8.6.4 Interval Timer Single-Scan Mode
Both queues can use the periodic/interval timer in a single-scan queue operating mode. The
timer interval can range from 2
7
to 2
17
QCLK cycles in binary multiples. When the interval
timer single-scan mode is selected and the single-scan enable bit is set in QACR1 or
QACR2, the timer begins counting. When the time interval elapses, an internal trigger
event is generated to start the queue and the QADC begins execution with the first CCW.
The QADC automatically performs the conversions in the queue until a pause or an
end-of-queue condition is encountered. When a pause occurs, queue execution stops until
the timer interval elapses again, and queue execution continues. When queue execution
reaches an end-of-queue situation, the single-scan enable bit is cleared. Set the single-scan
enable bit again to allow another scan of the queue to be initiated by the interval timer.
The interval timer generates a trigger event whenever the time interval elapses. The trigger
event may cause queue execution to continue following a pause or may be considered a
trigger overrun. Once queue execution is completed, the single-scan enable bit must be set
again to allow the timer to count again.
Normally, only one queue is enabled for interval timer single-scan mode, and the timer will
reset at the end-of-queue. However, if both queues are enabled for either single-scan or
continuous interval timer mode, the end-of-queue condition will not reset the timer while
the other queue is active. In this case, the timer will reset when both queues have reached
end-of-queue. See Section 27.8.9 for a definition of interval timer reset conditions.
The interval timer single-scan mode can be used in applications that need coherent results.
For example:
• When it is necessary that all samples are guaranteed to be taken during the same scan
of the analog signals
Summary of Contents for ColdFire MCF5281
Page 124: ...3 20 MCF5282 User s Manual MOTOROLA EMAC Instruction Set Summary ...
Page 141: ...MOTOROLA Chapter 5 Static RAM SRAM 5 5 SRAM Programming Model ...
Page 142: ...5 6 MCF5282 User s Manual MOTOROLA SRAM Programming Model ...
Page 168: ...6 26 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 186: ...7 18 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 228: ...9 22 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 246: ...10 18 MCF5282 User s Manual MOTOROLA Low Power Wakeup Operation ...
Page 254: ...11 8 MCF5282 User s Manual MOTOROLA Memory Map and Registers ...
Page 264: ...12 10 MCF5282 User s Manual MOTOROLA Chip Select Registers ...
Page 280: ...13 16 MCF5282 User s Manual MOTOROLA Misaligned Operands ...
Page 314: ...14 34 MCF5282 User s Manual MOTOROLA MCF5282 External Signals ...
Page 339: ...MOTOROLA Chapter 15 Synchronous DRAM Controller Module 15 25 SDRAM Example ...
Page 340: ...15 26 MCF5282 User s Manual MOTOROLA SDRAM Example ...
Page 356: ...16 16 MCF5282 User s Manual MOTOROLA DMA Controller Module Functional Description ...
Page 408: ...17 52 MCF5282 User s Manual MOTOROLA Buffer Descriptors ...
Page 446: ...20 24 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 474: ...22 18 MCF5282 User s Manual MOTOROLA Programming Model ...
Page 510: ...23 36 MCF5282 User s Manual MOTOROLA Operation ...
Page 526: ...24 16 MCF5282 User s Manual MOTOROLA I2C Programming Examples ...
Page 672: ...28 12 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 718: ...29 46 MCF5282 User s Manual MOTOROLA Motorola Recommended BDM Pinout ...
Page 750: ...32 8 MCF5282 User s Manual MOTOROLA Ordering Information ...