This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudiov2:modules:mastercontrolport:spiread [12 May 2021 11:50] – [DSP Parameters] Prasad Kamath | resources:tools-software:sigmastudiov2:modules:mastercontrolport:spiread [12 May 2021 12:15] (current) – [DSP Parameter Computation] Prasad Kamath | ||
---|---|---|---|
Line 73: | Line 73: | ||
===== DSP Parameters===== | ===== DSP Parameters===== | ||
\\ | \\ | ||
- | Not applicable | + | ^ Parameter Name ^ Description^ ADAU145x/ |
+ | | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------|---------------------------- | | ||
+ | |spiSpeed|SPI Speed|Integer32| | ||
+ | |spiMode|SPI Protocol Mode|Integer32| | ||
+ | |slaveSelect|SPI Slave Select Channel|Integer32| | ||
+ | |readAddress|Address to be read from|Integer32| | ||
+ | |addressLength|Length of the sub address|Integer32| | ||
+ | |dataLength|Length of the data to be read|Integer32|| | ||
+ | |commandLength|Length of the command sent in bytes|Integer32| | ||
+ | |readInstruction|Instruction value for a read operation (0x1 for ADI audio devices, typically 0x3 for eeprom/ | ||
\\ | \\ | ||
===== DSP Parameter Computation ===== | ===== DSP Parameter Computation ===== | ||
\\ | \\ | ||
- | Not applicable | + | readAddress = AddressToRead < <(8* (4 - (AddressLength + SPICommandLength)) |
+ | \\ | ||
+ | readInstruction = SPIReadInstruction < < (8* AddressLength)+ | ||
\\ | \\ | ||
Line 149: | Line 160: | ||
===== DSP Parameters===== | ===== DSP Parameters===== | ||
\\ | \\ | ||
- | ^ Parameter Name ^ Description | + | ===== DSP Parameters===== |
- | | ---------------------------------------- | -------------------------------------------------------------------------------- | + | \\ |
+ | ^ Parameter Name ^ Description^ ADAU145x/ | ||
+ | | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------|---------------------------- | | ||
|spiSpeed|SPI Speed|Integer32| | |spiSpeed|SPI Speed|Integer32| | ||
|spiMode|SPI Protocol Mode|Integer32| | |spiMode|SPI Protocol Mode|Integer32| | ||
Line 162: | Line 175: | ||
===== DSP Parameter Computation ===== | ===== DSP Parameter Computation ===== | ||
\\ | \\ | ||
- | Not applicable | + | readAddress = AddressToRead < <(8* (4 - (AddressLength + SPICommandLength)) |
+ | \\ | ||
+ | readInstruction = SPIReadInstruction < < (8* AddressLength)+ | ||
\\ | \\ | ||