Reference Design and Peripheral Driver Board for CS42L52
Reference Design Board (CRD42L52)
Features
Ultra-Small Layout
Stake Header for External System Connections
1/8” Stereo Input Allows up to 2 Vrms Signals
1/8” Stereo Headphone Output Jack
Built-in Switch Control for CS42L52 SPKR/HP
Pin
Stereo Full Bridge Speaker Output Terminal
Complies with FCC class B and CISPR 22
Standards for Radiated Emissions
Peripheral Driver Board (CDB42LDB1)
Features
Multiple Power Supply Options
–Three AAA Battery Source
–External Power Supply Header
S/PDIF I/O (CS8416 Receiver)
–Optical and RCA Input Jacks
S/PDIF I/O (CS8406 Transmitter)
–Optical and RCA Output Jacks
FlexGUI S/W Control - Windows
–Pre-Defined & User Configurable Scripts
®
Compatible
Description
In addition to providing a reference for an ultra small layout design, the purpose of the CRD42L52 is to allow a
quick and easy evaluation of the CS42L52 low power
stereo CODEC.
Two 1/8” stereo jacks on the CRD42L52 provide an interface for analog line-level input and headphone-level
output connections to the CS42L52. Stereo differential
PWM speaker outputs from the CS42L52 can be monitored on a pair of screw term inals on the CRD42L52.
The control port and serial audio interfaces are accessible via the I/O stake header used to attach the
CRD42L52 to the CDB42LDB1.
The CDB42LDB1 is a peripheral driver board that provides clock/data, control logic and power supply to the
CRD42L52. Digital data is transmitted and received via
S/PDIF optical and RCA connectors. The CRD42L52
can be programmed by using the Windows Compatible
FlexGUI software provided. Power is derived either
from three AAA batteries or from an external supply on
the CDB42LDB1 driver board and is routed to the
CRD42L52 via the I/O stake header.
1. SYSTEM OVERVIEW ............................................................................................................................. 4
1.1 Power (U2) ....................................................................................................................................... 4
1.7 Analog Input ..................................................................................................................................... 5
1.8 Analog Outputs ................................................................................................................................ 5
Table 1. S/PDIF In to Headphone Out Performance Plots ..........................................................................7
Table 2. Line In to S/PDIF Out Performance Plots ....................................................... ... ... ... ... .... ... ... ........ 8
Table 3. S/PDIF In to Speaker Out Performance Plots ................ ............................................. .................. 8
DS680RD13
CRD42L52
1. SYSTEM OVERVIEW
The CRD42L52 provides a quick and general overview of the features in the CS42L52 CODEC in addition to providing a reference for an ultra-small layout design.
Line, headphone and PWM terminals are accommodated on the board for part evaluation and measurement purposes. The control port and serial audio interfaces are accessible via the I/O stake header used to attach the
CRD42L52 to the CDB42LDB1. The driver board consists of a S/PDIF receiver, a S/PDIF transmitter and a USB
microcontroller and is used to provide data to the CRD42L52. Therefore, in order to operate the CRD42L52 and use
the Cirrus FlexGUI software to configure it, it must be connected to the CDB42LDB1 reference design board. This
section serves to give a general overview of the hardware components used on the CRD42L52 reference design
board and the CDB42LDB1 peripheral driver board.
1.1Power (U2)
Power can be supplied to the boards by usi ng one of the two power supply options on the CDB42LDB1 driver board. Power is supplied to the driver board either from 3 AAA +1.5 V batteries (placed on the battery
clips behind the driver board) or from an external po wer su pply (J1). Th e desired power supply must be selected using the appropriate setting on switch S1. The power supply on the driver board is regulated down
to 3.3 V and 1.8 V as shown in the schematic (Figure 23 on page 22) to provide power to the various components on the driver board. The I/O header (J3) also contains power supply lines to route a 1.8 V supply
line to power the analog and digital cores of the CS42L52 on the CRD42L52 board.
1.2Microcontroller (U3)
The USB microcontroller on the CDB42LDB1 driver board drives the I²C® control port interface lines to the
CRD42L52 via an I/O stake header and is used to configure the CS42L52. The microcontro ller is also used
to enable the CDB42LDB1 to drive the digital audio data and clock lines.
On-board functionality can be controlled by selecting appropriate configuration settings in the provide d Windows-compatible FlexGUI software. For a detailed description of the Cirrus FlexGUI software, refer to Sec-
tion 4. "Software Mode Control".
1.3CS8416 Digital Audio Receiver (U7)
The CS8416 is a S/PDIF receiver that converts the S/PDIF data stream received by the boa rd via either the
optical or RCA phono connector into PCM data. This PCM data is routed to the I/O stake header which
routes it to the CS42L52 on the CRD42L52 board.
The CS8416 is configured to operate in hardware master mod e and provides the system master clock when
a S/PDIF input source is connected to the b oard. Sh ould the S /PDIF sou rce be come un available, c ausing
a Receiver Error, the system clock is automatically switched to the one provided by the on-board oscillator
for uninterrupted operation of other on-board components receiving the master clock.
A complete description of the CS8416 receiver and a discussion on the digital audio interface are included
in the CS8416 data sheet.
1.4CS8406 Digital Audio Transmitter (U8)
The CS8406 is a S/PDIF transmitter that converts the PCM data it receives from the I/O stake header into
a S/PDIF data stream. The S/PDIF data can be monitore d either via the optical (J7) or RCA phono connector
(J9) on the CDB42LDB1 driver board. The CS8406 is configured to operate in hardware slave mode. It receives its clocks from the CS8416. In the case of a receiver error, the clock source for the CS8406 is automatically switched to the on-board oscillator for uninterrupted operation of the CS8406.
A complete description of the CS8406 transmitter and a discussion on the digital audio interfa ce are included in the CS8406 data sheet.
4DS680RD1
1.5Oscillator (Y1)
The on-board oscillator provides the system master clock when the digital audio receiver is powered down
or when a receiver error occurs in the CS8416. Inte rn al circuitry in the CS8416 a utomatically se ts the oscillator clock as the new system clock whenever a receiver error is detected. This feature allows users to operate the boards without having a S/PDIF inp ut fed to the board at all times.
1.6CS42L52 Audio CODEC (U1)
A complete description of the CS42L52 (Figure 21 on page 20) is included in the CS42L52 product data
sheet. The CS42L52 is configured using the Windows-compatible Cirrus FlexGUI software provided. The
I²C control port interface on the CS42L52 can be used for register manipulation and is controlled by the
microcontroller on the CDB42LDB1 driver board.
For full details on software functionality, refer to Section 4. "Software Mode Control".
1.7Analog Input
A 1/8” stereo jack can be used to supply stereo line-level analog inputs to the CS42L52 up to a full-scale
value of 2 Vrms. An AC-coupled passive filter and a voltage divider scale down the signal before se nding it
to the CS42L52 to prevent the signal from clipping.
The CRD42L52 is routed to only allow analog inputs on input channel 1 of the CS42L52. Analog Inp ut Channels 2, 3 and 4 and Microphone Input Channels 1 and 2 are not connected.
1.8Analog Outputs
CRD42L52
The analog output from the CS42L52’s ground-centere d headphone a mplifier can be moni tored on the 1/8”
stereo jack on the CRD42L52. Alternatively, one can also monitor the differ ential ste reo PWM sp eaker output on the CS42L52 by using the differential speaker terminals J3 and J4.
1.9Layout
The CS42L52 requires only a minimal set of components to achieve specified performance results. Its integrated ground-centered amplifier eliminates the need for bulky DC-blocking capacitors and only requires
two tiny ceramic capacitors for the charge pump. Additional components include load-stabilization circuitry
and power supply decoupling. See the CS42L52 data sheet for further details.
Figure 20 on page 19 provides an overview of the connections to the CS42L52. Figure 24 on page 23 and
Figure 25 on page 23 show the component placement. Figure 26 on page 23 shows the top layout; Figure
27 on page 23 and Figure 28 on page 23 show the inner layers, and Figure 29 on page 23 shows the bottom
layout. The decoupling capacitors are located as close to the CS42L52 as possible. Extensive use of ground
plane fill in the reference design yields large reductions in radiated noise.
DS680RD15
CRD42L52
2. QUICK-START GUIDE
The following figure is supplied for user convenience as a simplified quick-start guide. Refer to Section 1 on page 4
and Section 3 on page 7 for details on how the various components on the board interface with each other in the
different configuration modes. Refer to Section 4 on page 9 for descriptions on control settings in the Cirrus FlexGUI
software.
6
Connect Power supply
5 ii
between 1.6 V to 5 V.
23
Set switch to
desired setting.
Place 3 AAA batteries with correct polarity on clips BT1,
BT2 and BT3 behind the board or perform step 5 ii.
5 i
Connect USB
cable for
communication
between on-board
microntroller and
PC. Once
connected,
configure board
using the FlexGUI
software package
provided.
7
Connect either
S/PDIF optical
or BNC cables
for providing
digital input.
1
Attach CRD42L52
to driver board.
4
Provide stereo analog
line level input on
stereo jack J7.
8
Monitor stereo
headphone or
differential speaker
outputs.
Figure 1. Quick-Start Guide
Connect
either S/PDIF
optical or
BNC cables
for receiving
digital output.
*Boards are
not drawn
to scale
6DS680RD1
CRD42L52
3. CONFIGURATION OPTIONS
This section provides a deeper understanding of on-board circuitry and digital clock and data signal routing for appropriately setting the control software in a spec ific configuration. The section also provides the expected performance characteristics for the respective configuration mode.
12.288 MHz
CRD42L52
R
T
Line
Input
Headphone
Output
Right
Left
R
T
CS42L52
(SLAVE)
AIN1A
AIN1B
HP/ LINE_OUTB
HP/ LINE_OUTA
SPKR_OUTB+
SPKR_OUTB-
SPKR_OUTA+
SPKR_OUTA-
Serial
Port
Enable
Oscillator
OMCK
SDOUT
LRCLK
SCLK
RMCK
MCLK
SCLK
LRCLK
SDIN
CS8416
S/PDIF Rx
(MASTER)
CS8406
S/PDIF Tx
(SLAVE)
S/PDIF
IN
S/PDIF
OUT
Figure 2. CRD42L52 and CDB42LDB1 Block Diagram for ADC and DAC Testing
In order to test the ADC, DAC and PWM on the CS42L52, S/PDIF di gital input needs to b e provided to the CS841 6
S/PDIF receiver on the CDB42LDB1 driver board via optical or RCA input jacks. The CS8416 operates in master
mode and drives the serial audio interface lines to the CS42L52 an d the CS8406, a s shown in Figure 2. For correct
CS42L52 serial port operation, the CS42L52 serial port should be set up as a slave and the “Driver Board Serial
Port” needs to be enabled in the FlexGUI software.
3.1S/PDIF In to Headphone Out
Stereo headphone-level analog outputs can be moni tored on stereo jack J8 on th e CRD42L52. Serial Audio
digital clocks and data is routed to the CRD42L52 via I/O header J3. Table 1 shows expected performance
characteristics when the boards are configured to make digital input to analog output measurements.
PlotLocation
FFT - S/PDIF In to Headphone Out @ 0 dBFSFigure 12 on page 15
FFT - S/PDIF In to Headphone Out @ -60 dB FSFigure 13 on page 16
Dynamic Range - S/PDIF In to Headphone OutFigure 14 on page 16
Frequency Response - S/PDIF In to Headphone Out Figure 15 on page 16
THD + N - S/PDIF In to Headphone OutFigure 16 on page 16
Ta bl e 1. S/PDIF In to Headphone Out Performance Plo ts
3.2Line In to S/PDIF Out
Line-level analog input can be provided to the CS42L52 via stereo jack J7 on the CRD42L52. The analog
input path on the CRD42L52 scales the input down to a fifth of its actual value. Therefore, a 2.4 Vrms analog
input into the CRD42L52 is required to provide full-scale input to the CS42L52. The ADC core uses the
clocks provided to the CS42L52 by the CS8416 to perform the conversion and outputs data to the CS8406
S/PDIF transmitter on the CDB42LDB1 driver board via the I/O header, J3. The S/PDIF output can be monitored on the RCA or optical jacks (J9 and J7).
DS680RD17
Table 2 shows expected performance characteristics when the boards are configured to make analog input
to digital output measurements.
Dynamic Range - Line In to S/PDIF OutFigure 9 on page 15
Frequency Response - Line In to S/PDIF Out Figure 10 on page 15
THD + N - Line In to S/PDIF OutFigure 11 on page 15
Table 2. Line In to S/PDIF Out Performance Plots
3.3S/PDIF In to Speaker Out
Stereo differential speaker outputs from the CS42L52 can be monito red on screw terminals J3 and J4. The
CS42L52 can be set up to provide data to the PWM modulator for producing speaker outputs from either
the serial port PCM input or the ADC output using the FlexGUI softwar e. For a description of the Cirrus
FlexGUI software controls, refer to Section 4 on page 9. Table 3 shows expected performance characteris-
tics when the boards are configured to make speaker output measurements.
Frequency Response - S/PDIF In to Speaker Out Figure 17 on page 16
T able 3. S/PDIF In to Speaker Out Performance Plots
CRD42L52
PlotLocation
PlotLocation
CRD42L52
R
T
Line
Input
Headphone
Output
R
T
CS42L52
(MASTER)
AIN1A
AIN1B
HP/ LINE_OUTB
HP/ LINE_OUTA
Figure 3. CRD42L52 and CDB42LDB1 Block Diagram for Digital Loopback Testing
3.4Analog In to Analog Out - Digital Loopback
In order to use the CS42L52 in digital loopback mode, one can configure the CS42L5 2 to operate in master
or slave mode. Figure 3 shows the board configuration when the CODEC is set up to operate in master
mode. In this mode, the CS42L52 receives an MCL K from the driver board fr om the CS8416 S/PDIF reciever. As described in Section 1.3 on page 4 and shown in Figure 3, the S/PDIF receiver us es the on-board
12.288 MHz clock as an MCLK when it is not receiving a S/PDIF input stream. Table 3 shows expected performance characteristics when the boards are configured to make speaker output measurements.
12.288 MHz
Oscillator
RMCK
SDOUT
LRCLK
SCLK
MCLK
(MASTER)
CS8416
S/PDIF Rx
PlotLocation
Dynamic Range - Line In to HP Out (Digital Loopback) Figure 18 on page 16
THD + N - Line In to HP Out (Digital Loopback)Figure 19 on page 17
8DS680RD1
CRD42L52
4. SOFTWARE MODE CONTROL
The CRD42L52 may be used with the CDB42LDB1 driver board and the Microso ft® Windows-based FlexGUI graphical user interface, allowing sof tware contro l of the CS42 L52 and FPG A registe rs. The lates t control so ftware ma y
be downloaded from www.cirrus.com/msasoftware . Step-by-step instructions for setting up the FlexGUI are provided as follows:
1. Download and install the FlexGUI software as instructed on the Website.
2. Apply power using either an external source connected to screw terminal J1 or 3 AAA batteries (not included) on BT1, BT2 and BT3.
3. Connect the CDB42LDB1 to the host PC using a USB cable.
4. Launch the Cirrus FlexGUI. Once the GUI is launched successfully, all registers are set to their default resetstate.
5. Refresh the GUI by clicking on the Update button. The default state of all registers are now visible.
For standard set-up:
6. Set up the CS42L52 in the CODEC Configuration, Analog Input Volume Control, DSP Engine or Analog and
PWM Output Volume Controls tab as desired.
7. Begin evaluating the CS42L52.
For quick set-up, the CRD42L52 may, alternatively, be configured by loading a predefined sample script file:
8. On the File menu, click Restore Board Registers...
9. Browse to Boards\CRD42L52\Scripts\.
10. Choose any one of the provided scripts to begin evaluation.
To create personal script files:
11. On the File menu, click Save Board Registers...
12. Enter any name that sufficiently describes the created setup.
13. Choose the desired location and save the script.
14. To load this script, follow the instructions from step 8 above.
DS680RD19
Loading...
+ 19 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.