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.

TLV320ADC5120: TLV320ADC5120 Voice-activity-detection Function

Part Number: TLV320ADC5120

Tool/software:

Hello TI team,

Now I'm trying to enable the voice-activity-detection function(VAD) on TLV320ADC5120 EVK board, but failed: no interrupt occurs when the signal gets into EVK.

Here are some configurations:

      

Except for these configurations, are there any other settings do I need to do?

Besides, I wonder on which occasion should this feature be available? Do I need click ACTIVE button for test? Or this function only works when ADC is on power down mode? 

  • Hi,

    Can you share the ppc3 configuration file used with the EVM where the VAD is being configured?

    Thanks and Regards,

    Lakshmi Narasimhan

  • Hi,

    I am checking this configuration out, I will update this thread by tomorrow.

    Thanks and Regards,

    Lakshmi Narasimhan

  • That would be great. Thank you very much.

  • Hi,

    Apologies for the delay, I am working on replicating this configuration and checking the interrupts on my side with PPC3. I will share an update by Monday.

    Thanks and Regards,

    Lakshmi Narasimhan

  • No problem. I really appreciate it. Thank you.

  • Hi,

    The GPIO1 pin for interrupt configuration needs the required interrupts to be unmasked from the GPIO/interrupts tab in the PPC3.

    The checkboxes indicate that the listed interrupts are masked. Unmasking the same can give interrupt event on GPIO1.

    Thanks and Regards,

    Lakshmi Narasimhan

  • It works for me! Thank you so much.

  • Hi, I met another problem. As this chip has two channels as analog input, so I want to monitor these two channels at the same time. I found that when the initial settings is for channel 1, it works, but if I switch to channel 2 and want to monitor it, I also have to switch the chip to inactive mode and then switch back to active mode, after which channel 2 is able to work, or it won't. So is it a necessary operation to switch between channel 1 and channel 2 by deactivating and activating? Because it costs much time, so could you please give me some suggestions about it?

  • Hi Ken,

    The VAD is not able to switch recording sources on the fly. It was not intended to support recording on multiple channels, only to monitor a single input.

    Best regards,
    Jeff McPherson

  • I got it. Thank you Jeff.

  • Hi Jeff, I have one more question for VAD feature. If the system doesn't offer any clocks, like bclk or mclk to TVL320ADC5120, is VAD function able to work, detecting the audio? I tried to find how to implement it but have no clues yet. Want to know how to generate and use internal clock as the datasheet said.

  • There is an internal oscillator clock within the device that allows VAD to enable in low power applications without BCLK or MCLK provided to the device.

    www.ti.com/.../sbaa490a.pdf

  • Thank you Daveon. I tried these steps and fixed some values of this guide. But still no interrupt occur. I wonder if there is any other registers I need to set to make this feature work. And I measured the voltage of AREG, which is 1,8V already.

  • Try this script, I used the onboard mic in this validation.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    # Power up IOVDD and AVDD power supplies
    # Wait for 1ms.
    #
    w 9C 00 00 # Goto Page 0
    w 9c 01 01 # reset device
    w 9c 00 00 # go to page 0
    w 9C 02 81 # Wake-up device and enable AREG
    #ASI Configuration
    w 9c 07 00
    w 9c 0b 00
    w 9c 0c 01
    w 9c 0d 02
    w 9c 0e 03
    d 10 # Wait for 16 ms
    w 9c 00 07 # go to page 7
    w 9c 7c 00 5d c0 00 # 3s learning period
    w 9c 00 09 # go to page 9
    w 9c 50 00 72 59 dc # -7dB threshold
    w 9C 00 00 # Goto Page 0
    w 9c 3c 00 # channel 1 set to Analog input
    w 9c 41 40 # channel 2 set to PDM input
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • It works! Thank you so much:)