Wiki

This version is outdated by a newer approved version.DiffThis version (30 Jun 2017 10:46) is a draft.
Approvals: 0/1
The Previously approved version (22 Nov 2016 07:18) is available.Diff

This is an old revision of the document!


External SPI Delay

Click here to return to the Basic DSP section.

This module can be used to implement off-chip delay using the SPI interface.

Input Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Input Datadecimal - audioInput audio signal


Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Output Datadecimal - audioDelayed audio signal


GUI Controls

GUI Control NameDefault ValueRangeFunction Description
Max1 1 - (Depends on Size of the SPI RAM)This control specifies the maximum delay supported for the current instance in samples (32-bit word). Maximum value of this is calculated depends on the SPI RAM's configuration. Change in this value requires a re-compilation
Cur1 1 - MaxCurrent delay value


Grow Algorithm

The module currently does not support grow functionality and only one instance is supported.

Configurations

Click on the image to configure the SPI interface for the module.


GUI Control NameDefault ValueRangeFunction Description
Bit Rate100kHZ 100 kHZ - 100000 kHZ SPI Speed
Default Chip/ Device Address0 0-6 Slave Select for the SPI. Register window should be configured to match this selection.Please refer the note below.
Sub-Address Bytes2 1-4 Number of address bytes excluding the read/write command
Ram Size128KB0-32MBTotal Size of RAM used for delay buffer
SPI ModeMode 3 Mode0/Mode3SPI operation mode
R/W (Chip Address) Bytes10-255Command Bytes (Number of bytes required for command)
Write Instruction (SPI)20-255 Instruction value for a write operation (0x0 for ADI audio devices, typically 0x2 for eeprom/flash)
Read Instruction (SPI)30-255Instruction value for a read operation (0x1 for ADI audio devices, typically 0x3 for eeprom/flash)
Write-Enable instruction (SPI)60-255Instruction value for device write-enable operation

Any change in these SPI configuration parameters requires a recompilation.

Note:If the Default Chip/ Device Address is 1 and MP0 is used as chip select, no configuration is required in the register controls. Otherwise particular multipurpose pin should be configured act as the slave select in the register window. (Hardware Configuration → ICx - ADAU145x Register Controls → MULTIPURPOSE/ AUXADC)



  1. Slave Select Channel → 'Slave Select Channel x'
  2. MPx pin mode → 'Slave Select for Master SPI port'
  3. MPx pin function → 'Multipurpose function'



There is some inconsistency between register control and the 'Default chip/Device Address' in the module. The following table shows the mapping between module's parameter and the register control window.

' Default chip/Device Address' 'Slave Select Channel' in the Register control
2 Slave Select Channel 0
4 Slave Select Channel 1
16 Slave Select Channel 2
32 Slave Select Channel 3
64 Slave Select Channel 4
128 Slave Select Channel 5


DSP Parameter Information

GUI Control NameCompiler NameFunction Description
CurADAU145XConfigurableExtRamDelayAlg1delayCurrent Delay value in bytes. (Cur * 4)

Supported ICs

  1. ADAU145x
resources/tools-software/sigmastudio/toolbox/basicdsp/externalspidelay.1498812393.txt.gz · Last modified: 30 Jun 2017 10:46 by Venkatesan Krishnamoorthy