Dear Sirs,
I want to auto shutdown external audio AMP when ADC input and I2S input data was very small.
Is there any interrupt pin(output pin) could do this function ? TKS !
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.
Dear Sirs,
I want to auto shutdown external audio AMP when ADC input and I2S input data was very small.
Is there any interrupt pin(output pin) could do this function ? TKS !
Hello Terry,
In PurePath Studio, there is a GPIO Output component under the InputOutput pallete. You can select the InterruptPin in the properties window shown for this component.
The GPIO component generates and interrupt when its input value is non-zero. Note that you probably want to connect the GPIO pin to an MCU and use the MCU to control the amplifier mute.
You can accomplish what you are looking for using a Peak Detector component (under Level Detectors) and a CompareCD component (under Basic DSP). If level is below a certain value, output '1' to generate an interrupt.
Each component has a help file which can be accessed by rigth clicking the component.
I recommend you to evaluate each component independently. In other words, connect the peak detector to the I2S output and monitor the data using an audio recording software. Once that works, add the CompareCD component and see if it behaves properly. Lastly, replace the I2S output with the GPIO component and monitor the GPIO output with an oscilloscope.
Regards,
J-
Hello J-,
Thanks your help !
- May I know if codec is AIC3204 without mini-DSP, any suggestion how to do ?
- This is my understanding and pls correct me if its incorrect.
For ADC input,may I use this register(Page 0 / Register 45 Left ADC DC Measurement Data Available Flag ) to judge silence or not ?
For I2S input , may I use this register(Page 0 / Register 64 ) and register (Page 0 / Register 37 )DAC Flag Register
to judge silence or not ?
==========================================================
Register 45
Left ADC DC Measurement Data Available Flag
0: Data not available
1: Data available (will be cleared when the register is read)
================================================================================
Register 64
DAC Auto Mute Control
000: Auto Mute disabled
001: DAC is auto muted if input data is DC for more than 100 consecutive inputs
010: DAC is auto muted if input data is DC for more than 200 consecutive inputs
011: DAC is auto muted if input data is DC for more than 400 consecutive inputs
100: DAC is auto muted if input data is DC for more than 800 consecutive inputs
101: DAC is auto muted if input data is DC for more than 1600 consecutive inputs
110: DAC is auto muted if input data is DC for more than 3200 consecutive inputs
111: DAC is auto muted if input data is DC for more than 6400 consecutive inputs
==================================================================
Register 37
Left DAC Power Status Flag
0: Left DAC Powered Down
1: Left DAC Powered Up
Hi Terry,
In DC measurement mode, DOUT data is 0. In such case you will not be able to listen to audio data into the ADC.
Auto-mute is activated when the DIN data is exactly zero (0x0000 for 16-bit).
For your application, it seem that the TLV320AIC3254 is a better fit.
Regards,
J-