
2.10.1DRCImplementation
t
a
+
*1
f
S
ȏn(1 * aa)
t
d
+
*1
f
S
ȏn(1 * ad)
2.10.2Compression/ExpansionCoefficientComputationEngineParameters
TAS5518C
8-ChannelDigitalAudioPWMProcessor
www.ti.com
SLES238A–SEPTEMBER2008–REVISEDJULY2009
•Slopesk0,k1,andk2definewhethercompressionorexpansionistobeperformedwithinagiven
region,andthedegreeofcompressionorexpansiontobeapplied.Slopesareprogrammedas28-bit
(5.23format)numbers.
ThethreeelementscomprisingtheDRCinclude:(1)anrmsestimator,(2)acompression/expansion
coefficientcomputationengine,and(3)anattack/decaycontroller.
•RMSestimator—ThisDRCelementderivesanestimateofthermsvalueoftheaudiodatastreaminto
theDRC.FortheDRCblocksharedbyCh1andCh2,twoestimatesarecomputed—anestimateofthe
Ch1audiodatastreamintotheDRC,andanestimateoftheCh2audiodatastreamintotheDRC.The
outputsofthetwoestimatorsarethencompared,sample-by-sample,andthelarger-valuedsampleis
forwardedtothecompression/expansioncoefficientcomputationengine.
Twoprogrammableparameters,aeand(1–ae),settheeffectivetimewindowoverwhichtherms
estimateismade.FortheDRCblocksharedbyCh1andCh2,theprogrammableparametersapplyto
bothrmsestimators.Thetimewindowoverwhichthermsestimationiscomputedcanbedetermined
by:
•Compression/expansioncoefficientcomputation—ThisDRCelementconvertstheoutputoftherms
estimatortoalogarithmicnumber,determinestheregionwheretheinputresides,andthencomputes
andoutputstheappropriatecoefficienttotheattack/decayelement.Sevenprogrammableparameters,
T1,T2,O1,O2,k0,k1,andk2,definethethreecompression/expansionregionsimplementedbythis
element.
•Attack/decaycontrol—ThisDRCelementcontrolsthetransitiontimeofchangesinthecoefficient
computedinthecompression/expansioncoefficientcomputationelement.Fourprogrammable
parametersdefinetheoperationofthiselement.Parametersadand(1–ad)setthedecayorrelease
timeconstanttobeusedforvolumeboost(expansion).Parametersaaand(1–aa)settheattacktime
constanttobeusedforvolumecuts.Thetransitiontimeconstantscanbedeterminedby:
SevenprogrammableparametersareassignedtoeachDRCblock:twothresholdparameters—T1and
T2,twooffsetparameters—O1andO2,andthreeslopeparameters—k0,k1,andk2.Thethreshold
parametersestablishthethreeregionsoftheDRCtransfercurve,theoffsetsanchorthetransfercurveby
establishingknowngainsettingsatthethresholdlevels,andtheslopeparametersdefinewhetheragiven
regionisacompressionoranexpansionregion.
TheaudioinputstreamintotheDRCmustpassthroughDRC-dedicatedprogrammableinputmixers.
Thesemixersareprovidedtoscalethe32-bitinputintotheDRCtoaccountforthepositioningofthe
audiodatainthe48-bitDAPwordandthenetgainorattenuationinsignallevelbetweentheSAPinput
andtheDRC.Theselectionofthresholdvaluesmusttakethegain(attenuation)ofthesemixersinto
account.TheDRCimplementationexamplesthatfollowillustratetheeffectthesemixershaveon
establishingthethresholdsettings.
T2establishestheboundarybetweenthehigh-volumeregionandthemid-volumeregion.T1establishes
theboundarybetweenthemid-volumeregionandthelow-volumeregion.Boththresholdsaresetin
logarithmicspace,andwhichregionisactiveforanygivenrmsestimatoroutputsampleisdeterminedby
thelogarithmicvalueofthesample.
SubmitDocumentationFeedbackDescription35
Not Recommended For New Designs