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.
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
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
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
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
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.
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.
# 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 w 9c 73 a0 # I/P channel 1 enabled w 9c 74 a0 # ASI out ch 1 & 3 enabled w 9c 21 22 # GPIO1 as IRQ (latched only) driving high and low w 9c 22 01 # GPO disabled w 9c 2b 00 # GPI disabled w 9c 3b 00 # GPI2 disabled w 9c 33 e7 # unmask VAD interrupt, w 9c 32 60 # 2ms one time pulse w 9c 6b 03 # cutoff frequency 0.008fs w 9c 00 01 # go to page 1 w 9c 1e 40 # Channel 1 as VAD input, auto mode , internal clk w 9c 1f 08 # VAD enabled in recording mode w 9c 00 00 # go to page 0 w 9c 75 e1 # Enable VAD, power up adc and pdm channels, micbias