AnsweredAssumed Answered

ADSP21262 as SPI slave

Question asked by sander on Jun 2, 2010
Latest reply on Jun 7, 2010 by jeyanthi.jegadeesan

Hello,

 

I'm using an ADSP-21262 which is configured to boot from a spi slave eeprom.

When the program is executed I want the ADSP to act as an spi slave with DMA support.

 

The master is some microcontroller which communicates with the ADSP as if it where

a spi memory chip.

 

During communication, the master microcontroller starts with sending 4 control bytes:

byte 0: Opcode,     Read/Write

byte 1: Length,      length of read/write data after control block.

byte 2: address.    read/write address (MSB)

byte 3: address.    read/write address (LSB)

 

After the control bytes are received by the ADSP a interrupt should be generated.

In this interrupt the DMA pointers will be set to the given address and data will be received/send for the given length.

 

 

In the picture below I've made a schematic of what I beleive is the right connection between microcontroller, dsp and eeprom.

 

Can you tell me if this schematic is correct?!

Is there a software example which implements a spi slave with DMA support?!

 

spi_master.JPG

Kind Regards


Sander

Outcomes