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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADSP-2126x/2136x/2137x Processor Booting<br />

From the perspective of the processor, there is no difference between booting<br />

from the three types of SPI slave devices. Since SPI is a full-duplex<br />

protocol, the processor is receiving the same amount of bits that it sends as<br />

a read comm<strong>and</strong>. The read comm<strong>and</strong> comprises a full 32-bit word (which<br />

is what the processor is initialized to send) comprised of a 24-bit address<br />

with an 8-bit opcode. The 32-bit word, received while the read comm<strong>and</strong><br />

is transmitted, is thrown away in hardware <strong>and</strong> can never be recovered by<br />

the user. Consequently, special measures must be taken to guarantee that<br />

the boot stream is identical in all three cases.<br />

The processor boots in least significant bit first (LSB) format, while most<br />

serial memory devices operate in most significant bit first (MSB) format.<br />

Therefore, it is necessary to program the device in a fashion that is compatible<br />

with the required LSB format. See “Bit-Reverse Option for SPI<br />

Boot Modes” on page 5-13 for details.<br />

Also, because the processor always transmits 32 bits before it begins reading<br />

boot data from the slave device, the loader utility must insert extra<br />

data into the byte stream (in the loader file) if using memory devices that<br />

do not use the LSB format. The loader utility includes an option for creating<br />

a boot stream compatible with both endian formats, <strong>and</strong> devices<br />

requiring 16-bit <strong>and</strong> 24-bit addresses, as well as those requiring no read<br />

comm<strong>and</strong> at all. See “Initial Word Option for SPI Master Boot Modes”<br />

on page 5-14 for details.<br />

Figure 5-1 shows the initial 32-bit word sent out from the processor. As<br />

shown in the figure, the processor initiates the SPI master boot process by<br />

writing an 8-bit opcode (LSB first) to the slave device to specify a read<br />

operation. This read opcode is fixed to 0xC0 (0x03 in MSB first format).<br />

Following that, a 24-bit address (all zeros) is always driven by the proces-<br />

5-12 <strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!