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.

TLV320AIC3254: How to know if music is not played since a while ?

Part Number: TLV320AIC3254

Dear,

I have an issue close to this one:

https://e2e.ti.com/support/audio/f/6/t/581405?tisearch=e2e-sitesearch&keymatch=music_detect

We tried many components available in purepath but we cannot make our feature.

We just want to be able to shut down our device from our MCU if there isn’t any music played since 20 minutes.

Which component or registers could help us to make it ?

 

Thanks in advance !

JF

  • Hi Jean,

    Have you tried the Music_Detect component? Did it work for your use case?

    I do understand that the hangover period supported is less than 20 minutes and this might be a concern for you.

    I would like to know if the component is suitable for your needs if this requirement were relaxed.

    Best Regards.

  • Dear,

    Thanks for your answer, the problem with "music_detect" component is that the output is sending only -1 or 1.

    The hangover period is not an issue as it is managed with the MCU.

    It seems we are on the good way to make our feature using peak detector and a compare CD component.

    Regards

    JF

  • Hi Jean,

    What would you want the output of Music_Detect to be?  Could you please elaborate how you want the system to work?

    Best Regards.

  • Hi,

    1 or 0 for music or nothing

    It seems we are on the good way to solve our issue using the Digital Peak Detector component.

    Regards

  • Hi Jean,

    Glad to know that you are close to a solution. Please note that the +1/-1 output of Music_Detect can be converted to +1/0 by using an adder and a shift scale.

    Adding 1 (using Add component) and multiplying by 0.5 (using Shift Scale component) will convert -1 to 0 while keeping +1 unchanged.

    Best Regards.