TWR-AUDIO-SGTL Freescale Semiconductor, TWR-AUDIO-SGTL Datasheet - Page 24

no-image

TWR-AUDIO-SGTL

Manufacturer Part Number
TWR-AUDIO-SGTL
Description
TWR SYS Audio Board
Manufacturer
Freescale Semiconductor
Series
Kinetisr
Datasheets

Specifications of TWR-AUDIO-SGTL

Kit Contents
TWR-AUDIO-SGTL Featuring SGTL5000 Low Power Stereo Codec, Printed Quick Start Guide
Mcu Supported Families
K20, K50, MCF51Jx
Kit Features
SGTL5000 Low Power Stereo Codec With Headphone
Rohs Compliant
Yes
Design Resources
TWR-AUDIO-SGTL Schematics
Accessory Type
Module, Audio with CODEC
Description/function
Audio CODECs
Mounting Style
Press Fit
Product
Audio Modules
Features
SGTL5000 Low Power Stereo Codec With Headphone Amplifier, Stereo Line-in / Line-out On 3.5mm Jack
Lead Free Status / Rohs Status
 Details
For Use With/related Products
Freescale Tower System
how to configure the chip. The registers can be written/read
by using I
throughout this section as shown below. The I
implementation will be specific to the I
in the system.
CHIP CONFIGURATION
default on power up. To avoid any pops/clicks, the outputs
should remain muted during these chip configuration steps.
Volume Control
Initialization
Chip Powerup and Supply Configurations
initialization sequence should be followed. Please note that
certain steps may be optional or different values may need to
be written based on the power supply voltage used and
24
SGTL500
FUNCTIONAL DEVICE OPERATION
PROGRAMMING EXAMPLES
This section provides programming examples showing
The generic register read write prototype will be used
// This prototype writes a value to the entire register. All
// bit-fields of the register will be written.
Write REGISTER REGISTERVALUE
// This prototype writes a value only to the bit-field specified.
// In the actual implementation, the other bit-fields should be
// masked to prevent them from being written. Also, the
// actual implementation should left-shift the BITFIELDVALUE
// by appropriate number to match the starting bit location of
// the BITFIELD.
Modify REGISTER -> BITFIELD, BITFIELDVALUE //Bitfield
// Example implementation
// Modify DAP_EN (bit 0) bit to value 1 to enable DAP block
Modify(DAP_CONTROL_REG, 0xFFFE, 1 <<
// Example Implementation of Modify
void Modify(unsigned short usRegister,
{
}
All outputs (LINEOUT, HP_OUT, I2S_OUT) are muted by
After the power supplies for chip is turned on, following
Location
DAP_EN_STARTBIT);
unsigned short usData;
// 1) Read current value
ReadRegister(usRegister, &usData);
// 2) Clear out old bits
usData = usData & usClearMask;
// 3) set new bit values
usData = usData | usSetValue;
// 4) Write out new value created
WriteRegister(usRegister, usData);
2
C communication protocol. The chip also supports
unsigned short usClearMask,
unsigned short usSetValue)
for volume and mute control.
PROTOTYPE FOR READING AND WRITING A REGISTER
2
C/SPI hardware used
2
PROGRAMMING EXAMPLES
C or SPI
SPI communication protocol, but only register write operation
is supported.
desired configuration. The initialization sequence below
assumes VDDIO = 3.3 V and VDDA = 1.8 V.
//--------------- Power Supply Configuration----------------
// NOTE: This next 2 Write calls is needed ONLY if VDDD is
// internally driven by the chip
// Configure VDDD level to 1.2V (bits 3:0)
Write CHIP_LINREG_CTRL
// Power up internal linear regulator (Set bit 9)
Write CHIP_ANA_POWER
// NOTE: This next Write call is needed ONLY if VDDD is
// externally driven
// Turn off startup power supplies to save power (Clear bit 12 and
13)
Write CHIP_ANA_POWER
// NOTE: The next 2 Write calls is needed only if both VDDA and
// VDDIO power supplies are less than 3.1V.
// Enable the internal oscillator for the charge pump (Set bit 11)
Write CHIP_CLK_TOP_CTRL 0x0800
// Enable charge pump (Set bit 11)
Write CHIP_ANA_POWER
// NOTE: The next 2 modify calls is only needed if both VDDA and
// VDDIO are greater than 3.1 V
// Configure the chargepump to use the VDDIO rail (set bit 5 and
bit 6)
Write CHIP_LINREG_CTRL
//---- Reference Voltage and Bias Current Configuration----
// NOTE: The value written in the next 2 Write calls is dependent
// on the VDDA voltage value.
// Set ground, ADC, DAC reference voltage (bits 8:4). The value
should
// be set to VDDA/2. This example assumes VDDA = 1.8 V.
VDDA/2 = 0.9 V.
// The bias current should be set to 50% of the nominal value (bits
3:1)
Write CHIP_REF_CTRL 0x004E
// Set LINEOUT reference voltage to VDDIO/2 (1.65 V) (bits 5:0)
and bias current (bits 11:8) to the recommended value of 0.36 mA
for 10 kOhm load with 1.0 nF capacitance
Write CHIP_LINE_OUT_CTRL 0x0322
//------------Other Analog Block Configurations--------------
// Configure slow ramp up rate to minimize pop (bit 0)
Write CHIP_REF_CTRL
// Enable short detect mode for headphone left/right
// and center channel and set short detect current trip level
// to 75 mA
Write CHIP_SHORT_CTRL
// Enable Zero-cross detect if needed for HP_OUT (bit 5) and ADC
(bit 1)
Analog Integrated Circuit Device Data
0x004F
0x0008
0x7260
0x4260
0x006C
0x4A60
0x1106
Freescale Semiconductor

Related parts for TWR-AUDIO-SGTL