cs4228-ks Cirrus Logic, Inc., cs4228-ks Datasheet - Page 14
![no-image](/images/manufacturer_photos/0/1/142/cirrus_logic__inc__sml.jpg)
cs4228-ks
Manufacturer Part Number
cs4228-ks
Description
24-bit, Surround Sound Codec
Manufacturer
Cirrus Logic, Inc.
Datasheet
1.CS4228-KS.pdf
(30 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CS4228-KS
Manufacturer:
CRYSTAL
Quantity:
20 000
Part Number:
cs4228-ksZ
Manufacturer:
CIRRUS
Quantity:
20 000
Clock Generation
The master clock, MCLK, is supplied to the
CS4228 from an external clock source. If MCLK
stops for 10µs, the CS4228 will enter Power Down
Mode in which the supply current is reduced as
specified under “Power Supply” on page 6. In all
modes it is required that the number of MCLK pe-
riods per SCLK and LRCK period be constant.
Clock Source
The CS4228 internal logic requires an external
master clock, MCLK, that operates at multiples of
the sample rate frequency, Fs. The MCLK/Fs ratio
is determined by the CI1:0 bits in the CODEC
Clock Mode register.
Synchronization
The serial port is internally synchronized with
MCLK. If from one LRCK cycle to the next, the
number of MCLK cycles per LRCK cycle changes
by more than 32, the CS4228 will undergo an inter-
nal reset of its data paths in an attempt to resyn-
chronize. Consequently, it is advisable to mute the
DACs when changing from one clock source to an-
other to avoid the output of undesirable audio sig-
nals as the device resynchronizes.
Digital Interfaces
Serial Audio Interface Signals
The serial audio data is presented in 2's comple-
ment binary form with the MSB first in all formats.
The serial interface clock, SCLK, is used for both
transmitting and receiving audio data. SCLK can
be generated by the CS4228 (master mode) or it
can be input from an external source (slave mode).
Mode selection is made with the DMS1:0 bits in
the Serial Port Mode register. The number of
SCLK cycles in one sample period can be set using
the DCK1:0 bits as detailed in the Serial Port Mode
register.
14
The Left/Right clock (LRCK) is used to indicate
left and right data frames and the start of a new
sample period. It may be an output of the CS4228
(master mode), or it may be generated by an exter-
nal source (slave mode). The frequency of LRCK is
the same as the system sample rate, Fs.
SDIN1, SDIN2, and SDIN3 are the data input pins.
SDOUT, the data output pin, carries data from the
two 24-bit ADC's. The serial audio port may also
be operated in One Line Data Mode in which all 6
channels of DAC data is input on SDIN1 and the
stereo ADC data is output on SDOUT. Table 1 out-
lines the serial port input to DAC channel alloca-
tions.
Serial Audio Interface Formats
The digital audio port supports 6 formats, shown in
Figures 9, 10, 11 and 12. These formats are selected
using the DDF2:0 bits in the Serial Port Mode reg-
ister.
In One Line Data Mode, all 6 DAC channels are in-
put on SDIN1. One Line Data Mode is only avail-
able in BRM. See Figure 12 for channel
allocations.
Control Port Signals
Internal registers are accessed through the control
port. The control port may be operated asynchro-
nously with respect to audio sample rate. However,
to avoid potential interference problems, the con-
trol port pins should remain static if no register ac-
cess is required.
DAC Inputs
SDIN1
SDIN2
SDIN3
Table 1. Serial Audio Port Input Channel Allocations
right channel
right channel
right channel
left channel
left channel
left channel
single line
DAC #1
DAC #2
All 6 DAC channels
DAC #3
DAC #4
DAC #5
DAC #6
CS4228
DS307PP1