CDB4812 [CIRRUS]

Fixed Function Multi-Effects Audio Processor; 固定功能的多重效果音频处理器
CDB4812
型号: CDB4812
厂家: CIRRUS LOGIC    CIRRUS LOGIC
描述:

Fixed Function Multi-Effects Audio Processor
固定功能的多重效果音频处理器

文件: 总36页 (文件大小:524K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
CS4812  
Fixed Function Multi-Effects Audio Processor  
Features  
Description  
The CS4812 is a complete audio effects processing  
system on a chip. This device includes a proprietary 24-  
bit audio processing engine with considerable on-chip  
RAM, two ADCs and two DACs. A full-featured serial  
control port allows interfacing to an external host  
microcontroller. Other features such as single +5V  
operation simplify system design.  
l DSP for embedded reverb/effects  
applications  
– 24-bit Audio Processing Engine  
– No External RAM required  
– Two 24-bit ∆Σ ADCs with 100 dB Dyn. Range  
– Two 24-bit ∆Σ DACs with 100 dB Dyn. Range  
l Mono Guitar or Mixer Effects firmware  
included  
l Real time parameter control via messaging  
protocol  
l Serial Control Port for microcontroller  
interface  
l Single +5V supply operation  
l 100-pin Metric Quad Flat Package (MQFP)  
The CS4812, combined with Crystal effects firmware, is  
the ideal solution for a variety of effects processing  
applications where user parameter control is desired.  
The Crystal effects firmware provides a messaging  
protocol for the serial control port that allows an external  
microcontroller to have real-time parameter control over  
the audio effects. The complete processor and effects  
solution may be evaluated with the CDB4812  
demonstration board. The CDB4812 demonstrates a  
host of mono electric guitar effects including a digital  
spring reverb, delay, chorus, flange and tremolo with  
parameter adjustment capability. Please refer to AN195  
for more information on application firmware for the  
CS4812.  
ORDERING INFO  
CS4812-KM  
-10 to +70°C 100-pin MQFP  
Electric Guitar Effects w/  
Parameter Controls.  
CDB4812  
I
This document contains information for a new product.  
Cirrus Logic reserves the right to modify this product without notice.  
Advance Product Information  
Copyright Cirrus Logic, Inc. 2001  
JUL ‘01  
P.O. Box 17847, Austin, Texas 78760  
(512) 445 7222 FAX: (512) 445 7581  
http://www.cirrus.com  
(All Rights Reserved)  
DS291PP3  
1
CS4812  
TABLE OF CONTENTS  
1. CHARACTERISTICS AND SPECIFICATIONS ........................................................................ 4  
2. TYPICAL CONNECTION DIAGRAMS ................................................................................... 14  
3. FUNCTIONAL DESCRIPTION ............................................................................................... 17  
3.1 Overview .......................................................................................................................... 17  
3.2 Analog Inputs ................................................................................................................... 17  
3.2.1 Line Level Inputs ................................................................................................. 17  
3.2.2 Digital High Pass Filter ........................................................................................ 18  
3.3 Analog Outputs ................................................................................................................ 18  
3.3.1 Line Level Outputs .............................................................................................. 18  
3.4 Clock Generation ............................................................................................................. 19  
3.4.1 Clock Source ....................................................................................................... 19  
3.5 Serial Control Port ............................................................................................................ 19  
3.5.1 SPI Bus ............................................................................................................... 19  
3.5.1.1 SPI Master Mode ................................................................................ 20  
3.5.1.2 SPI Slave Mode .................................................................................. 20  
3.5.2 I2C Bus ................................................................................................................ 23  
3.5.2.1 I2C Master Mode ................................................................................. 23  
3.5.2.2 I2C Slave Mode ................................................................................... 24  
3.6 Boot Modes ...................................................................................................................... 26  
3.6.1 AutoBoot ............................................................................................................. 26  
3.6.2 HostBoot ............................................................................................................. 26  
3.7 Resets ............................................................................................................................. 27  
4. POWER SUPPLY AND GROUNDING ................................................................................... 28  
5. PIN DESCRIPTIONS .............................................................................................................. 29  
6. PARAMETER DEFINITIONS .................................................................................................. 33  
7. PACKAGE DIMENSIONS ...................................................................................................... 34  
LIST OF FIGURES  
Figure 1. SPI Control Port Slave Mode Timing .......................................................... 8  
Figure 2. SPI Control Port Master Mode (AutoBoot) Timing ..................................... 9  
Figure 3. I2C® Control Port Slave Mode Timing ...................................................... 11  
Figure 4. I2C® Control Port Master Mode (AutoBoot) Timing .................................. 12  
Figure 5. Typical Connection Diagram, Control Port Slave Mode ........................... 14  
Figure 6. Typical Connection Diagram, Control Port I2C Master Mode ................... 15  
Figure 7. Typical Connection Diagram, Control Port SPI Master Mode .................. 15  
Figure 8. Typical Connection Diagram, Control Port I2C Slave Mode ..................... 16  
Figure 9. Typical Connection Diagram, Control Port SPI Slave Mode .................... 16  
Figure 10.Recommended Line Input Buffer .............................................................. 17  
Contacting Cirrus Logic Support  
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at:  
http://www.cirrus.com/corporate/contacts/  
Preliminary product information describes products which are in production, but for which full characterization data is not yet available. Advance product infor-  
mation describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information  
contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided AS ISwithout warranty of any  
kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third  
parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publi-  
cation may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise)  
without the prior written consent of Cirrus Logic, Inc. Items from any Cirrus Logic website or disk may be printed for use by the user. However, no part of the  
printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photo-  
graphic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture or  
sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing in  
this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trade-  
marks and service marks can be found at http://www.cirrus.com.  
2
DS291PP3  
CS4812  
Figure 11.Single Ended Input ................................................................................... 18  
Figure 12.Butterworth Output Filters ........................................................................ 18  
Figure 13.Output Mute Circuit .................................................................................. 19  
Figure 14.Control Port Timing, SPI Master Mode AutoBoot ..................................... 20  
Figure 15.Control Port Timing, SPI Slave Mode Write ............................................. 20  
Figure 16.SPI Slave Write Flow Diagram ................................................................. 21  
Figure 17.Control Port Timing, SPI Slave Mode Read ............................................. 21  
Figure 18.SPI Slave Mode Read Flow Diagram........................................................ 22  
Figure 19.SPI Slave Mode Read Flow Diagram with DSP REQ .............................. 22  
Figure 20.Control Port Timing, I2C Master Mode AutoBoot ..................................... 23  
Figure 21.I2C Slave Mode Write Flow Diagram ........................................................ 24  
Figure 22.Control Port Timing, I2C Slave Mode Write .............................................. 24  
Figure 23.Control Port Timing, I2C Slave Mode Write .............................................. 24  
Figure 24.I2C Slave Mode Read Flow Diagram ....................................................... 25  
Figure 25.I2C Slave Mode Read Flow Diagram with DSP REQ ............................... 26  
Figure 26.HostBoot Flow Diagram ........................................................................... 27  
Figure 27.CS4812 Suggested Layout ...................................................................... 28  
Figure 28.Pin Assignments ...................................................................................... 29  
DS291PP3  
3
CS4812  
1. CHARACTERISTICS AND SPECIFICATIONS  
ADC CHARACTERISTICS (TA = 25°C; VA, VD = + 5V; -1 dB Full Scale Input Sine wave,  
997 Hz; Fs = 48 kHz; XTI = 12.288 MHz (PLL disabled). Measurement Bandwidth is 20 Hz to 20 kHz.)  
Parameters  
Analog Input Characteristics  
Symbol  
Min  
Typ  
Max  
Units  
ADC Conversion  
Dynamic Range  
Stereo Audio channels  
16  
-
24  
Bits  
(A weighted, Note 5)  
(unweighted, Note 5)  
93  
90  
100  
97  
-
-
dB  
dB  
Total Harmonic Distortion + Noise  
(PLL enabled)  
(Note 1,5) THD+N  
(Note 1,2,5)  
-
-
-92  
-92  
-87  
-
dB  
Interchannel Isolation  
-
-
90  
0.1  
-
-
-
dB  
dB  
Interchannel Gain Mismatch  
Offset Error (with high pass filter enabled)  
Full Scale Input Voltage (Differential)  
Gain Drift  
(Note 6)  
(Note 2)  
-
0
LSB  
Vrms  
ppm/°C  
kΩ  
1.9  
-
2.0  
100  
-
2.1  
-
Input Resistance  
10  
-
-
Input Capacitance  
-
15  
-
pF  
CMOUT Output Voltage  
-
2.3  
60  
15/Fs  
-
V
Common Mode Rejection Ratio  
Group Delay (Fs = Output Sample Rate)  
Group Delay Variation vs. Frequency  
High Pass Filter Characteristics  
Frequency Response  
(Note 2)  
(Note 4)  
CMRR  
tgd  
dB  
-
-
-
s
tgd  
0
µs  
-3dB (Note 3)  
-0.14dB (Note 3)  
-
-
3.7  
20  
-
-
Hz  
Hz  
Phase Deviation  
Passband Ripple  
@ 20 Hz (Note 3)  
-
-
10  
-
-
Degree  
dB  
0
Notes: 1. Referenced to typical full-scale differential input voltage (2 Vrms).  
2. Bench tested only.  
3. Filter characteristics scale with output sample rate.  
4. Group delay for Fs = 48 kHz, tgd = 15/48 kHz = 313 µs.  
5. Measured using differential analog input circuit, see Figure 10.  
6. Filter Response is not tested but guaranteed by design.  
4
DS291PP3  
CS4812  
DAC CHARACTERISTICS (TA = 25°C; VA, VD = + 5V; -1 dB Full Scale Output Sine wave,  
997 Hz; Fs = 48 kHz; XTI = 12.288 MHz (PLL disabled). Measurement Bandwidth is 20 Hz to 20 kHz.)  
Parameters Symbol Min Typ Max  
Analog Output Characteristics - Minimum Attenuation, 10 k, 100 pF load; unless otherwise specified.  
Units  
DAC Resolution  
Dynamic Range  
16  
-
24  
Bits  
dB  
(DAC not muted, A weighted)  
95  
100  
-90  
90  
-
Total Harmonic Distortion + Noise  
Interchannel Isolation  
THD+N  
-
-85  
dB  
-
-
dB  
Interchannel Gain Mismatch  
Offset Voltage (differential)  
Offset Voltage (V+/V- relative to CMOUT)  
Full Scale Output Voltage  
Gain Drift  
-
0.1  
-
dB  
(Note 7)  
(Note 7)  
-
-20  
5
-
mV  
-
1.9  
-
-45/-25  
2.0  
-
2.1  
-
mV  
(Differential)  
Vrms  
ppm/°C  
dBFS  
(Note 2)  
100  
Out of Band Energy  
(Fs/2 to 2Fs, Note 2)  
-
-60  
-
Analog Output Load  
Resistance  
Capacitance  
10  
-
-
-
-
kΩ  
pF  
100  
Group Delay (Fs = Input Sample Rate)  
tgd  
-
16/Fs  
-
-
s
Analog Loopback Performance  
Signal-to-Noise Ratio (CCIR-2K weighted, -20 dB input)  
CCIR-2K  
-
74  
dB  
Power Supply  
Power Supply Current  
Operating  
Power Down  
-
-
200  
1
-
-
mA  
mA  
(Note 8)  
Power Supply Rejection  
(1 kHz, 10 mVrms, Note 2)  
-
50  
-
dB  
Notes: 7. Measured with DAC calibration disabled.  
8. Measured with XTI clock disabled.  
DS291PP3  
5
CS4812  
SWITCHING CHARACTERISTICS (TA = 25 °C; VA, VD = +5V, CL = 30 pF)  
Parameters  
Audio ADCs & DACs Sample Rate  
XTI Frequency XTI = 128Fs, 256Fs, 512Fs  
XTI Duty Cycle XTI = 128Fs, 256Fs, 512Fs  
XTI Jitter Tolerance  
Symbol  
Min  
30  
Typ  
Max  
Units  
kHz  
MHz  
%
Fs  
-
50  
25.6  
60  
-
3.84  
40  
-
(Note 9)  
-
500  
-
-
ps  
RST Low Time  
(Note 10)  
500  
-
ns  
Notes: 9. Guaranteed by characterization but not tested.  
10. On power-up, the CS4812 RST pin should be asserted until the power supplies have reached steady  
state.  
6
DS291PP3  
CS4812  
SWITCHING CHARACTERISTICS - CONTROL PORT - SPI SLAVE  
(TA = 25 °C; VA, VD = 5 V; Inputs: Logic 0 = DGND, Logic 1 = VD, CL = 30 pF)  
Parameter  
Symbol  
Min  
Max  
Unit  
SPI Slave Mode (SPI/I2C = 0, SCPM/S = 0, Note 14)  
CCLK Clock Frequency  
fsck  
tscl  
tsch  
tr  
-
66  
66  
-
6
MHz  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
µs  
ns  
ns  
ns  
-
CCLK Low Time  
-
CCLK High Time  
100  
Rise Time of Both CDIN and CCLK Lines  
Fall Time of Both CDIN and CCLK Lines  
Setup Time CDIN to CCLK Rising  
tf  
-
100  
tcdisu  
tcdih  
tscdov  
tcdor  
tcdof  
tcss  
tsccsh  
tcsht  
tscrh  
trr  
40  
15  
-
-
-
Hold Time CCLK Rising to CDIN  
Time from CCLK edge to CDOUT Valid  
Rise Time for CDOUT  
(Note 11)  
45  
(Note 12)  
-
25  
-
25  
Fall Time for CDOUT  
20  
0
-
CS Falling to CCLK Rising  
Time from CCLK Falling to CS Rising  
High Time Between Active CS  
Time from CCLK Rising to REQ Rising  
Rise Time for REQ  
-
1
-
2*DSPCLK+10  
100  
-
(Note 13)  
-
trf  
-
100  
Fall Time for REQ  
Notes: 11. Data must be held for sufficient time to bridge 100 ns transition time of CCLK.  
12. CDOUT should NOT be sampled during this time period.  
13. DSPCLK frequency is twice the DSP instruction rate.  
14. Timing is guaranteed by characterization. Production test guarantees functionality.  
DS291PP3  
7
CS4812  
*
8
DS291PP3  
CS4812  
SWITCHING CHARACTERISTICS - CONTROL PORT - SPI MASTER  
(TA = 25°C, VA, VD = 5V; Inputs: logic 0 = DGND, logic 1 = VD, CL = 30 pF)  
Parameter  
Symbol  
Min  
Typ  
Max  
Units  
SPI Master (AutoBoot) Mode (SPI/I2C = 0, SCPM/S = 1, Note 14)  
fsck  
tscl  
tsch  
tr2  
-
-
Fs  
-
kHz  
ns  
ns  
ns  
ns  
µs  
µs  
µs  
ns  
ns  
ns  
ns  
ns  
CCLK Clock Frequency  
CCLK Low Time  
(Note 15)  
1/(2*Fs)  
-
-
1/(2*Fs)  
-
CCLK High Time  
-
12  
12  
42  
-
-
CCLK Rise Time  
(Note 16)  
(Note 16)  
tf2  
-
-
CCLK Fall Time  
tsrs  
tcsh  
tcss  
tdv  
-
-
RST rising to CS falling  
37  
5
-
CS High Time Between Transmissions  
CS Falling to CCLK Edge  
-
-
50  
100  
-
-
-
CS Falling to CDOUT valid  
tpd  
-
-
CCLK Falling to CDOUT valid  
CDIN to CCLK Rising Setup Time  
CCLK Rising to DATA Hold Time  
CCLK Falling to CS rising  
tdsu  
tdh  
80  
80  
40  
-
-
-
tclcs  
-
-
Notes: 15. Depending on the input clock configuration, CCLK may be up to 2*Fs temporarily during AutoBoot after  
RST is de-asserted and before the control port registers have been initialized.  
16. Measured with a 2.2 kpull-up resistor to VD.  
RST  
CS  
t
srs  
t
t
t
t
clcs  
css  
scl  
sch  
t
csh  
CCLK  
t
f2  
t
r2  
CDIN  
t
t
dsu  
dh  
CDOUT  
t
t
dv  
pd  
Figure 2. SPI Control Port Master Mode (AutoBoot) Timing  
DS291PP3  
9
CS4812  
2
SWITCHING CHARACTERISTICS - CONTROL PORT - I C® SLAVE  
(TA = 25 °C; VA, VD = 5 V; Inputs: Logic 0 = DGND, Logic 1 = VD, CL = 30 pF)  
Parameter  
Symbol  
Min  
Max  
Units  
I2C® Slave Mode (SPI/I2C = 1, SCPM/S = 0) (Note 17)  
SCL Clock Frequency  
fscl  
tbuf  
thdst  
tlow  
thigh  
tsrs  
thdd  
tr  
-
4.7  
4.0  
4.7  
4.0  
1
100  
kHz  
µs  
µs  
µs  
µs  
ms  
µs  
µs  
ns  
µs  
µs  
-
Bus Free Time Between Transmissions  
Start Condition Hold Time (prior to first clock pulse)  
SCL Low Time  
-
-
-
SCL High Time  
-
RST rising to start condition  
(Note18)  
0
-
SDA Hold Time from SCL Falling  
Rise Time of Both SDA and SCL  
Fall Time of Both SDA and SCL  
SCL Falling to CS4812 ACK  
SCL Falling to SDA Valid During READ  
Time from SCL Rising to REQ Rising  
Rise Time for REQ  
(Note 19)  
-
1
tf  
-
300  
1.3  
1.5  
tsca  
tscsdv  
tscrh  
trr  
-
-
-
2*DSPCLK+10  
ns  
ns  
ns  
µs  
µs  
(Note 20)  
-
100  
100  
-
trf  
-
Fall Time for REQ  
tsusp  
tsust  
4.7  
4.7  
Setup Time for Stop Condition  
Setup Time for Repeated Start  
Notes: 17. Use of the I2C bus interface requires a license from Philips. I2C is a registered trademark of Philips  
Semiconductors.  
18. Not tested.  
19. Data must be held for sufficient time to bridge the 300 ns transition time of SCL.  
20. DSPCLK frequency is twice the DSP instruction rate.  
10  
DS291PP3  
CS4812  
*
DS291PP3  
11  
CS4812  
2
SWITCHING CHARACTERISTICS - CONTROL PORT - I C® MASTER (TA = 25°C;  
VA, VD = 5V; Inputs: logic 0 = DGND, logic 1 = VD, CL = 30 pF)  
Parameter  
Symbol  
Min  
Typ  
Max  
Units  
I2C® Master (AutoBoot) Mode (SPI/I2C = 1, SCPM/S = 1) (Note 21)  
fscl  
tlow  
thigh  
tbuf  
tirs  
-
Fs  
-
kHz  
µs  
µs  
µs  
µs  
µs  
µs  
ns  
µs  
µs  
µs  
ns  
µs  
SCL Clock Frequency  
(Note 22)  
-
-
1/(2*Fs)  
-
Clock Low Time  
1/(2*Fs)  
-
Clock High Time  
4.7  
-
-
22  
-
-
Bus Free Time Between Transmissions  
RST rising to start condition  
Start Condition Hold Time  
Setup Time for Repeated Start Condition  
SDA Setup Time to SCL Rising  
SDA Hold Time from SCL Falling  
SCL falling to SDA Output Valid  
SCL and SDA Rise Time  
-
thdst  
tsust  
tsud  
thdd  
tcldv  
tr  
4.0  
13.5  
250  
0
-
-
-
-
-
-
-
(Note 23)  
-
-
1.5  
1
-
-
(Note 24)  
(Note 24)  
tf  
-
-
300  
-
SCL and SDA Fall Time  
tsusp  
4.7  
-
Setup Time for Stop Condition  
Notes: 21. Use of the I2C bus interface requires a license from Philips. I2C is a registered trademark of Philips  
Semiconductors.  
22. Depending on the input clock configuration, CCLK may be up to 2*Fs temporarily during AutoBoot after  
RST has been de-asserted and before the control port registers have been initialized.  
23. Data must be held for sufficient time to bridge the worst case fall time of 300 ns for CCLK/SCL.  
24. For both SDA transmitting and receiving.  
RST  
t
irs  
Repeated  
Start  
t
Stop  
Start  
Stop  
cldv  
SDA  
t
t
t
t
t
buf  
t
high  
hdst  
f
susp  
hdst  
SCL  
(output)  
t
t
t
t
t
sust  
sud  
r
low  
hdd  
Figure 4. I2C® Control Port Master Mode (AutoBoot) Timing  
12  
DS291PP3  
CS4812  
ABSOLUTE MAXIMUM RATINGS (All voltages with respect to AGND = DGND = 0V.)  
Parameters  
Symbol  
Min  
Typ  
Max  
Units  
Power Supplies  
Digital  
Analog  
VD  
VA  
-0.3  
-0.3  
-
-
6.0  
6.0  
V
V
Input Current  
(Note 25)  
(Note 26)  
-
-
-
-
-
-
10.0  
(VA)+0.7  
(VD)+0.7  
+125  
mA  
V
Analog Input Voltage  
Digital Input Voltage  
Ambient Temperature  
Storage Temperature  
-0.7  
-0.7  
-55  
-65  
(Note 26)  
V
(Power Applied)  
°C  
°C  
+150  
Notes: 25. Any pin except supplies. Transient currents of up to 100 mA on the analog input pins will not cause  
SCR latch-up.  
26. The maximum over or under voltage is limited by the input current.  
Warning:  
Operation at or beyond these limits may result in permanent damage to the device.  
Normal operation is not guaranteed at these extremes.  
RECOMMENDED OPERATING CONDITIONS  
(All voltages with respect to AGND = DGND = 0V.)  
Parameters  
Symbol  
Min  
Typ  
Max  
Units  
Power Supplies  
|VA - VD| < 0.4V  
Digital  
Analog  
VD  
VA  
4.75  
4.75  
5.0  
5.0  
5.25  
5.25  
V
V
Operating Ambient Temperature  
TA  
-10  
25  
70  
°C  
DIGITAL CHARACTERISTICS (TA = 25 °C; VA, VD = 5V)  
Parameters  
Symbol  
VIH  
Min  
2.8  
Typ  
Max  
Units  
High-level Input Voltage  
Low-level Input Voltage  
(except XTI)  
(except XTI)  
-
-
-
(VD)+0.3  
V
V
V
VIL  
-0.3  
0.8  
-
High-level Output Voltage at I0 = -2.0 mA  
Low-level Output Voltage at I0 = 2.0 mA  
(except XTO) VOH  
(except XTO) VOL  
(VD)-1.0  
-
-
0.4  
V
High-level Input Voltage  
Low-level Input Voltage  
Input Leakage Current  
(XTI)  
(XTI)  
VIH  
VIL  
2.8  
-
-
-
-
-
V
V
-
-
-
2.3  
10  
10  
(Digital Inputs)  
µA  
µA  
Output Leakage Current  
(High-Z Digital Outputs)  
SWITCHING CHARACTERISTICS - PROGRAMMABLE I/O  
(TA = 25 °C; VA, VD = 5V 5%; Inputs: logic 0 = DGND, logic 1 = VD, CL = 30 pF)  
Parameters  
Symbol  
trpo  
Min  
Typ  
200  
200  
Max  
Units  
ns  
Output Rise Time  
Output Fall Time  
-
-
-
-
tfpo  
ns  
DS291PP3  
13  
CS4812  
2. TYPICAL CONNECTION DIAGRAMS  
Ferrite Bead  
+5 V  
µ
1 F  
µ
0.1 F  
µ
F
µ
0.1 F  
1
+
+
D
D
A
A
43 65  
VD1..2  
12  
VA 1..3  
18 88  
86  
87  
7
AIN1L+  
AIN1L-  
AOUT1+  
ANALOG  
FILTER  
ANALOG  
FILTER  
8
AOUT1-  
90  
91  
9
AIN1R+  
AIN1R-  
AOUT2+  
AOUT2-  
ANALOG  
FILTER  
ANALOG  
FILTER  
10  
92  
14  
15  
16  
17  
20  
21  
22  
23  
57  
CMOUT  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
To Optional  
Input and  
Output Buffers  
µ
1 F  
0.1 µF  
A
A
CS4812  
39  
93  
OVL  
CMFILT+  
CMFILT-  
+
1µF  
0.1 µF  
94  
RES-NC  
RES-NC  
A
58  
59  
60  
VD VD  
2.2  
2.2  
K
RES-NC  
RES-NC  
K
63  
D
Q
SCL/CCLK  
61  
95  
RES-NC  
RES-NC  
74HC74  
62  
68  
67  
71  
47  
Program ROM  
or  
Serial EEPROM  
SDA/CDOUT  
AD0/CS  
Microcontroller  
97  
RES-NC  
AD1/CDIN  
REQ  
VD  
73  
RES-VD  
CLKOUT  
RS  
69  
SPI/I2C  
32  
34  
36  
38  
RES-DGND  
RES-DGND  
RES-DGND  
RES-DGND  
RES-DGND  
70  
SCPM/S  
Mode/Reset  
Circuit  
D
72  
RST  
RESET  
48  
41  
40  
82  
83  
96  
PIO0  
PIO1  
RES-DGND  
RES-DGND  
RES-DGND  
Control/  
Monitor  
Circuitry  
37  
35  
PIO2  
PIO3  
D
XTO  
XTI  
AGND1..4  
1113 19 89  
DGND1..4  
66  
44 64  
46  
42  
45  
1 M  
Optional External  
Clock Input instead  
of Crystal  
D
A
=33  
R
S
All unused inputs  
should be tied to ground.  
39 pF 39 pF  
D
D
Figure 5. Typical Connection Diagram, Control Port Slave Mode  
14  
DS291PP3  
CS4812  
VD  
VD  
2.2 K  
2.2 K  
CS4812  
SCL/CCLK  
63  
62  
SDA/CDOUT  
2
I C  
68  
67  
EEPROM  
AD0/CS  
A0  
A1  
A2  
AD1/CDIN  
D
71  
REQ  
VD  
D
69  
70  
SPI/I2C  
SCPM/S  
72  
73  
Reset  
Circuit  
RST  
PLLEN  
RESET  
Figure 6. Typical Connection Diagram, Control Port  
I2C Master Mode  
CS4812  
63  
SCL/CCLK  
62  
SPI  
68  
SDA/CDOUT  
AD0/CS  
AD1/CDIN  
REQ  
EEPROM  
67  
71  
VD  
69  
70  
SPI/I2C  
SCPM/S  
D
72  
73  
Reset  
Circuit  
RST  
PLLEN  
RESET  
Figure 7. Typical Connection Diagram, Control Port  
SPI Master Mode  
DS291PP3  
15  
CS4812  
VD  
VD  
2.2 K  
2.2 K  
CS4812  
SDA/CDOUT  
SDA  
SCL  
SCL/CCLK  
D
74HC74  
RS  
MICRO  
CONTROLLER  
CLKOUT  
AD0/CS  
AD1/CDIN  
REQ  
GPIO  
SPI/I2C  
SCPM/S  
D
RESET  
CIRCUIT  
RST  
VD  
PLLEN  
Figure 8. Typical Connection Diagram, Control Port  
I2C Slave Mode  
CS4812  
SDA/CDOUT  
SCL/CCLK  
MISO  
CCLK  
D
74HC74  
MICRO  
CONTROLLER  
CLKOUT  
RS  
CS  
AD0/CS  
AD1/CDIN  
REQ  
MOSI  
GPIO  
SPI/I2C  
SCPM/S  
D
RESET  
CIRCUIT  
RST  
VD  
PLLEN  
Figure 9. Typical Connection Diagram, Control Port  
SPI Slave Mode  
16  
DS291PP3  
CS4812  
3. FUNCTIONAL DESCRIPTION  
3.1 Overview  
3.2  
Analog Inputs  
3.2.1 Line Level Inputs  
The CS4812 is a complete audio subsystem on a  
chip, integrating an DSP with on-chip RAM, two  
24-bit ADCs, two 24-bit DACs, and a serial control  
port.  
AINR+, AINR-, AINL+, and AINL- are the line  
level analog inputs (See Figure 5). These pins are  
internally biased to the CMOUT voltage of 2.3 V.  
A DC blocking capacitor placed in series with the  
input pins allows signals centered around 0 V to be  
input to the CS4812. Figure 5 shows operation with  
a single-ended input source. This source may be  
supplied to either the positive or negative input as  
long as the unused input is connected to ground  
through capacitors as shown. When operated with  
single-ended inputs, distortion will increase at in-  
put levels higher than -1 dBFS. If better perfor-  
mance is required, a single-ended-to-differential  
converter, shown in Figure 10, may be used. It pro-  
vides unity gain, DC blocking and anti-alias filter-  
ing.  
The sigma-delta ADCs include linear phase digital  
anti-aliasing filters and only require a single-pole  
external passive filter.  
The sigma-delta DACs include analog switched-  
capacitor anti-image filters and require an external  
second or third order active filter that can be easily  
integrated into an output differential-to-single-end-  
ed converter circuit.  
The serial control port is designed to accommodate  
2 ®  
I C or SPI interfaces and can operate in master or  
slave mode. It allows interfacing to external non-  
volatile memory for stand-alone operation or to a  
host-controller for real-time control. All communi-  
cations between the DSP and an external EEPROM  
or host-controller are handled through the serial  
control port.  
Inputs may be externally AC or DC coupled. This  
permits use of the ADCs for input of audio signals  
or for measurement of DC control voltages. By de-  
fault, an internal high pass filter removes any DC  
offsets from both of the ADC inputs. If measure-  
ment of DC is required on either of the ADC inputs,  
then the on-chip high pass filter must be disabled.  
Analog audio input signals that are DC coupled  
must be biased at 2.3 V to maintain proper input  
4.7 k  
µ
10  
F
10 k  
-
150  
input signal  
(2 Vrms max)  
+
AIN -  
+
10 k  
2.2 nf  
10 k  
+5 V  
150  
-
-
AIN +  
+
CMOUT  
+
+
GND  
µ
µ
F
10  
f
0.1  
Figure 10. Recommended Line Input Buffer  
DS291PP3  
17  
CS4812  
of driving 10 kloads to full scale. These amplifi-  
ers internally biased to the CMOUT voltage of 2.3  
V.  
150  
CS4812  
AIN  
22 µF  
2.2 nF  
The recommended off-chip analog filter is a second  
order Butterworth with a 3 dB corner at Fs. A third  
order Butterworth filter with a -3 dB corner at 0.75  
Fs can be used if greater out of band noise filtering  
is desired. These filters can be easily integrated into  
a differential-to-single-ended converter circuit as  
shown in the 2-pole and 3-pole Butterworth filters  
of Figure 12. The hardware mute circuit referenced  
in Figure 12 is shown in Figure 13. Hardware mut-  
ing is recommended on power-up and power-  
down.  
AIN  
+
100 µF  
0.1 µF  
Figure 11. Single Ended Input  
signal swing. DC control input voltages may range  
from ground to Vcc.  
ADC output data is in twos-complement binary  
format. For inputs above full scale, the ADC digital  
output saturates. The OVL output pin asserts when  
the analog input is out-of-range.  
220 pF  
14.0 k  
+5 V  
GND  
3.24 k  
14.0 k  
14.0 k  
_
+
A
OU  
T-  
Output  
Mute Ckt  
Line  
Out  
3.2.2 Digital High Pass Filter  
1
00 pF  
0
In DC coupled systems, a small DC offset may ex-  
ist between the input circuitry and the A/D convert-  
ers. The CS4812 includes a defeatable high pass  
filter after the decimator to remove these DC com-  
ponents. The high pass filter response is given in  
High Pass Filter Characteristicson page 4 and  
scales linearly with sample rate. In applications  
where DC level measurement is required, as would  
occur when one of the ADC inputs is used for mea-  
surement of DC control voltages, the high pass fil-  
ter may be disabled via a control port register.  
Note: The high pass filter defeat operates on both  
ADC inputs simultaneously therefore external DC  
blocking must be provided in the design of the an-  
alog audio input circuit.  
3.24 k  
A
OUT+  
14.0 k  
220 pF  
1000pF  
BUFFERED  
CMOUT  
2-Pole Butterworth Filter  
220  
pF  
14.0k  
+5 V  
2.8k  
11.0k  
2.8k  
_
A
OU T-  
Output  
Mute Ckt  
Line  
Out  
+
2200 pF  
2200 pF  
GND  
2.8k  
2.8k 11.0k  
A
OUT+  
2200 pF  
220 pF  
2200  
pF  
14.0k  
BUFFERED  
CMOUT  
3.3  
Analog Outputs  
3-Pole Butterworth Filter  
3.3.1 Line Level Outputs  
The CS4812 contains on-chip differential buffer  
amplifiers that produce line level outputs capable  
Figure 12. Butterworth Output Filters  
18  
DS291PP3  
CS4812  
tializes the hardware configuration registers and  
downloads the application code to the DSP via 2  
dedicated control port registers. Application mes-  
saging between the host and the DSP is also done  
via these control port registers. The operation of the  
control port may be completely asynchronous to  
the audio sample rate. However, it is recommended  
that the control port pins remain static when not in  
use.  
1 k  
10  
+
µF  
From Op-Amp  
VA  
Line Out  
MMBT3906  
MMBT3904  
3.3 k  
10 k  
GND  
10 k  
10 k  
µ
From  
CS4812  
PIO  
MMBT3906  
The required control port register settings are con-  
tained in the Crystal effects firmware application  
code EEPROM image.  
10  
F
Figure 13. Output Mute Circuit  
2 ®  
The control port supports the SPI bus and the I C  
bus in both master and slave modes. The bus inter-  
face is selected via the SPI/I C pin and the mas-  
3.4  
Clock Generation  
2
The CS4812 master clock may be generated by us-  
ing the on-chip oscillator with an external crystal or  
may be derived from an external clock source.  
ter/slave mode is selected via the SCPM/S pin.  
These pins are sampled during de-assertion of the  
RST pin.  
3.4.1 Clock Source  
Master mode is selected for stand-alone operation  
when AutoBooting from an external serial EE-  
PROM. Slave mode is selected when the CS4812 is  
connected to an external host controller.  
The CS4812 requires a 256 Fs master clock to run  
the internal logic. The two possible clock sources  
are the on-chip crystal oscillator or an external clock  
input to the XTI pin.  
3.5.1 SPI Bus  
When using the on-chip crystal oscillator, external  
loading capacitors are required. (see Figure 5) High  
frequency crystals (>8 MHz) should be parallel  
resonant, fundamental mode and designed for  
20 pF loading. (equivalent to 40 pF to ground on  
each leg)  
The SPI bus interface consists of 5 digital signals,  
CCLK, CDIN, CDOUT, CS and REQ. CCLK, the  
control port bit clock, is used to clock individual data  
bits. CDIN, the control data input, is the serial data  
input line to the CS4812. CDOUT, the control data  
output, is the output data line from the CS4812. It is  
open-drain and requires a 2.2 kpull-up resistor.  
CS, the chip select signal, is asserted low to enable  
the SPI port. REQ, the request pin, is used by the  
DSP to request a read by a host controller when op-  
erating in control port slave mode. Data is clocked  
into the chip on the rising edge of CCLK and out on  
the falling edge. When in slave mode, the CLK sig-  
nal must be synchronous with the internal DSP  
clock. An external D flip flop off of CLKOUT as  
shown in Figure 9 can be used to retime the CLK sig-  
nal. There is limited drive capability on CLKOUT so  
3.5  
Serial Control Port  
The serial control port contains all of the main con-  
trol logic for the chip. It controls power-on se-  
quencing, hardware configuration and DSP  
operation. In AutoBoot mode, the serial control  
port manages the entire boot process including ini-  
tialization of its own hardware configuration regis-  
ters from EEPROM, code download from the  
EEPROM to the DSP and initialization of the CO-  
DEC. In host-controlled mode, the host-device ini-  
DS291PP3  
19  
CS4812  
a buffer may be required to minimize the capacitive  
loading on CLKOUT.  
The 8-bit read instruction (00000011) is sent to the  
EEPROM followed by a pre-defined 16-bit start ad-  
dress.The CS4812 then automatically clocks out se-  
quential bytes from the EEPROM until the last byte  
has been received. After the last byte is received, the  
CS4812 deasserts CS and begins program execution.  
At this point, the serial control port becomes inactive  
until the next reset.  
CCLK and CS may be inputs or outputs with respect  
to the CS4812. If the serial control port of the  
CS4812 is defined as the master, then CCLK and CS  
are outputs and CCLK requires a 2.2 kpull-up re-  
sistor. If the CS4812 is defined as the slave, then  
CCLK and CS are inputs and no pull-up resistor is re-  
quired on CCLK.  
3.5.1.2 SPI Slave Mode  
3.5.1.1 SPI Master Mode  
In SPI slave mode, a write sequence from an exter-  
nal host controller is shown in Figure 15. The host  
controller asserts CS and sends a 16-bit write pre-  
amble to the CS4812. This preamble consists of a  
7-bit chip address (must be 0010000) followed by  
a one-bit R/W (Read/Write) bit (set to 0 for write)  
The SPI master mode is designed for read-only op-  
eration during AutoBooting from a serial EE-  
PROM. A typical AutoBoot sequence with a Xicor  
X25650 serial EEPROM, or equivalent, is shown in  
Figure 14. On exit from reset, the CS4812 asserts CS.  
CS  
0
1
2
3
4
5
6
7
8
9
10 11  
21 22 23 24 25 26 27 28 29 30 31  
CLK  
DATA  
DATA + n  
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1 0  
CDIN  
READ  
COMMAND  
16-BIT  
ADDRESS = 0X0000  
0
0
0
0
0
0
1
1
0
0
0
0
0 0 0  
CDOUT  
MSB  
Figure 14. Control Port Timing, SPI Master Mode AutoBoot  
CS  
(input)  
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22  
23  
CLK  
(input)  
CHIP ADDRESS (WRITE)  
MAP BYTE  
DATA  
DATA +n  
INCR  
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
0
0
1
0
0
0
0
0
7
6
5
4
3
2
1
0
CDIN  
(input)  
MSB  
R/W  
CDOUT  
(output)  
Figure 15. Control Port Timing, SPI Slave Mode Write  
20  
DS291PP3  
CS4812  
and a memory address pointer (MAP) byte. The  
MAP byte contains the address of the control port  
register to be accessed. Following the preamble,  
the host controller sends the actual data byte to be  
written to the register designated by the MAP. The  
In SPI slave mode, a read sequence from an exter-  
nal controller is shown in Figure 17. The host con-  
troller executes a partial write-cycle by sending a  
16-bit write preamble to the CS4812 with the MAP  
byte set to the address of the control port byte reg-  
host controller then de-asserts CS. Figure 16 shows ister to be read. The host controller then de-asserts  
the SPI slave mode write flow diagram.  
CS, re-asserts CS, and sends the 7-bit chip address  
followed by the R/W bit set to 1. The host control-  
ler then clocks out the control port register desig-  
nated by the MAP byte. The host controller then  
de-asserts CS. Figure 18 shows the SPI mode slave  
read flow diagram initiated by the host microcon-  
troller. Figure 19 shows the SPI slave mode read  
flow diagram incorporating the DSP REQ signal.  
REQ is used to notify the host controller that a data  
byte from the DSP is waiting to be read.  
SET CS LOW  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
WRITE MAP BYTE  
WRITE DATA BYTE  
The behavior of the REQ signal is dependent on  
when data is written to the serial control port output  
register in relation to CCLK and bit 2 of the current  
byte being transferred. There are three cases of  
REQ behavior:  
Y
MORE DATA?  
1. The REQ line will be de-asserted immediately  
following the rising edge of CCLK on the D2 bit of  
the current byte being transferred if there is no data  
in the serial control port output register. The REQ  
line remains de-asserted and a stop condition  
N
SET CS HIGH  
Figure 16. SPI Slave Write Flow Diagram  
CS  
(input)  
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15  
CLK  
(input)  
CHIP ADDRESS (WRITE)  
MAP BYTE  
CHIP ADDRESS (READ)  
0
0
1
0
0
0
0
0
INCR  
6
5
4
3
2
1
0
0
0
1
0
0
0
0
1
CDIN  
(input)  
R/W  
R/W  
MSB  
DATA  
DATA  
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
CDOUT  
(output)  
REQ  
(output)  
Figure 17. Control Port Timing, SPI Slave Mode Read  
DS291PP3  
21  
CS4812  
N
REQ LOW?  
SET CS LOW  
Y
SET CS LOW  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
WRITE MAP BYTE  
TOGGLE CS  
WRITE MAP BYTE FOR  
DSP OUTPUT REGISTER  
(MAP = 0X27)  
WRITE ADDRESS BYTE  
WITH R/W BIT = 1  
TOGGLE CS  
WRITE ADDRESS BYTE  
WITH R/W BIT = 1  
READ DATA BYTE  
READ DATA BYTE  
FROM DSP OUTPUT REGISTER  
Y
MORE BYTES  
TO READ?  
N
Y
SET CS HIGH  
REQ STILL LOW?  
N
SET CS HIGH  
Figure 18. SPI Slave Mode Read Flow Diagram  
Figure 19. SPI Slave Mode Read from DSP Core  
Flow Diagram using DSP REQ  
should be issued by the bus master, thus complet- The CS4812 has a MAP auto increment capability  
ing the transfer.  
which allows block reads or writes of successive  
control port registers.This feature is enabled by set-  
ting the INCR bit in the MAP byte.  
2. If data is written to the serial control port output  
register prior to the rising edge of CCLK for the D2  
data bit, REQ will remain asserted. The bus master During a write sequence, multiple bytes may be  
should continue to shift out this new byte.  
written by continuing to send data bytes to the  
CS4812 after the first data byte and before de-as-  
serting CS. If auto increment is disabled, the last  
data byte sent will appear in the register designated  
by the MAP. If auto increment is enabled, data  
bytes sent following the first data byte will be writ-  
ten to successive registers following that designat-  
ed in the MAP.  
3. If data is placed in the SCP output register by the  
DSP after the rising edge of CCLK for the D2 bit,  
REQ will be immediately re-asserted, thus creating  
a pulse on REQ. The byte in the SCP out register  
may be read by the bus master as part of the current  
transaction or may be read later as part of a new  
read transaction.  
22  
DS291PP3  
CS4812  
During a read sequence, multiple bytes may be read  
a slave device and may be tied to ground when the  
by continuing to clock out data bytes to the CS4812 CS4812 is configured for master mode.  
after the first data byte and before de-asserting CS.  
When operating in control port slave mode, the  
If auto increment is disabled, the last data byte read  
REQ output pin is used by the CS4812 DSP to re-  
will be the register designated by the MAP. If auto  
quest communication with the master.  
increment is enabled, data bytes read following the  
3.5.2.1 I2C Master Mode  
first data byte will be read from successive registers  
2
following that designated in the MAP.  
The I C master mode is designed for read-only op-  
eration during AutoBooting from a serial EE-  
PROM. A typical AutoBoot sequence with a  
3.5.2 I2C Bus  
2
The I C bus interface implemented on the CS4812  
consists of 3 digital signals, SCL, SDA and REQ.  
SCL, or serial clock, is used to clock individual  
data bits. SDA, or serial data, is a bidirectional data  
line. REQ, the request pin, is used by the DSP to re-  
quest a host read when operating in control port  
slave mode. Two additional pins, AD1 and AD0,  
are inputs which determine the 2 lowest order bits  
Microchip X24256 serial EEPROM, or equivalent,  
is shown in Figure 20. On exit from reset, the  
CS4812 sends an initial write preamble to the EE-  
2
PROM which consists of a I C start condition and  
the slave address byte. The slave address consists  
of the 4 most significant bits set to 1010, the fol-  
lowing 3 bits corresponding to the device select  
bits, A2, A1 and A0 set to 000 and the last bit (R/W)  
set to 0. Following this, a 2-byte EEPROM starting  
address of 0x0000 is sent to the EEPROM. The 2-  
byte EEPROM starting address uses only the low-  
est 13 bits and sets the highest 3 bits to zero. To be-  
gin reading from the EEPROM, the CS4812 sends  
another start condition followed by a read pream-  
ble. The read preamble is identical to the write pre-  
amble except for the state of the R/W bit. The  
CS4812 then automatically clocks out sequential  
bytes from the EEPROM until the last byte has  
been received. These bytes include initial values  
for all control port registers as well as the DSP ap-  
plication code. After the last byte, the CS4812 ini-  
tiates a stop condition and begins program  
execution. At this point, the serial control port be-  
comes inactive until the next reset. Actual EE-  
2
of the 7-bit I C device address.  
SCL may be defined as an input or an output with  
respect to the CS4812. If the serial control port of  
the CS4812 is defined as the master, then SCL is an  
open-drain output and requires a pull-up resistor as  
shown in Figure 5. Conversely, if the serial control  
port of the CS4812 is defined as the slave, then  
SCL is an input.  
SDA carries time-multiplexed bidirectional serial  
data. It is open-drain and requires a pull-up resistor  
as shown in Figure 5.  
AD1 and AD0, the inputs which determine the 2  
lowest order bits of the 8-bit I C device address, are  
meaningful only when the CS4812 is operating as  
2
0
1
2
3
4
5
6
7
8
9
10  
16 17 18 19  
25 26 27 28 29 30 31 32 33 34 35 36 37  
SCL  
SDA  
CHIP ADDRESS (WRITE)  
A2 A1 A0  
MEMORY ADDRESS  
CHIP ADDRESS (READ)  
A2 A1 A0  
DATA  
DATA +n  
7
0
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
1
7
0
ACK  
START  
ACK  
ACK  
ACK  
NO  
ACK  
STOP  
START  
Figure 20. Control Port Timing, I2C Master Mode AutoBoot  
DS291PP3  
23  
CS4812  
PROM memory mapping is handled automatically  
by the development tools and is transparent to the  
designer.  
2
SEND I C START  
3.5.2.2 I2C Slave Mode  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
2
In I C slave mode, a write sequence from an exter-  
nal host controller is shown in Figure 22.. The host  
controller sends a write preamble consisting of a  
start condition followed by the slave address for the  
CS4812. The slave address byte consists of a 7-bit  
address field (00100|AD1|AD0) followed by a  
Read/Write bit (set to 0). AD1 and AD0 correspond  
to the logic levels applied to the these pins on the  
CS4812. The host controller then sends a MAP  
byte which contains the address of the control reg-  
ister to be accessed followed by the actual data byte  
to be written to the register designated by the MAP.  
Upon completion of this, the host controller then  
sends a stop condition to complete the transaction.  
GET ACK  
SEND MAP BYTE  
GET ACK  
SEND DATABYTE  
GET ACK  
2
Figure 21 shows the I C slave mode write flow di-  
agram  
Y
MORE DATA?  
N
2
In I C slave mode, a read sequence by an external  
host controller is shown in Figure 23. The host con-  
troller sends a write preamble to the CS4812 which  
2
SEND I C STOP  
Figure 21. I2C Slave Mode Write Flow Diagram  
26  
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19  
24 25  
27 28  
SCL  
SDA  
DATA +1  
DATA +n  
CHIP ADDRESS (WRITE)  
0 1 0 AD1 AD0 0  
MAP BYTE  
DATA  
0
0
INCR  
6
5
4
3
2
1
0
7
6
1
0
7
6
1
0
7
6
1
0
ACK  
ACK  
ACK  
ACK  
STOP  
START  
Figure 22. Control Port Timing, I2C Slave Mode Write  
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  
26 27 28  
SCL  
CHIP ADDRESS (WRITE)  
AD1 AD0  
MAP BYTE  
CHIP ADDRESS (READ)  
AD1 AD0 1  
DATA  
DATA +1 DATA + n  
SDA  
REQ  
INCR  
6
5
4
3
2
1
0
0
0
1
0
0
0
7
0
7
0
7
0
0
0
1
0
0
ACK  
ACK  
NO  
ACK STOP  
ACK  
START  
ACK  
START  
Figure 23. Control Port Timing, I2C Slave Mode Read  
24  
DS291PP3  
CS4812  
consists of a start condition followed by its slave  
address byte with the Read/Write bit set to 0. The  
host controller then initiates a read preamble. The  
read preamble is identical to the write preamble ex-  
cept for the state of the Read/Write bit. The host  
controller then sends a MAP byte which contains  
the address of the control register to be accessed.  
After receiving the MAP byte, the CS4812 returns  
the contents of this register to the host controller.  
The host controller may continue reading registers  
by sending additional MAP bytes or complete the  
transaction by initiating a stop condition. Figure 24  
shows the SPI mode slave read flow diagram initi-  
ated by the host microcontroller. Figure 25 shows  
2
SEND I C START  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
GET ACK  
SEND MAP BYTE  
GET ACK  
2
the I C slave mode read flow diagram incorporat-  
ing the DSP REQ signal. REQ is used to notify the  
host controller that a data byte from the DSP is  
waiting to be read.  
2
SEND I C START  
WRITE ADDRESS BYTE  
WITH R/W BIT = 1  
The behavior of the REQ signal is dependent on  
when data is written to the SCP output register in  
relation to SCL and bit 1 of the current byte being  
transferred. There are three cases of REQ behavior:  
GET ACK  
1. The REQ line will be de-asserted immediately  
following the rising edge of SCL on the D1 bit of  
the current byte being transferred if there is no data  
in the SCP output register. The REQ line remains  
de-asserted and a stop condition should be issued  
by the bus master, thus completing the transfer.  
READ DATABYTE  
Y
MORE BYTES  
TO READ?  
SEND ACK  
N
2. If data is written to the SCP output register prior  
to the rising edge of SCL for the D1 bit, REQ will  
remain asserted. The bus master should continue to  
shift out this new byte.  
SEND NACK  
2
SEND I C STOP  
Figure 24. I2C Slave Mode Read Flow Diagram  
3. If data is placed in the SCP output register by the  
DSP after the rising edge of SCL for the D1 bit,  
REQ will be immediately re-asserted, thus creating  
a pulse on REQ. The byte in the SCP out register  
may be read by the bus master as part of the current  
transaction or may be read later as part of a new  
read transaction.  
control port registers.This feature is enabled by set-  
ting the INCR bit in the MAP byte.  
During a write sequence, multiple bytes may be  
written by continuing to send data bytes to the  
CS4812 after the first data byte and before initiat-  
ing a stop condition. If auto increment is disabled,  
the last data byte sent will appear in the register  
designated by the MAP. If auto increment is en-  
The CS4812 has a MAP auto increment capability  
which allows block reads or writes of successive  
DS291PP3  
25  
CS4812  
abled, data bytes sent following the first data byte  
will be written to successive registers following  
that designated in the MAP.  
N
REQ LOW?  
Y
During a read sequence, multiple bytes may be read  
by continuing to clock in data bytes to the CS4812  
after the first data byte and before initiating a stop  
condition. If auto increment is disabled, the last  
data byte read will be the register designated by the  
MAP. If auto increment is enabled, data bytes read  
following the first data byte will be read from suc-  
cessive registers following that designated in the  
MAP.  
2
SEND I C START  
WRITE ADDRESS BYTE  
WITH R/W BIT = 0  
GET ACK  
3.6  
Boot Modes  
There are two different techniques that allow the  
system to load the application code into the  
CS4812. The first technique is called, AutoBoot”  
and allows the application code to be loaded from  
an external serial EEPROM with an I2C or SPI in-  
terface. This technique is used in system applica-  
tions that due not have a host. The second  
technique is called, Host Bootand allows the ap-  
plication code to be loaded directly from the host  
microcontroller via I2C or SPI communication in-  
terface. This method may eliminate the need for an  
external EEPROM.  
SEND MAP BYTE  
GET ACK  
2
SEND I C START  
WRITE ADDRESS BYTE  
WITH R/W BIT = 1  
GET ACK  
3.6.1 AutoBoot  
The AutoBoot method simply requires an external  
EEPROM with an I C or SPI serial bus interface.  
READ DATABYTE  
2
The DSP, automatically loads and runs the applica-  
tion code resident in the EEPROM upon deasser-  
tion of the RESET line. It should be noted that this  
technique is used for systems that do not have a mi-  
crocontroller and do not require real-time adjust-  
ment of the application code parameters. Please  
refer to Table 10 on page 6 for the timing require-  
ments of the RESET line.  
Y
SEND ACK  
REQ STILL LOW?  
N
SEND NACK  
2
SEND I C STOP  
Figure 25. I2C Slave Mode Read from DSP Core  
Flow Diagram with DSP REQ  
3.6.2 HostBoot  
By using the HostBoot technique, an external mi-  
crocontroller is required to download the applica-  
26  
DS291PP3  
CS4812  
tion code. This technique allows for real-time  
control of all parameters specific to the application  
code. Please refer to Figure 26 for the HostBoot  
procedure flow chart and to Section 1.2.1 of  
AN195 for an example of a host boot sequence.  
SEND APPLICATION  
SPECIFIC CONTROL PORT  
CONFIG BYTES  
WRITE BYTE 0XA4  
TO CONTROL PORT  
REGISTER 4 (MAP = 4)  
3.7  
Resets  
There are several reset mechanisms in the CS4812  
which affect different parts of the chip. Full chip re-  
set can only be achieved by asserting the external  
RST pin. With RST asserted, the chip enters low  
power mode during which the control port, CO-  
DEC and DSP are reset, all registers are returned to  
their default values and the DAC outputs are mut-  
ed. The RST pin should be asserted during power-  
up until the power supplies have reached steady  
state.  
WRITE BYTE 0XA5  
TO CONTROL PORT  
REGISTER 4  
WRITE BYTE 0XA7  
TO CONTROL PORT  
REGISTER 4  
SEND 3 BYTE MESSAGE TO  
THE DSP INPUT REGISTER  
(MAP = 3) :0X000004  
WAIT FOR REPLY FROM DSP  
(REQ LINE GOES LOW)  
If the supply voltage drops below 4 Volts, the CO-  
DEC is reset, the DAC outputs are muted and the  
DSP automatically executes a soft reset.  
READ REPLY BYTE FROM DSP  
OUTPUT REGISTER (MAP = 27)  
Upon exit from a CODEC reset, the DSP restarts  
the application code and the CODEC performs the  
following procedure:  
N
REPLY BYTE  
= 0 01?  
X
Y
The CODEC resynchronizes.  
The DAC outputs unmute.  
WRITE .LDT FILE INTO  
DSP INPUT REGISTER (MAP = 16)  
(LOAD APPLICATION CODE)  
N
REQ  
LOW?  
Y
READ REPLY BYTE FROM DSP  
OUTPUT REGISTER (MAP = 27)  
N
REPLY BYTE  
= 0 02?  
X
Y
SEND 3 BYTE MESSAGE TO  
THE DSP INPUT REGISTER  
(MAP = 16):0X000005  
WRITE BYTE 0XA6  
TO CONTROL PORT  
REGISTER 4  
Figure 26. HostBoot Flow Diagram  
DS291PP3  
27  
CS4812  
only one supply is available, use the suggested ar-  
rangement in Figure 5.  
4. POWER SUPPLY AND GROUNDING  
Proper layout and grounding is critical to obtaining  
optimal audio performance in your system. The  
A single solid ground plane is the simplest ground-  
most important rule to remember is to not allow ing scheme that works well in many cases. All an-  
currents from digital circuitry to couple into sensi- alog and digital grounds shown in Figure 5 should  
tive analog circuitry. This is generally done by us- be tied to the one plane.  
ing a separate or filtered power supply for the  
Decoupling capacitors should be placed as close as  
analog circuitry, physically separating the analog  
and digital components and traces in the pcb layout  
and using wide traces or planes for ground and  
power. One misplaced component or trace can se-  
verely degrade overall system performance.  
possible to the device with the lowest value capac-  
itor closest to the chip. Any power and ground con-  
nection vias should be placed near their respective  
component pins and should be attached directly to  
the appropriate plane. If traces are used for the  
When using separate supplies, the analog and digi- power supplies to the CS4812, they should be as  
tal power should be connected to the CS4812 via a  
ferrite bead, positioned closer than 1" to the device  
(see Figure 21). The CS4812 VA pin should be de-  
rived from the quietest power source available. If  
wide as possible to maintain low impedance.  
It is recommended to solder the CS4812 directly to  
the printed circuit board. Soldering improves per-  
formance and enhances reliability  
>
1/8"  
Digital  
Power  
Plane  
Note that the CS4812  
is oriented with its  
digital pins towards the  
digital end of the board.  
Ferrite  
Bead  
CS4812  
Analog  
Power  
Plane  
Digital Interface  
Analog Signals &  
Components  
Figure 27. CS4812 Suggested Layout  
28  
DS291PP3  
CS4812  
5. PIN DESCRIPTIONS  
DGND  
AD1/CDIN  
AD0/CS  
SPI/I2C  
SCPM/S  
REQ  
RST  
RES-VD  
NC  
VD  
DGND  
SCL/CCLK  
SDA/CDOUT  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
RES-DGND  
RES-DGND  
NC  
NC  
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51  
RES-DGND  
CLKOUT  
XTO  
81  
82  
83  
50  
49  
48  
NC  
AINL+  
AINL-  
VA  
XTI  
DGND  
VD  
DGND  
PIO0  
PIO1  
OVL  
RES-DGND  
PIO2  
RES-DGND  
PIO3  
RES-DGND  
NC  
84  
85  
86  
87  
88  
47  
46  
45  
44  
43  
AGND  
AINR+  
AINR-  
CMOUT  
CMFILT+  
CMFILT-  
RES-NC  
RES-DGND  
RES-NC  
NC  
89  
90  
91  
92  
93  
94  
42  
41  
CS4812  
100-PIN MQFP  
40  
39  
38  
37  
36  
35  
34  
33  
32  
95  
96  
97  
98  
99  
100  
31  
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30  
NC  
NC  
RES-DGND  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
NC  
AOUT1+  
AOUT1-  
AOUT2+  
AOUT2-  
AGND  
VA  
AGND  
RES-NC  
RES-NC  
NC  
RES-NC  
RES-NC  
RES-NC  
RES-NC  
AGND  
VA  
RES-NC  
RES-NC  
Figure 28. Pin Assignments  
DS291PP3  
29  
CS4812  
Power Supply  
VA - Analog Power  
Power: analog supply, +5V.  
AGND - Analog Ground  
Ground: analog ground.  
VD - Digital Power  
Power: digital supply, +5V.  
DGND - Digital Ground  
Ground: digital ground.  
Analog Inputs  
AINL+/-,AINR+/- - Differential Analog Inputs  
Inputs: These pins accept differential analog input signals and are internally biased to the reference  
voltage of 2.3 V. The + and - input signals should be 180° out of phase. A single-ended signal may also  
be directly applied to either the + or - input with the other input AC coupled to ground through a  
capacitor. In general, differential input signals provide better performance. For best audio performance,  
a passive anti-aliasing filter is required. The typical connection diagram in Figure 5. shows the  
recommended single-ended input circuit. Figure 10 shows the recommended differential input circuit.  
Inputs may be externally AC or DC coupled. This permits use of the ADCs for input of audio signals or  
for measurement of DC control voltages. By default, an internal high pass filter removes any DC offsets  
from both of the ADC inputs. If measurement of DC is required on either of the ADC inputs, then the  
internal high pass filter must be disabled. Analog audio input signals that are DC coupled must be  
biased at 2.3 V to maintain proper input signal swing. DC control input voltages may range from ground  
to Vcc and should be applied to only the + or - input with the other input coupled to ground through a  
capacitor.  
OVL - ADC Overload Indicator  
Output: This pin is asserted if either ADC is clipping. The pin does not latch and de-asserts when  
clipping stops.  
Analog Outputs  
AOUT1+/-, AOUT2+/- - Differential Audio Outputs  
Outputs: These pins output differential analog signals which are biased to the internal reference voltage  
of approximately 2.3V. The + and - output signals are 180° out of phase resulting in a nominal  
differential output voltage of twice the output pin voltage. For best performance, an anti-imaging filter is  
required. Figure 12 shows the recommended second and third order Butterworth differential-to-single-  
ended output buffer circuits.  
Voltage Reference  
CMOUT - Common Mode Output  
Output: This pin provides an internally generated reference of 2.3V to be used for biasing external  
analog circuitry. The load on CMOUT must be DC only, with an impedance of not less than 50 k.  
CMFILT+,CMFILT- - Common Mode Filter Connections  
Inputs: These pins are connections for external filter components required by the internal common mode  
reference circuit. See the typical connection diagram in Figure 5. for details.  
30  
DS291PP3  
CS4812  
Serial Control Port  
SCPM/S - Serial Control Port Master/Slave Select  
Input: This pin configures the serial control port as a master if tied to VD or a slave if tied to DGND.  
SPI/I2C - Serial Control Port Format Select  
Input: This pin configures the control port for I2C format if tied to VD or SPI format if tied to DGND.  
SCL/CCLK - Serial Control Port Clock  
Bidirectional: This pin clocks serial control port data into and out of SDA in I2C mode. In SPI mode, it  
clocks control port data into CDIN and out of CDOUT. When the serial control port is configured as a  
master, SCL/CCLK is an output and is generated internally. When the serial control port is configured as  
a slave, SCL/CCLK is an input and may operate asynchronously to the master clock.  
AD0/CS - I2C Address Bit 0 / SPI Chip Select  
Bidirectional: In I2C® mode, AD0 is an input and defines bit 0 of the partial chip address. The upper 5  
bits of the 7-bit address must be 00100. In SPI mode, CS is the chip select pin. When the serial control  
port is defined as a master in SPI mode, CS is an output. When the serial control port is defined as a  
slave in SPI mode, CS is an input.  
AD1/CDIN - I2C Address Bit 1 / SPI Data Input  
Input: In I2C® mode, AD1 is an input and defines bit 1 of the partial chip address. The upper 5 bits of  
the 7-bit address must be 00100. In SPI mode, CDIN is the serial control port data input and is clocked  
in on the rising edge of CCLK.  
SDA/CDOUT - I2C Data / SPI Data Output  
Bidirectional: In I2C® mode, SDA is the bidirectional data I/O line. In SPI mode, CDOUT is the serial  
control port data output and is clocked out on the falling edge of CCLK.  
REQ - DSP Output Request  
Output: This pin is used when the serial control port is configured for slave mode operation. This pin is  
asserted when the DSP has written a byte to a register in the control port. When this register is read by  
the master device, REQ is de-asserted.  
Clock and Crystal  
XTI, XTO - Crystal Oscillator Connections (Master Clock)  
Input, Output: These pins provide connections for an external parallel resonant quartz crystal.  
Alternately, an external clock source may be applied to XTI. The clock frequency must be 256xFs.  
CLKOUT - Clock Output  
Output: This pin provides a clock output which can be used to synchronize external components.  
Available output frequencies 1xFs, 128xFs and 256xFs are selectable via a control port register. The  
default frequency is 256xFs. It is recommended to externally buffer this signal with a CMOS gate as  
shown in Figure 5.  
Miscellaneous  
PIO0:3 - General Purpose Inputs/Outputs  
Bidirectional: These pins are general-purpose digital I/O pins. The Default state is input. The  
functionality of these pins after boot-up is determined by the application firmware code loaded into the  
device during the boot-up process.  
RST - Reset  
Input: This pin causes the device to enter a low power mode and forces all control port and i/o registers  
to be reset to their default values. The control port can not be accessed when reset is low.  
DS291PP3  
31  
CS4812  
NC - No Connect  
Input: These pins are not internally connected and should be tied to ground for optimal performance.  
RES-NC - Reserved, No Connect  
These pins are reserved and must be left unconnected for normal operation.  
RES-VD - Reserved, Connect to VD  
These pins are reserved and must be tied to VD for normal operation.  
RES-DGND - Reserved, Connect to DGND  
These pins are reserved and must be tied to digital ground for normal operation.  
RES-AGND - Reserved, Connect to AGND  
These pins are reserved and must be tied to analog ground for normal operation.  
32  
DS291PP3  
CS4812  
6. PARAMETER DEFINITIONS  
Dynamic Range  
The ratio of the full scale RMS value of the signal to the RMS sum of all other spectral components  
over the specified bandwidth. Dynamic range is a signal-to-noise measurement over the specified  
bandwidth made with a -60 dbFs signal. 60 dB is then added to the resulting measurement to refer the  
measurement to full scale. This technique ensures that the distortion components are below the noise  
level and do not effect the measurement. This measurement technique has been accepted by the Audio  
Engineering Society, AES17-1991, and the Electronic Industries Association of Japan, EIAJ CP-307.  
Total Harmonic Distortion + Noise  
The ratio of the RMS value of the signal to the RMS sum of all other spectral components over the  
specified bandwidth (typically 20 Hz to 20 kHz), including distortion components. Expressed in decibels.  
ADCs are measured at -1dBFs as suggested in AES 17-1991 Annex A.  
Idle Channel Noise / Signal-to-Noise-Ratio  
The ratio of the RMS analog output level with 1kHz full scale digital input to the RMS analog output  
level with all zeros into the digital input. Measured A-weighted over a 10 Hz to 20 kHz bandwidth. Units  
in decibels. This specification has been standardized by the Audio Engineering Society, AES17-1991,  
and referred to as Idle Channel Noise. This specification has also been standardized by the Electronic  
Industries Association of Japan, EIAJ CP-307, and referred to as Signal-to-Noise-Ratio.  
Total Harmonic Distortion (THD)  
THD is the ratio of the test signal amplitude to the RMS sum of all the in-band harmonics of the test  
signal. Units in decibels.  
Interchannel Isolation  
A measure of crosstalk between channels. Measured for each channel at the converters output with no  
signal to the input under test and a full-scale signal applied to the other channel. Units in decibels.  
Frequency Response  
A measure of the amplitude response variation from 20Hz to 20kHz relative to the amplitude response  
at 1kHz. Units in decibels.  
Interchannel Gain Mismatch  
For the ADCs, the difference in input voltage that generates the full scale code for each channel. For  
the DACs, the difference in output voltages for each channel with a full scale digital input. Units are in  
decibels.  
Gain Error  
The deviation from the nominal full scale output for a full scale input.  
Gain Drift  
The change in gain value with temperature. Units in ppm/°C.  
Offset Error  
For the ADCs, the deviation in LSBs of the output from mid-scale with the selected input grounded. For  
the DACs, the deviation of the output from zero (relative to CMOUT) with mid-scale input code. Units  
are in volts.  
DS291PP3  
33  
CS4812  
7. PACKAGE DIMENSIONS  
100L MQFP PACKAGE DRAWING  
E
E1  
D1  
D
1
e
B
A
A1  
L
INCHES  
MILLIMETERS  
MIN  
---  
DIM  
MIN  
---  
MAX  
0.134  
0.014  
0.015  
0.687  
0.555  
0.923  
0.791  
0.030  
7.000°  
0.030  
MAX  
3.400  
0.350  
0.380  
17.450  
14.100  
23.450  
20.100  
0.750  
7.00°  
A
A1  
B
D
D1  
E
0.010  
0.009  
0.667  
0.547  
0.904  
0.783  
0.022  
0.000°  
0.018  
0.250  
0.220  
16.950  
13.900  
22.950  
19.900  
0.550  
0.00°  
E1  
e*  
L
0.450  
0.750  
* Nominal pin pitch is 0.65 mm  
Controlling dimension is mm.  
JEDEC Designation: MS022  
34  
DS291PP3  
• Notes •  

相关型号:

CDB4923

Evaluation Board
CIRRUS

CDB49300

Evaluation Board
CIRRUS

CDB4954A

Evaluation Board
CIRRUS

CDB4955A

Evaluation Board
CIRRUS

CDB5012

Evaluation Board
CIRRUS

CDB5012A

Evaluation Board
CIRRUS

CDB5014

Evaluation Board
CIRRUS

CDB5016

Evaluation Board
CIRRUS

CDB5321

Evaluation Board
CIRRUS

CDB5330A

Evaluation Board
CIRRUS

CDB5331A

Evaluation Board
CIRRUS

CDB5333

24-Bit, 96 kHz Stereo A/D Converter
CIRRUS