This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV310AIC34 Configuration

hi

im using the aic34 board for audio recording, but each time i'm configuring the board i'm getting different results
 - by different results i mean different recording quality and sometimes i cant record at all.

the configuration i use is without AGC so there should not be any active function the board should do and therefore i expect the recording quality should be the same for the same configuration.

i am suspecting that sometimes the writes commands are ignored by the board.

according to the manual i should press HW_Reset before writing , and even after doing so i still dont get the same results.

another thing is that sometimes i dont get req_done indication, also when reading the value from register i dont get the expected results.


any idea why the writes are failing? is there a way to dump all registers values to txt file ?

the configuration im using is:

in the first part im just making sure that registers are in default value

i i2cfast

%%reset value configuration
w 30 02 00
w 30 03 10
w 30 04 04
w 30 05 00
w 30 06 00
w 30 09 00
w 30 0a 00
w 30 0b 01
w 30 0d 00
w 30 0e 00
w 30 15 78
w 30 18 78
w 30 1b fe
w 30 1f 00
w 30 20 00
w 30 21 00
w 30 22 00
w 30 23 00
w 30 24 00
w 30 25 00
w 30 26 00
w 30 27 00
w 30 28 00
w 30 29 00
w 30 2a 00
w 30 2b 80
w 30 2c 80
w 30 2d 00
w 30 2e 00
w 30 2f 00
w 30 30 00

%%recording configuration
w 30 07 80
w 30 11 FF
w 30 12 FF
w 30 13 04
w 30 16 04
w 30 17 84
w 30 13 84
w 30 14 04
w 30 0F 59
w 30 10 80
w 30 19 80
w 30 1a 00
w 30 1C 3E
w 30 1D 00
w 30 1E 3E
w 30 0C 50
w 30 08 40
w 30 08 C0

Thanks in Advance

guy

  • Hi, Guy,

    Have you checked the WCLK and BCLK signals on the AIC34 board? When the codec is configured in master mode (w 30 08 C0), it is necessary to disable the USB I2S signals on USB-MODEVM INTERFACE. If these signals are enabled, the WCLK and BCLK could not work correctly.

    Best regards,
    Luis Fernando Rodríguez S.

  • yes  the USB i2s signals are disabled


    is there any indication of failed i2c command?

    how can i now for sure that the commands are being executed?

    thanks

  • Hi, Guy,

    I was testing your script on the TLV320AIC34EVM. I changed the order of the register configuration, but It didn't work. However, I noticed that when I added two spaces after the line 30 14 04, the EVM worked.

    w 30 02 00
    w 30 03 10
    w 30 04 04
    w 30 05 00
    w 30 06 00
    w 30 09 00
    w 30 0a 00
    w 30 0b 01
    w 30 0d 00
    w 30 0e 00
    w 30 15 78
    w 30 18 78
    w 30 1b fe
    w 30 1f 00
    w 30 20 00
    w 30 21 00
    w 30 22 00
    w 30 23 00
    w 30 24 00
    w 30 25 00
    w 30 26 00
    w 30 27 00
    w 30 28 00
    w 30 29 00
    w 30 2a 00
    w 30 2b 80
    w 30 2c 80
    w 30 2d 00
    w 30 2e 00
    w 30 2f 00
    w 30 30 00
    w 30 08 40
    w 30 08 C0
    w 30 07 80
    w 30 11 FF
    w 30 12 FF
    w 30 13 04
    w 30 16 04
    w 30 17 84
    w 30 13 84
    w 30 14 04[space][space]
    w 30 19 80
    w 30 0C 50
    w 30 0F 59
    w 30 10 80

    It could be related with a GUI problem.

    Have you tested the preset configurations to verify if the I2C interface works?

    Best regards,
    Luis Fernando Rodríguez S.
  • hi

    i tried adding the spaces where you did , still no luck.

    the i2c interface works as far as i understand because i am able to perform writes sometimes,

    but sometimes is not good enough , im trying to build a product using it and i need to be 100% sure that the board is configured as i want.

    as there i way i can find out if there is a HW issue with the board?

  • Hi, Guy,

    The preset configurations are good to determine if the I2C interface works. They should work the 100% of times. Have you tried these configurations? If the problem persists, it could be a problem on the I2C interface pins or the jumpers of the USB-MODEVM INTERFACE. Did you check if the jumpers are placed in default position? Finally, is there a way to write the I2C commands with an external circuit?

    Best regards,
    Luis Fernando Rodríguez S.
  • preset configuration works fine , i have no other way to check the i2c interface

    im pretty sure that interface jumper are in default position , but ill verify it and update

    anything else that i can do?

    thanks

  • Hi, Guy,

    If there's no problem with preset configurations, probably the register configuration sequence is not the best. Have you tried writing the lines in a different order? Additionally, have you tried writing the lines separately? I mean, send one line per time.

    Best regards,
    Luis Fernando Rodríguez S.
  • hi

    i tried changing the lines order , and i also tried to write the same sequence few times,

    each time im getting different results


    i tried the folowing:

    configure registers

    configure registers

    configure registers

    configure registers

    enable ADC both left and right

    enable AGC both left and right

    write to bclk wclk

    each time i run it (after reseting the board) im getting different results

    also each time i rerun the script (without reseting the board) im getting different results

    any more ideas?

    thanks

  • hi

    so far i was working with windows 10

    i think im getting more consistent results when using windows 7

    are you aware of any drivers issue with the board? is there a recommended operating system i should use?

    thanks

  • Hi, Guy,

    There's no a recommended operating system for the EVMs. However, have you tried to use the troubleshoot compatibility when you run the GUI? Do you get better results?

    Best regards,
    Luis Fernando Rodríguez S.