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: Change AGC parameters on the fly

Part Number: TLV320AIC3254

Hi

We would like to change the AGC parameters on the fly, but we can't found any example on the SLAA446 (https://www.tij.co.jp/jp/lit/an/slaa446/slaa446.pdf?ts=1644569064239&ref_url=https%253A%252F%252Fwww.google.com%252F).

We are referring  to the SLAA474(https://www.ti.com/lit/an/slaa474/slaa474.pdf?ts=1644809668595) , it has the example for changing the AGC parameter on the fly.

But we only use the normal AGC function(not STAGC), could we use the following script on normal AGC.

Example5.STAGC_RAllParameterChange

# -- MuteADCs and disable noise threshold:
w 30 00 00 # Switchto Page0
w 30 52 88 # MuteLADC/RADC
w 30 57 40 # Disable LAGC Noise Threshold,Hysteresis= 2dB
w 30 5F 40 # DisableRAGCNoiseThreshold,Hysteresis= 2dB
# -- Begin STAGC_R parameter change
w 30 56 12 # SetLAGCTargetLevel= -8dB,GainHysteresis= 1dB
w 30 5E 12 # SetRAGCTargetLevel= -8dB,GainHysteresis= 1dB
w 30 58 28 # SetLAGCMaxGain= 20dB
w 30 60 28 # SetRAGCMaxGain= 20dB
w 30 59 10 # SetLAGCAttack= 5*32ADC_FScycles,scalefactor= 1
w 30 61 10 # SetRAGCAttack= 5*32ADC_FScycles,scalefactor= 1
w 30 5A 10 # SetLAGCDecay= 5*512ADC_FScycles,scalefactor= 1
w 30 62 10 # SetRAGCDecay= 5*512ADC_FScycles,scalefactor= 1
w 30 5B 01 # SetLAGCNoiseDebounce= 4 ADC_FScycles
w 30 63 01 # SetRAGCNoiseDebounce= 4 ADC_FScycles
w 30 5C 01 # SetLAGCSignalDebounce= 4 ADC_FScycles
w 30 64 01 # SetRAGCSignalDebounce= 4 ADC_FScycles
# -- End STAGC_R parameter change
f 30 5D 00101000# Wait for LAGC Gain flag to reach LAGCMaxGain(00101000= 20dB)
f 30 65 00101000# Wait for RAGC Gain flag to reachLAGCMaxGain(00101000= 20dB)
w 30 57 74 # Re-enableLAGCNoiseThreshold= -80dB,Hysteresis= 2dB
w 30 5F 74 # Re-enableRAGCNoiseThreshold= -80dB,Hysteresis= 2dB
w 30 52 88 # Un-muteLADC/RADC

Thanks

BR

Trevor