SGTL5000XNLA3R2 Freescale, SGTL5000XNLA3R2 Datasheet - Page 27

no-image

SGTL5000XNLA3R2

Manufacturer Part Number
SGTL5000XNLA3R2
Description
Manufacturer
Freescale
Datasheet

Specifications of SGTL5000XNLA3R2

Single Supply Voltage (typ)
1.8/2.5/3.3V
Lead Free Status / RoHS Status
Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
SGTL5000XNLA3R2
Manufacturer:
MAGNACHIP
Quantity:
1
Part Number:
SGTL5000XNLA3R2
Manufacturer:
NXP/恩智浦
Quantity:
20 000
END-USER DRIVEN CHIP CONFIGURATION
EQ parameters such as Bass and Treble. This will require
programming the chip without introducing any pops/clicks or
any disturbance to the output. This section shows examples
on how to program these features.
VOLUME AND MUTE CONTROL
volume when end-user changes the volume or mutes/
unmutes output. Note that the DAC volume ramp is
automatically handled by the chip.
7-BAND PEQ PRESET SELECTION
coefficients when the end-user changes PEQ presets such
as Rock, Speech, Classical etc.
5-BAND GEQ VOLUME CHANGE
GEQ volume when end-user changes the volume on any of
the 5 bands.
avoid any pops. The example assumes that volume is
ramped on Band 0. Other bands can be programmed
similarly.
Analog Integrated Circuit Device Data
Freescale Semiconductor
End-users will control features like volume up/down, audio
Refer to
This programming example shows how to load the filter
// Load the 5 coefficients for each band and write them to
// appropriate filter address. Repeat this for all enabled
// filters (this example shows 7 filters)
for (i = 0; i < 7; i++)
{
// Note that each 20-bit coefficient is broken into 16-bit MSB
// (unsigned short usXXMSB) and 4-bit LSB (unsigned short
// usXXLSB)
Write DAP_COEF_WR_B0_LSB usB0MSB[i]
Write DAP_COEF_WR_B0_MSB usB0LSB[i]
Write DAP_COEF_WR_B1_LSB usB1MSB[i]
Write DAP_COEF_WR_B1_MSB usB1LSB[i]
Write DAP_COEF_WR_B2_LSB usB2MSB[i]
Write DAP_COEF_WR_B2_MSB usB2LSB[i]
Write DAP_COEF_WR_A1_LSB usA1MSB[i]
Write DAP_COEF_WR_A1_MSB usA1LSB[i]
Write DAP_COEF_WR_A2_LSB usA2MSB[i]
Write DAP_COEF_WR_A2_MSB usA2LSB[i]
// Set the index of the filter (bits 7:0) and load the
// coefficients
Modify DAP_FILTER_COEF_ACCESS->INDEX (0x0101 + i)
// bit 8
}
This programming example shows how to program the
GEQ volume should be ramped in 0.5 dB steps in order to
// Read current volume set on Band 0
usCurrentVol = Read DAP_AUDIO_EQ_BASS_BAND0
// Convert the new volume to hex value
usNewVol = 4*dNewVolDb + 47;
// Calculate the number of steps
Volume Control
for examples on how to program
TONE CONTROL - BASS AND TREBLE CHANGE
Tone Control Bass and Treble when end-user changes it on
the fly.
in 0.5 dB steps in order to avoid any pops. The example
assumes that Treble is changed to a new value. Bass can be
programmed similarly.
FREESCALE SURROUND ON/OFF
Surround when end-user turns it on/off on his device.
before enabling/disabling the Surround to avoid any pops.
usNumSteps = abs(usNewVol - usCurrentVol);
if (usNumSteps == 0) return;
for (int i = 0; i++; usNumSteps)
{
++usCurrentVol;
--usCurrentVol;
Write DAP_AUDIO_EQ_BASS_BAND0 usCurrentVol;
}
This programming example shows how to program the
Tone Control Bass and Treble volume should be ramped
// Read current Treble value
usCurrentVal = Read DAP_AUDIO_EQ_TREBLE_BAND4
// Convert the new Treble value to hex value
usNewVol = 4*dNewValDb + 47;
// Calculate the number of steps
usNumSteps = abs(usNewVal - usCurrentVal);
if (usNumSteps == 0) return;
for (int i = 0; i++; usNumSteps)
{
if (usNewVal > usCurrentVal)
++usCurrentVal;
--usCurrentVal;
}
This programming example shows how to program the
The Surround width should be ramped up to highest value
// Read current Surround width value
// WIDTH_CONTROL bits 6:4
usOriginalVal = (Read DAP_SGTL_SURROUND >> 4) &&
0x0003;
usNextVal = usOriginalVal;
// Ramp up the width to maximum value of 7
for (int i = 0; i++; (7 - usOriginalVal)
{
usNextVal;
}
// Enable (To disable, write 0x0000) Surround
if (usNewVol > usCurrentVol)
else
else
Write DAP_AUDIO_EQ_TREBLE_BAND4 usCurrentVal;
++usNextVal;
Modify DAP_SGTL_SURROUND->WIDTH_CONTROL
FUNCTIONAL DEVICE OPERATION
PROGRAMMING EXAMPLES
SGTL5000
27

Related parts for SGTL5000XNLA3R2