11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.4.5.4 Reserved Stack Pointer Registration (Bits 6-23)SP register bits 6 through 23 are reserved for future expansion and will read as zero duringread operations.5.4.6 Loop Address RegisterThe LA is a read/write register which is stacked into the SSH by a DO instruction and isunstacked by end-<strong>of</strong>-Ioop processing or by an ENDDO instruction. The contents <strong>of</strong> the LAregister indicate the location <strong>of</strong> the last instruction word in a program loop. When that lastinstruction is fetched, the processor checks the contents <strong>of</strong> the LC register (see the following<strong>section</strong>). If the contents are not one, the processor decrements the LC and takesthe next instruction from the top <strong>of</strong> the SS. If the LC is one, the PC is incremented, theloop flag is restored (pulled from the SS), the SS is purged, the LA and LC registers arepulled from the SS and restored, and instruction execution continues normally.5.4.7 Loop Counter RegisterThe LC register is a special 16-bit counter which specifies the number <strong>of</strong> times a hardwareprogram loop shall be repeated. This register is stacked into the SSL by a DO instructionand unstacked by end-<strong>of</strong>-Ioop processing or by execution <strong>of</strong> an ENDDO instruction. Whenthe end <strong>of</strong> a hardware program loop is reached, the contents <strong>of</strong> the LC register are testedfor one. If the LC is one, the program loop is terminated, and the LC register is loaded withthe previous LC contents stored on the SS. If LC is not one, it is decremented and theprogram loop is repeated. The LC can be read under program control, which allows thenumber <strong>of</strong> times a loop will be executed to be monitored/changed dynamically. The LC isalso used in the REP instruction5.4.8 Programming Model SummaryThe complete programming model for the DSP56K central processing module is shownin Figure 5-9. Programming models for the peripherals are shown in the appropriate usermanuals. .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!