Return to previous page Return to menu Go to next page

4.4 Execution of special processing

The DSP can execute the following special processing.

(1) Program loading method using DMA instructions
(2) Repeating one instruction
(3) Execution of subroutine program

■ How to load a program with DMA instructions

Previously, loading from the CPU was explained as a method for loading the program (see section 2.3), but the program can also be loaded into the DSP program RAM using the DSP DMA instruction. .
The program is loaded in the following format.

MVI Imm, [RA0]; Set external memory transfer start address
DMA D0, [PRG], SImm; set number of transfer words, start transfer
MVI Imm, [PC]; Set program execution start address 

■ Repeat one instruction

The following shows the format of repeated execution of one instruction. The one instruction repeat execution instruction (LPS instruction, refer to Section 4.5 “Instruction” LOOP BOTTOM instruction part) repeatedly executes the next instruction. The repeat count is executed once more than the set value.

MVI Imm, [LOP]; Set the number of repetitions
LPS; repeat execution command
### #; This command is executed repeatedly. 


Return to previous page Return to menu Go to next page