This is an old revision of the document!
Click here to return to the Inputs and Outputs Toolbox page.
The Interface Write module writes the value of the parameter setting to the EEPROM when required, so that the parameter setting can be used after the power down(via selfboot).The module can write the value to EEPROM when the parameter value is changed or periodically or an external trigger(rising edge). The module supports writes through SPI or I2C protocols.
The Interface Write module has the following properties which can be set by the user in the form to configure the I2C or SPI modes.
NOTE:
Name | Format [int/dec/float] - [control/audio] | Function Description |
---|---|---|
Pin 0: Input | decimal(ADAU145x)- audio float(214xx) - audio | Input signal to be filtered |
The module doesn't supports growth functionality. Add is not supported.
GUI Control Name | Default Value | Range | Function Description |
---|---|---|---|
Protocol | 1 | 0-1 | The Protocol selected - I2C(0) or SPI(1) |
Bitrate | 100kHz | 400/800/1000 kHz(I2C), 100-100000KHz (SPI) | I2C/ SPI Speed |
Sub Address Bytes | 3 | 1-3 | Length of the address for SPI/I2C |
Device Address | 0 | I2C: Slave address 0-127 SPI: Slave select 0-6 | Slave Adddress |
SPI Mode | 1 | 0-1 | SPI Modes 0 or 3 |
Command Length | 1 | 0-255 | This is the SPI R/W instruction bytes |
Write Instruction (SPI) | 2 | 0-255 | SPI write command bytes |
Read Instruction(SPI) | 3 | 0-255 | SPI read command bytes |
Write-Enable instruction (SPI) | 6 | 0-255 | Write enable for SPI |
Write mode | 0 | 0-2 | The triggering modes for Interface write module, 0- write on Value change, 1-write Periodically with set write interval, 2- write on GPIO trigger |
GUI Control Name | Compiler Name | Function Description |
---|---|---|
Protocol | InterfaceWrite300Protocol | The Number of filter coefficient sets |
Bitrate | FirFiltPoolS300Alg1TapSize | The Number of filter taps in each coefficient set |
Sub-Address Bytes | FirFiltPoolS300Alg1InIndx | The selected input index |
FiltIndx | FirFiltPoolS300Alg1FIltIndx | The Selected filter coefficient set index |
Device Address | FirFiltPoolS300Alg1RevIndx | The Selected Reverse Index, if set(value=1), the coefficient access order for filtering is reversed |
SPI Mode | FirFiltPoolS300Alg1InvIndx | The Selected Invert Index, if set(value=1), the output value is negated |
The interface write module can be used an outpur moudule to the UPDown LUT. The Interface write module writes the output of the UPDown LUT parameter setting to the EEPROM if the conditions to write are satisfied.
The Interface write module can be used to store any the parameter setting to the EEPROM and read it back during the selfboot using the corresponding Interface read module. When the GPIO trigger is a rising edge signal, the Interface write module will write to the EEPROM. During the powerdown, a rising edge signal can be provided in the GPIO to store the interface value to EEPROM.
The Interface write module can be used to write any value to the EEPROM and read it back during the selfboot using the corresponding Interface read module.