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.

<strong>Loader</strong> for ADSP-2126x/2136x/2137x SHARC Processors<br />

SPI master booting uses the default bit settings shown in Table 5-7.<br />

Table 5-7. SPI Master Boot Mode Bit Settings<br />

Bit Setting Comment<br />

SPIEN Set (= 1) SPI enabled<br />

MS Set (= 1) Master device<br />

MSBF Cleared (= 0) LSB first<br />

WL 10 32-bit SPI receive shift register word length<br />

DMISO Cleared (= 0) MISO enabled<br />

SENDZ Set (= 1) Send zeros<br />

SPIRCV Set (= 1) Receive DMA enabled<br />

CLKPL Set (= 1) Active low SPI clock<br />

CPHASE Set (= 1) Toggle SPICLK at the beginning of the first bit<br />

The SPI DMA channel is used when downloading the boot kernel information<br />

to the processor. At reset, the DMA parameter registers are<br />

initialized to the values listed in Table 5-8.<br />

Table 5-8. Parameter Registers Settings for SPI Master Boot<br />

Parameter Register Initialization Value Comment<br />

SPICTL 0x0000 5D06<br />

SPIBAUD 0x0064 CCLK/400 =500 KHz@ 200 MHz<br />

SPIFLG 0xfe01 FLG0 used as slave-select<br />

SPIDMAC 0x0000 0007 Enable receive interrupt on completion<br />

IISPI 0x0008 0000 Start of block 0 normal word memory<br />

IMSPI 0x0000 0001 32-bit data transfers<br />

CSPI 0x0000 0180 0x100 instructions = 0x180 32-bit words<br />

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

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

Saved successfully!

Ooh no, something went wrong!