22-4
MCF5282 User’s Manual
MOTOROLA
Operation
• The completed queue pointer, QWR[CPTQP], points to the last command executed.
• The end queue pointer, QWR[ENDQP], points to the final command in the queue.
The internal pointer is initialized to the same value as QWR[NEWQP]. During normal
operation, the following sequence repeats:
1. The command pointed to by the internal pointer is executed.
2. The value in the internal pointer is copied into QWR[CPTQP].
3. The internal pointer is incremented.
Execution continues at the internal pointer address unless the QWR[NEWQP] value is
changed. After each command is executed, QWR[ENDQP] and QWR[CPTQP] are
compared. When a match occurs, QIR[SPIF] is set and the QSPI stops unless wraparound
mode is enabled. Setting QWR[WREN] enables wraparound mode.
QWR[NEWQP] is cleared at reset. When the QSPI is enabled, execution begins at address
0x0 unless another value has been written into QWR[NEWQP]. QWR[ENDQP] is cleared
at reset but is changed to show the last queue entry before the QSPI is enabled.
QWR[NEWQP] and QWR[ENDQP] can be written at any time. When the QWR[NEWQP]
value changes, the internal pointer value also changes unless a transfer is in progress, in
which case the transfer completes normally. Leaving QWR[NEWQP] and QWR[ENDQP]
set to 0x0 causes a single transfer to occur when the QSPI is enabled.
Data is transferred relative to QSPI_CLK which can be generated in any one of four
combinations of phase and polarity using QMR[CPHA,CPOL]. Data is transferred with the
most significant bit (msb) first. The number of bits transferred defaults to 8, but can be set
to any value between 8 and 16 by writing a value into the BITSE field of the command
RAM (QCR[BITSE]).
22.4.1 QSPI RAM
The QSPI contains an 80-Byte block of static RAM that can be accessed by both the user
and the QSPI. This RAM does not appear in the MCF5282 memory map because it can only
be accessed by the user indirectly through the QSPI address register (QAR) and the QSPI
data register (QDR). The RAM is divided into three segments with 16 addresses each:
• Receive data RAM, the initial destination for all incoming data
• Transmit data RAM, a buffer for all out-bound data
• Command RAM, where commands are loaded
The transmit and command RAM are user write-only. The receive RAM is user read-only.
Figure 22-2 shows the RAM configuration. The RAM contents are undefined immediately
after a reset.
The command and data RAM in the QSPI is indirectly accessible with QDR and QAR as
48 separate locations that comprise 16 words of transmit data, 16 words of receive data and
Содержание ColdFire MCF5281
Страница 1: ...MCF5282UM D Rev 2 1 2004 MCF5282 ColdFire Microcontroller User s Manual Devices Supported MCF5281 ...
Страница 124: ...3 20 MCF5282 User s Manual MOTOROLA EMAC Instruction Set Summary ...
Страница 141: ...MOTOROLA Chapter 5 Static RAM SRAM 5 5 SRAM Programming Model ...
Страница 142: ...5 6 MCF5282 User s Manual MOTOROLA SRAM Programming Model ...
Страница 168: ...6 26 MCF5282 User s Manual MOTOROLA Interrupts ...
Страница 186: ...7 18 MCF5282 User s Manual MOTOROLA Functional Description ...
Страница 228: ...9 22 MCF5282 User s Manual MOTOROLA Functional Description ...
Страница 246: ...10 18 MCF5282 User s Manual MOTOROLA Low Power Wakeup Operation ...
Страница 254: ...11 8 MCF5282 User s Manual MOTOROLA Memory Map and Registers ...
Страница 264: ...12 10 MCF5282 User s Manual MOTOROLA Chip Select Registers ...
Страница 280: ...13 16 MCF5282 User s Manual MOTOROLA Misaligned Operands ...
Страница 314: ...14 34 MCF5282 User s Manual MOTOROLA MCF5282 External Signals ...
Страница 339: ...MOTOROLA Chapter 15 Synchronous DRAM Controller Module 15 25 SDRAM Example ...
Страница 340: ...15 26 MCF5282 User s Manual MOTOROLA SDRAM Example ...
Страница 356: ...16 16 MCF5282 User s Manual MOTOROLA DMA Controller Module Functional Description ...
Страница 408: ...17 52 MCF5282 User s Manual MOTOROLA Buffer Descriptors ...
Страница 446: ...20 24 MCF5282 User s Manual MOTOROLA Interrupts ...
Страница 474: ...22 18 MCF5282 User s Manual MOTOROLA Programming Model ...
Страница 510: ...23 36 MCF5282 User s Manual MOTOROLA Operation ...
Страница 526: ...24 16 MCF5282 User s Manual MOTOROLA I2C Programming Examples ...
Страница 672: ...28 12 MCF5282 User s Manual MOTOROLA Functional Description ...
Страница 718: ...29 46 MCF5282 User s Manual MOTOROLA Motorola Recommended BDM Pinout ...
Страница 750: ...32 8 MCF5282 User s Manual MOTOROLA Ordering Information ...
Страница 800: ...A 22 MCF5282 User s Manual MOTOROLA ...