25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

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.

<strong>Loader</strong> for ADSP-21161 SHARC Processors<br />

The processor’s DMA controller reads the 8-bit EPROM words, packs<br />

them into 48-bit instruction words, <strong>and</strong> transfers them to internal memory<br />

until 256 words have been loaded. The EPROM is automatically<br />

selected by the BMS pin; other memory select pins are disabled.<br />

The master DMA internal <strong>and</strong> external count registers (ECEP0/CEP0) decrement<br />

after each EPROM transfer. When both counters reach zero, the<br />

following wake-up sequence occurs:<br />

1. DMA transfers stop.<br />

2. External port DMA channel 10 interrupt (EP0I) is activated.<br />

3. The BMS pin is deactivated, <strong>and</strong> normal external memory selects are<br />

activated.<br />

4. The processor vectors to the EP0I interrupt vector at 0x40050.<br />

At this point, the processor has completed its boot <strong>and</strong> is executing<br />

instructions normally. The first instruction at the EP0I interrupt vector<br />

location, address 0x40050, should be an RTI (return from interrupt). This<br />

process returns execution to the reset routine at location 0x40005 where<br />

normal program execution can resume. After reaching this point, a program<br />

can write a different service routine at the EP0I vector location<br />

0x40050.<br />

Host Boot Mode<br />

The processor can boot from a host processor through the external port.<br />

Host booting is selected when the EBOOT <strong>and</strong> LBOOT inputs are low <strong>and</strong> BMS<br />

is high. Configured for host booting, the processor enters the slave mode<br />

after reset <strong>and</strong> waits for the host to download the boot program.<br />

The DMAC10 control register is initialized for booting, packing boot data<br />

into 48-bit instructions. Channel 10 of the IO processor’s DMA controller<br />

is used to transfer instructions to internal memory. Processors accept<br />

data from 8- or 16-bit host microprocessor (or other external devices).<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> 4-9

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

Saved successfully!

Ooh no, something went wrong!