Datasheet

5.6. STA013 CONFIGURATION FILE FORMAT
The STA013 Configuration File is an ASCII format. An example of the file format is the following:
58 1
42 4
128 15
............
It is a sequence of rows and each one can be interpreted as an I
2
C command.
The first part of the row is the I
2
C address (register) and the second one is the I
2
C data (value).
To download the STA013 configuration file into the device, a sequence of write operation to STA013 I
2
C
interface must be performed.
The following program describes the I
2
C routine to be implemented for the configuration driver:
STA013 Configuration Code (pseudo code)
download cfg - file
{
fopen (cfg_file);
fp:=1; /*set file pointer to first row */
do
{
I
2
C_start_cond; /* generate I
2
C start condition for STA013 device address */
I
2
C_write_dev_addr; /* write STA013 device address */
I
2
C_write_subaddress (fp); /* write subaddress */
I
2
C_write_data (fp); /* write data */
I
2
C_stop_cond; /* generate I
2
C stop condition */
fp++; /* update pointer to new file row */
}
while
(!EDF) /* repeat until End of File */
} /* End routine */
42 4 I
2
C REGISTER VALUE
I
2
C SUB-ADDRESS
D98AU976
Note:1
STA013 is a device based on an integrated DSP core. Some of the I2C registers default values are loaded after an internal DSP boot operation.
The bootstrap time is 60 micro second. Only after this time lenght, the data in the register can be considered stable.
Note 2
:
Refer also to the application note 1090
STA013 - STA013B - STA013T
34/38