SGTL5000XNLA3R2 Freescale Semiconductor, SGTL5000XNLA3R2 Datasheet - Page 44
![no-image](/images/manufacturer_photos/0/2/262/freescale_semiconductor_sml.jpg)
SGTL5000XNLA3R2
Manufacturer Part Number
SGTL5000XNLA3R2
Description
IC AUDIO CODEC STEREO 20-QFN
Manufacturer
Freescale Semiconductor
Type
Stereo Audior
Datasheet
1.SGTL5000XNAA3.pdf
(84 pages)
Specifications of SGTL5000XNLA3R2
Data Interface
I²C, Serial, SPI™
Number Of Adcs / Dacs
1 / 1
Sigma Delta
No
S/n Ratio, Adcs / Dacs (db) Typ
90 / 100
Voltage - Supply, Analog
1.62 V ~ 3.6 V
Voltage - Supply, Digital
1.1 V ~ 2 V, 1.62 V ~ 3.6 V
Operating Temperature
-40°C ~ 85°C
Mounting Type
Surface Mount
Package / Case
20-UFQFN Exposed Pad
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
SGTL5000XNLA3R2
Manufacturer:
MAGNACHIP
Quantity:
1
Part Number:
SGTL5000XNLA3R2
Manufacturer:
NXP/恩智浦
Quantity:
20 000
SGTL5000
6. PROGRAMMING EXAMPLES
44
6.1.
Prototype for Reading and Writing a Register
This section provides programming examples that show how to configure the chip.
The registers can be written/read by using I2C communication protocol. The chip
also supports SPI communication protocol but only register write operation is sup-
ported.
The generic register read write prototype will be used throughout this section as
shown below. The I2C or SPI implementation will be specific to the I2C/SPI hard-
ware used in the system.
// This prototype writes a value to the entire register.
// bit-fields of the register will be written.
Write
// This prototype writes a value only to the bit-field specified.
// In the actual implemention, the other bit-fields should be
// masked to prevent them from being written.
// actual implementation should left-shift the BITFIELDVALUE
// by appropriate number to match the starting bit location of
// the BITFIELD.
Modify
// Example implementation
// Modify DAP_EN (bit 0) bit to value 1 to enable DAP block
Modify( DAP_CONTROL_REG, 0xFFFE, 1 << DAP_EN_STARTBIT );
// Example Implementation of Modify
void Modify( unsigned short usRegister,
{
}
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 );
REGISTER
REGISTER -> BITFIELD,
unsigned short usClearMask,
unsigned short usSetValue )
REGISTERVALUE
BITFIELDVALUE
//Bitfield Location
Also, the
SGTL5000 EA2 DS-0-3
All