Cirrus Logic CRD42L52 User Manual

CRD42L52
Reference Design and Peripheral Driver Board for CS42L52
Reference Design Board (CRD42L52) Features
Ultra-Small Layout Stake Header for External System Connections1/8” Stereo Input Allows up to 2 Vrms Signals1/8” Stereo Headphone Output Jack Built-in Switch Control for CS42L52 SPKR/HP
Pin
Stereo Full Bridge Speaker Output TerminalComplies 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 lay­out 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 in­terface for analog line-level input and headphone-level output connections to the CS42L52. Stereo differential PWM speaker outputs from the CS42L52 can be moni­tored on a pair of screw term inals on the CRD42L52. The control port and serial audio interfaces are accessi­ble via the I/O stake header used to attach the CRD42L52 to the CDB42LDB1.
The CDB42LDB1 is a peripheral driver board that pro­vides 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.
ORDERING INFORMATION
CRD42L52 Reference Design CDB42LDB1 Driver Board
Speaker
Left
Right
+
+
-
-
Control
Port
J5
CRD42L52
CS42L52
I²C
http://www.cirrus.com
Line
Input
Headphone
Output
Power
SAI
Supply
USB
Micro Reset
Pushbutton
S/PDIF
Input
Microcontroller
I²C Control Port
Interface
S/PDIF Rx
CS8416
MCLK
J3
I/O Header
Serial Audio Interface
12.288 MHz
CRD
Placeholder
J4
AAA Battery
S/PDIF Tx
Clip
CS8406
External
Power
S/PDIF Output
CDB42LDB1
Copyright © Cirrus Logic, Inc. 2008
(All Rights Reserved)
APRIL '08
DS680RD1

TABLE OF CONTENTS

1. SYSTEM OVERVIEW ............................................................................................................................. 4
1.1 Power (U2) ....................................................................................................................................... 4
1.2 Microcontroller (U3) ......................................................................................................................... 4
1.3 CS8416 Digital Audio Receiver (U7) ................................................................................................ 4
1.4 CS8406 Digital Audio Transmitter (U8) ............................................................................................ 4
1.5 Oscillator (Y1) .................................................................................................................................. 5
1.6 CS42L52 Audio CODEC (U1) .......................................................................................................... 5
1.7 Analog Input ..................................................................................................................................... 5
1.8 Analog Outputs ................................................................................................................................ 5
1.9 Layout .............................................................................................................................................. 5
2. QUICK-START GUIDE ........................................................................................................................... 6
3. CONFIGURATION OPTIONS ................................................................................................................. 7
3.1 S/PDIF In to Headphone Out ........................................................................................................... 7
3.2 Line In to S/PDIF Out ....................................................................................................................... 7
3.3 S/PDIF In to Speaker Out ................................................................................................................ 8
3.4 Analog In to Analog Out - Digital Loopback ..................................................................................... 8
4. SOFTWARE MODE CONTROL ............................................................................................................. 9
4.1 CODEC Configuration Tab ............................................................................................................ 10
4.2 Analog Input Volume Tab .............................................................................................................. 11
4.3 DSP Engine Tab ............................................................................................................................ 12
4.4 Analog and PWM Output Volume Tab ...........................................................................................13
4.5 Register Maps Tab ......................................................................................................................... 14
5. PERFORMANCE PLOTS ..................................................................................................................... 15
6. SYSTEM CONNECTIONS & INTERFACE ........................................................................................... 18
CRD42L52 AND CDB42LDB1 BLOCK DIAGRAM .............................................................................. 19
7. CRD42L52 SCHEMATICS ................................................................................................................... 20
8. CDB42LDB1 SCHEMATICS ................................................................................................................ 21
9. CRD42L52 LAYOUT ............................................................................................................................ 23
10. CDB42LDB1 LAYOUT ....................................................................................................................... 24
11. REVISION HISTORY .......................................................................................................................... 27
CRD42L52
2 DS680RD1

LIST OF FIGURES

Figure 1.Quick-Start Guide ......................................................................................................................... 6
Figure 2.CRD42L52 and CDB42LDB1 Block Diagram for ADC and DAC Testing ..................................... 7
Figure 3.CRD42L52 and CDB42LDB1 Block Diagram for Digital Loopback Testing .................................. 8
Figure 4.CODEC Configuration Tab ......................................................................................................... 10
Figure 5.Analog Input Volume Tab ........................................................................................................... 11
Figure 6.DSP Engine Tab ......................................................................................................................... 12
Figure 7.Analog and PWM Output Volume Tab ........................................................................................ 13
Figure 8.Register Maps Tab ...................................................................................................................... 14
Figure 9.Dynamic Range - Line In to S/PDIF Out ..................................................................................... 15
Figure 10.Freq. Resp. - Line In to S/PDIF Out .......................................................................................... 15
Figure 11.THD + N - Line In to S/PDIF Out .............................................................................................. 15
Figure 12.FFT - S/PDIF In to HP Out @ 0 dBFS ...................................................................................... 15
Figure 13.FFT - S/PDIF In to HP Out @ -60 dBFS ...................................................................................16
Figure 14.Dynamic Range - S/PDIF In to HP Out ..................................................................................... 16
Figure 15.Freq. Resp. - S/PDIF In to HP Out ............................................................................................ 16
Figure 16.THD + N - S/PDIF In to HP Out ................................................................................................ 16
Figure 17.Freq. Resp. - S/PDIF In to Spkr. Out ........................................................................................ 16
Figure 18.Dynamic Range - Line In to HP Out (Dig. LB) ..........................................................................16
Figure 19.THD + N - Line In to HP Out (Dig. LB) ...................................................................................... 17
Figure 20.Block Diagram ........................................................................................................................... 19
Figure 21.CS42L52 and Analog I/O .......................................................................................................... 20
Figure 22.S/PDIF Input/Output .................................................................................................................. 21
Figure 23.Microcontroller, Push Buttons and LED Indicators ............................. ... ... .... ... ... ... ... .... ... ......... 22
Figure 24.Silkscreen Top .......................................................................................................................... 23
Figure 25.Silkscreen Bottom ..................................................................................................................... 23
Figure 26.Top-Side Layer ......................................................................................................................... 23
Figure 27.Internal Layer (Ground Plane) .................................................................................................. 23
Figure 28.Internal Layer (Power Plane) .................................................................................................... 23
Figure 29.Bottom-Side Layer .................................................................................................................... 23
Figure 30.Silkscreen Top .......................................................................................................................... 24
Figure 31.Silkscreen Bottom ..................................................................................................................... 24
Figure 32.Top-Side Layer ......................................................................................................................... 25
Figure 33.Layer 2 ...................................................................................................................................... 25
Figure 34.Layer 3 ...................................................................................................................................... 26
Figure 35.Bottom-Side Layer .................................................................................................................... 26
CRD42L52

LIST OF TABLES

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
DS680RD1 3
CRD42L52

1. SYSTEM OVERVIEW

The CRD42L52 provides a quick and general overview of the features in the CS42L52 CODEC in addition to pro­viding a reference for an ultra-small layout design.
Line, headphone and PWM terminals are accommodated on the board for part evaluation and measurement pur­poses. 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.1 Power (U2)

Power can be supplied to the boards by usi ng one of the two power supply options on the CDB42LDB1 driv­er 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 se­lected 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 com­ponents 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.2 Microcontroller (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 Win­dows-compatible FlexGUI software. For a detailed description of the Cirrus FlexGUI software, refer to Sec-
tion 4. "Software Mode Control".

1.3 CS8416 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.4 CS8406 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 re­ceives its clocks from the CS8416. In the case of a receiver error, the clock source for the CS8406 is auto­matically 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 includ­ed in the CS8406 data sheet.
4 DS680RD1

1.5 Oscillator (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 oscil­lator clock as the new system clock whenever a receiver error is detected. This feature allows users to op­erate the boards without having a S/PDIF inp ut fed to the board at all times.

1.6 CS42L52 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.7 Analog 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 Chan­nels 2, 3 and 4 and Microphone Input Channels 1 and 2 are not connected.

1.8 Analog 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 out­put on the CS42L52 by using the differential speaker terminals J3 and J4.

1.9 Layout

The CS42L52 requires only a minimal set of components to achieve specified performance results. Its inte­grated 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.
DS680RD1 5
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.
2 3
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
6 DS680RD1
CRD42L52

3. CONFIGURATION OPTIONS

This section provides a deeper understanding of on-board circuitry and digital clock and data signal routing for ap­propriately setting the control software in a spec ific configuration. The section also provides the expected perfor­mance 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.1 S/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.
Plot Location
FFT - S/PDIF In to Headphone Out @ 0 dBFS Figure 12 on page 15
FFT - S/PDIF In to Headphone Out @ -60 dB FS Figure 13 on page 16
Dynamic Range - S/PDIF In to Headphone Out Figure 14 on page 16
Frequency Response - S/PDIF In to Headphone Out Figure 15 on page 16
THD + N - S/PDIF In to Headphone Out Figure 16 on page 16

Ta bl e 1. S/PDIF In to Headphone Out Performance Plo ts

3.2 Line 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 mon­itored on the RCA or optical jacks (J9 and J7).
DS680RD1 7
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 Out Figure 9 on page 15
Frequency Response - Line In to S/PDIF Out Figure 10 on page 15
THD + N - Line In to S/PDIF Out Figure 11 on page 15

Table 2. Line In to S/PDIF Out Performance Plots

3.3 S/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
Plot Location
Plot Location
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.4 Analog 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 reciev­er. 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 per­formance 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
Plot Location
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
8 DS680RD1
CRD42L52

4. SOFTWARE MODE CONTROL

The CRD42L52 may be used with the CDB42LDB1 driver board and the Microso ft® Windows-based FlexGUI graph­ical 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 pro­vided 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 includ­ed) 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 reset state.
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.
DS680RD1 9
Loading...
+ 19 hidden pages