cs4226 Cirrus Logic, Inc., cs4226 Datasheet - Page 18

no-image

cs4226

Manufacturer Part Number
cs4226
Description
Surround Sound Codec
Manufacturer
Cirrus Logic, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cs4226-BQ
Manufacturer:
CAVSTRL
Quantity:
246
Part Number:
cs4226-BQ
Manufacturer:
CRYSTAL
Quantity:
20 000
Part Number:
cs4226-BQZ
Manufacturer:
CRYSTAL
Quantity:
20 000
Part Number:
cs4226-DQ
Manufacturer:
CIRRUS
Quantity:
329
Part Number:
cs4226-KO
Quantity:
226
Part Number:
cs4226-KQ
Manufacturer:
CIRRUS
Quantity:
717
Part Number:
cs4226-KQ
Manufacturer:
CRYSTRL
Quantity:
1 094
Part Number:
cs4226-KQ
Manufacturer:
CS
Quantity:
20 000
Part Number:
cs4226-KQ EP
Manufacturer:
TI
Quantity:
101
Part Number:
cs4226-KQZ
Manufacturer:
CIRRUS
Quantity:
20 000
Part Number:
cs4226-KQZR
Manufacturer:
CIRRUSLOGIC
Quantity:
20 000
The first four bytes of the Channel Status block
for both channel A and B can be accessed in
the Receiver Channel Status Bytes. When the
CV bit is high, these bytes are being updated
and may be invalid. Additionally, the au-
dio/non-audio, AC-3/MPEG data stream indi-
cator and sampling frequency channel status
bits may be output to pins 9, 10, 11 and 12, re-
spectively, see Table 5. This is accomplished
by setting the CSP bit to 1 in the Auxiliary Sta-
tus Output Byte. The FREQ0/1 channel status
bit outputs are decoded from the sampling fre-
quency channel status bits after first referenc-
ing channel status byte 0, bit 0 (PRO or
consumer bit) which indicates the appropriate
location of these bits in the channel status data
stream.
The received user bit is output on the
HOLD/RUBIT pin if the HPC bit in the AUX
Port Control Byte is set to 1. It can be sampled
with the rising or falling edge of LRCK if the au-
dio DSP port is in Master Mode.
For AC-3/MPEG applications, it is important to
know whether the incoming S/PDIF data
stream is digital audio or compressed
AC-3/MPEG data. This information is typically
conveyed by setting channel status bit 1
(audio/non-audio bit), but some AC-3/MPEG
sources may not strictly adhere to this conven-
tion and the bit may not be properly set. The
18
2.5.6
AUDIO
AUTODATA Pin 10
FREQ0/1
Table 5. S/PDIF Receiver Status Outputs
AC-3/MPEG Auto Detection
Pin 9
Pin 11/12 00 - 44.1 kHz
0 - Audio data
1 - Non-audio data
0 - No preamble detected in
last 4096 frames
1 - Preamble detected
01 - 48 kHz
10 - Reserved
11 - 32 kHz
CS4226 S/PDIF receiver has the capability to
automatically detect whether the incoming
data is a compressed AC-3/MPEG input. This
is accomplished by looking for an AC-3/MPEG
96-bit sync code consisting of six 16-bit words.
The 96-bit sync code consists of: 0x0000,
0x0000,
0x4E1F. When the sync code is detected, the
AUTODATA indicator (pin 10) will go high. If
no additional sync codes are detected within
the next 4096 frames, the AUTODATA indica-
tor pin will return low until another sync code is
detected.
2.6
The control port is used to load all the internal
settings. The operation of the control port may
be completely asynchronous with the audio
sample rate. However, to avoid potential inter-
ference problems, the control port pins should
remain static if no operation is required.
The control port has 2 modes: SPI and I
with the CS4226 as a slave device. The SPI
mode is selected by setting the I
low, and I
pin high. The state of this pin is continuously
monitored.
In SPI mode, CS is the CS4226 chip select sig-
nal, CCLK is the control port bit clock, (input
into the CS4226 from the microcontroller),
CDIN is the input data line from the microcon-
troller, CDOUT is the output data line to the mi-
crocontroller,
0010000. Data is clocked in on the rising edge
of CCLK and out on the falling edge.
Figure 7 shows the control port timing in SPI
mode. To write to a register, bring CS low. The
first 7 bits on CDIN form the chip address, and
they must be 0010000. The eighth bit is a
read/write indicator (R/W), which should be
2.6.1
Control Port Signals
SPI Mode
2
0x0000,
C is selected by setting the I
and
0x0000,
the
chip
0xF872,
address
2
CS4226
C/SPI pin
DS188F4
2
C/SPI
and
2
C,
is

Related parts for cs4226