Motorola DSP56800 Manual page 253

16-bit digital signal processor
Table of Contents

Advertisement

Example A-1. Arithmetic Instruction with Two Parallel Reads (Continued)
2. Evaluate the "mv" term using Table A-12 on page A-19.
The parallel move portion of the MACR instruction consists of an XX memory read.
According to Table A-12 on page A-19, the parallel move portion of the instruction will
require mv = axx additional oscillator clock cycles. The term "axx" represents the number
of additional oscillator clock cycles (if any) that are required to access two operands in the
X memory.
3. Evaluate the "axx" term using Table A-20 on page A-22.
The parallel move portion of the MACR instruction consists of an XX Memory Read.
According to Table A-20 on page A-22, the term "axx" depends upon where the
referenced X memory locations are located in the DSP56800 memory space. External X
memory accesses may require additional oscillator clock cycles depending on the memory
device's speed. Here we assume external X memory accesses require wx = 0 wait state or
additional oscillator clock cycles. For this example, the second X memory reference is
assumed to be an internal reference, while the first X memory reference is assumed to be
an external reference. Thus, according to Table A-20 on page A-22, the XX memory
reference in the parallel move portion of the MACR instruction will require axx = wx = 0
additional oscillator clock cycle.
4. Compute the final results.
Thus, based upon the assumptions given for Table A-11 on page A-18, the instruction
MACR X0,Y0,A
will require 1 instruction program word and will execute in
(2 + mv) = (2 + axx) = (2 + wx) = (2 + 0) = 2 oscillator clock cycles.
If a similar calculation were made for a MOVEC, MOVEM, or one of the
bit-field manipulation instructions (BFCHG, BFCLR, BFSET or
BFTST), using Table A-12 on page A-19 would no longer be appropriate.
The user would refer to Table A-13 on page A-20, Table A-14 on
page A-20, or Table A-15 on page A-20, respectively.
Problem
Calculate the number of DSP56800 instruction program words and the number of oscillator clock cycles
required for the following instruction:
JEQ $2000
Where the following conditions are true:
OMR = $02 (normal expanded memory map).
External P memory accesses require four wait states (assume external memory access requires 4
wait states in this example).
X:(R0)+,Y0
X:(R3)+,X
NOTE:
Example A-2. Jump Instruction
Instruction Set Details
A-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents