CDB8420 Evaluation Board for CS8420 Features Description Asynchronous Sample Rate Conversion Input to output conversion ratio as large as 1:3 or 3:1 Receives and transmits AES/EBU, S/PDIF and EIAJ-340 compatible digital audio Runs from a single 5 Volt supply. Crystals are supplied to allow operation at 44.1 kHz, 48 kHz, and 96 kHz output sample rates. Digital patch area. The CDB8420 is designed to allow rapid evaluation of the CS8420. Because of the high performance of the CS8420, the board is set up for easy connection to an Audio Precision or a Rohde and Schwarz test system. Currently available A/D and D/A converters are not adequate to test the full performance of the device. Input and output data may independently be set to either AES/EBU or S/PDIF in optical or coaxial physical formats. Windows 98 PC software provides a GUI interface to make configuration easy. The software communicates through the PC’s RS232 port to a micro-controller on the evaluation board that controls the CS8420. All the possible software modes of the CS8420 may be tested. ORDERING INFORMATION CDB8420 Evaluation Board I Amtel µC RS232 port to PC Optical Out Optical In S/PDIF In CS8420 AES 3 In Preliminary Product Information http://www.cirrus.com S/PDIF Out AES 3 Out This document contains information for a new product. Cirrus Logic reserves the right to modify this product without notice. Copyright Cirrus Logic, Inc. 2003 (All Rights Reserved) Dec ‘03 DS245DB4 1 CDB8420 TABLE OF CONTENTS 1. OVERVIEW ............................................................................................................................... 3 1.1 CS8420 .............................................................................................................................. 3 1.2 Micro-Controller and Memory ............................................................................................ 3 1.3 Crystal Oscillators .............................................................................................................. 3 1.4 RS232 Port ........................................................................................................................ 3 1.5 LED Function Indicators ..................................................................................................... 3 2. CDB8420.EXE QUICK START GUIDE .................................................................................... 5 2.1 Setting up the hardware: .................................................................................................... 5 2.2 Installing the software: ....................................................................................................... 5 2.3 Starting up the software: .................................................................................................... 5 2.4 Starting up the Hardware: .................................................................................................. 5 3. CDB8420.EXE USER'S GUIDE ................................................................................................ 6 3.1 Main Window ..................................................................................................................... 6 3.2 Board Setup ....................................................................................................................... 7 3.3 Script file syntax ................................................................................................................. 7 LIST OF FIGURES Figure 1. CDB8420 Control Panel Main Window ............................................................................ 6 Figure 2. Board Setup Panel ........................................................................................................... 7 Figure 3. CS8420 Sample Rate Converter...................................................................................... 8 Figure 4. Atmel AVR RISC Micro-controller .................................................................................... 9 Figure 5. Power Supplies and Reset Circuit.................................................................................. 10 Figure 6. Silkscreen....................................................................................................................... 11 Figure 7. Top PCB......................................................................................................................... 12 Figure 8. Bottom PCB ................................................................................................................... 13 LIST OF TABLES Table 1. System Connections ......................................................................................................... 4 Table 2. CDB8420 Jumper Settings................................................................................................ 4 Table 3. Script file syntax description.............................................................................................. 7 2 DS245DB4 CDB8420 1. OVERVIEW The CDB8420 evaluation board contains a CS8420 and the supporting circuitry necessary for it to operate. The input and output options include AES3 and S/PDIF in optical and coaxial formats. In software mode, the control registers of the CS8420 are set by an Atmel AVR RISC micro-controller. A Windows 98 based program communicates with the micro through an RS232 port to control the configuration. 1.1 CS8420 The features and functions of the CS8420 are described in its data sheet. 1.2 Micro-Controller and Memory The functions of the board are controlled by an Atmel AVR RISC micro-controller. The board is equipped with 512 kilobytes of static RAM so that Channel Status and User bits from the AES stream may be captured and uploaded to the host PC. The micro-controller communicates with the CS8420 through its SPI port. The Atmel AVR RISC microcontroller may be bypassed in order to utilize an external micro-controller through header J10. Additional software development tools and applications information for the Atmel micro-controller are available at http://www.atmel.com. 1.3 placed. The oscillator labeled U10 provides the 6 MHz clock for the micro-controller and should not be changed. U3 is the oscillator that provides the Output Master Clock for the CS8420. The board is shipped with a 12.288 MHz crystal oscillator stuffed at U3 which sets the output sampling rate to 48 kHz. Oscillators are also provided for the frequencies of 11.2896 and 24.576 MHz. These allow the SRC to be operated at output sampling frequencies of 44.1 and 96 kHz. 1.4 RS232 Port The RS232 port on the upper right hand side of the board should be connected to the serial port of the PC running the CDB8420 control software. Follow the software instructions to properly configure the serial port for use with the evaluation board. 1.5 LED Function Indicators LEDs D8 and D9 on the upper right hand corner of the board allow the user to determine when data is being transmitted over the RS232 link. The red LED D4 is the reset indicator and the red LED D1 is connected to the RERR pin of the CS8420. The two remaining LEDs on the board are not currently of use to the end user. Crystal Oscillators There are two crystal oscillators on the board, both are mounted in pin sockets that allow them to be re- DS245DB4 3 CDB8420 CONNECTOR +5V GND OPTICAL INPUT S/PDIF INPUT AES3 INPUT RS232 OPTICAL OUTPUT S/PDIF OUTPUT AES3 OUTPUT J5 J6 J9 J10 INPUT/OUTPUT Input Input Input Input Input Input/Output Output Output Output Input/Output Input/Output Input Input/Output SIGNAL PRESENT +5 Volt power Ground connection from power supply Digital Audio Interface optical input Digital Audio Interface coaxial input Digital Audio Interface XLR input Parallel RS232 port for connection to serial port of PC Digital Audio Interface optical output (always active) Digital Audio Interface coaxial output Digital Audio Interface XLR output I/O for RMCLK, ISCLK,ILRCK, and SDIN I/O for OLRCK, OSCLK, OMCK, and SDOUT 10-pin header for external programming of Atmel AVR µC 12-pin header for CS8420 control by external µC Table 1. System Connections JUMPER PURPOSE J11 Selects physical format of digital audio interface input J12 Enables AES3 INPUT J13 J14 J16 J17 J15 POSITION AES3 & S/PDIF OPTICAL ENABLE DISABLE Enables S/PDIF INPUT ENABLE DISABLE Enables OPTICAL INPUT ENABLE DISABLE Selects physical format of digital AES3 audio interface output S/PDIF Enables S/PDFIF OUTPUT ENABLE DISABLE Enables HARDWARE MODE MUTE ENABLE DISABLE FUNCTION SELECTED Specifies input as either AES3 or S/PDIF type Specifies input as OPTICAL type AES3 INPUT enabled AES3 INPUT disabled S/PDIF INPUT enabled S/PDIF INPUT disabled OPTICAL INPUT enabled OPTICAL INPUT disabled Specifies output as AES3 XLR Specifies output as coaxial S/PDIF S/PDIF OUTPUT enabled S/PDIF OUTPUT disabled Enables MUTE when in hardware mode 1 Disables MUTE when in hardware mode 1 Table 2. CDB8420 Jumper Settings 4 DS245DB4 CDB8420 2. CDB8420.EXE QUICK START GUIDE 2.3 2.1 1) Double-click on CDB8420.exe or its shortcut. Setting up the hardware: Starting up the software: 1) Connect the CDB8420 to a 5V DC power supply. 2) If you get errors right away, the COM port needs to be set properly. 2) Set: J11 to Optical, J16 to S/PDIF, enable J13 (S/PDIF), and disable J15 (MUTE). 3) Click anywhere but inside one of the boxes, this brings up the Board Setup control panel. 3) Connect the CDB8420 to the PC COM port using RS232 cable. 4) Select the COM port you are using to connect to the CDB8420. 4) Apply power to the board. 5) Shut down the application, reset the board, and then restart the application. 5) Press the RESET switch (S5). At this point, the RERR and PROC should be lit. The hardware is now ready! 2.2 Installing the software: 1) Create a directory called CDB8420 anywhere on your system. 2) Copy CDB8420.exe into this directory. 3) If you do not already have them, copy the included DLLs msvcrt.dll and mfc42.dll into your \Windows\System directory. 4) If desired, create a shortcut to CDB8420.exe on your desktop. At this point, you are ready to start up the software. DS245DB4 2.4 Starting up the Hardware: 1) Click anywhere but inside one of the boxes, this brings up the Board Setup control panel. 2) Click on the Reset button. You should see the TX and RX leds light up briefly. 3) Click on the Sample Rate Converter tab, then set the SRC data source to AES3 Receiver. 4) Click on the Clock Sources tab, uncheck the Stop Internal Clocks box and click on RMCK derived from AES3 input frame. 5) Check the performance of the board by doing an FFT with a -1dBFS 1kHz sine wave for input at 44.1kHz and 48kHz sample rates using the optical input and optical output. 5 CDB8420 3. CDB8420.EXE USER'S GUIDE 3.1 Main Window The CDB8420 Control Panel allows you to view and access the data flow configuration of the CS8420. Clicking the right mouse button in any of the boxes will bring up a property menu containing all the register bits relevant to that block, as well as some high level functions, such as data sources and formatting options. To access additional details about each block, click the left mouse button on the desired block. This will display a control panel for the selected block. If you click outside the boxes, you will bring up the Board Setup control panel, as shown on the next page. Note that you can click on any of the tabs to quickly access that section. Also, any changes you make in the panel are immediately reflected in the Main Window, so you may wish to arrange them so that they do not obscure each other. Figure 1. CDB8420 Control Panel Main Window 6 DS245DB4 CDB8420 3.2 Board Setup The Board Setup panel has some very useful functions, including setting the COM Port used by the application, resetting the CS8420 by the software, as well as loading/saving register settings into files. You can also can read or write any register on the CS8420 using the CS8420 Register Access. 3.3 Script file syntax The setup files generated by the board setup function only record the state of the chip registers. There are many more useful commands that you can insert into the setup scripts. Here is a short description of them with their allowed syntax. NOTE: Most commands accept either hexadecimal (indicated by either a "0x" prefix or "h" suffix) or decimal parameters. // used for single line comments script scriptfile call an external script file named "scriptfile" reset 1 assert reset of the CS8420 reset 0 de-assert reset of the CS8420 wr 1 30h write register 1 with hex 30 set DITH 1 set the bit field labeled DITH to 1 write 2 3 0x10 12h 13 write 3 consecutive registers starting from register 2 with hex 10, hex 12, and decimal 13 Table 3. Script file syntax description Figure 2. Board Setup Panel DS245DB4 7 5 6 T1 1 1 2 3 J3 XLR-FEMALE 2 HDR3X1 J12 .1uF 4 C4 5 8 J11 HDR3X1 A 22pF C40 HDR3X1 HDR3X1 1 2 3 VD 4.7K R20 TP13 47K R1 TP14 HDR3X1 J15 1 2 3 .1uF C6 J14 110 236 J13 R17 1 2 3 MUTE R15 1 2 3 .1uF C2 47UH L1 SUP3 TCBLD TP12 2 TP8 TP7 2 D1 TP5 C7 B 3 825 R25 1 1uF 50V VA 1.6K R22 ILRCK ISCLK SDIN RMCK + C CS8420 4700pF C9 CDOUT /CS /EMPH RXP RXN VA AGND FILT /RST RMCK RERR ILRCK ISCLK SDIN U1 0.33uF C12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 CCLK CDIN TXP TXN H/S VD GND OMCK U INT SDOUT OLRCK OSCLK TCBL CCLK SUP5 SUP0 CDOUT CDIN H/S APMS /CS SUP1 SFMT0 28 27 26 25 24 23 22 21 20 19 18 17 16 15 TP27 C14 C11 .1uF C8 1000pF SDOUT OLRCK OSCLK OMCK TP28 47K R9 VD 1uF 50V 100 R26 TP26 8 14 TP25 Figure 3. CS8420 Sample Rate Converter LED_R C13 TP1 47K 47K TP2 R8 R7 1000pF C10 HDR4X2 J5 TP6 TP4 47K 47K TP3 R6 R5 .1uF 74VHC125 U2A TP9 47K R4 TP10 47K R3 TP11 47K R2 + 1 3 VD .01uF TRANSFORMER PHONO-JACK J1 OPT1 4 3 2 1 C1 2 6 SFMT1 + 1 /RST 1 3 5 7 2 4 6 8 SDIN ILRCK ISCLK RMCK TP23 NC 7 1 D 1000pF .1uF C17 + TP20 47K 47K TP21 R11 R10 HDR4X2 J6 TP22 C16 12.888MHz Out GND VD U3 TP24 1 3 5 7 2 4 6 8 SDOUT OLRCK OSCLK OMCK 1 2 3 1 2 3 J4 4 1 T2 XLR-MALE 22pF C41 J17 HDR3X1 J16 OPT2 Document Number SCHM DWG CDB8420 (600-00100-01) Wednesday, November 12, 2003 Date: E Sheet 5 6 2 5 8 1 of 3 1 3 D Rev J2 TRANSFORMER PHONO-JACK 4 3 2 1 Semiconductor Products Division HDR3X1 84.5 R19 681 R18 R16 110 .1uF C3 R14 6.2K Gomez Marketing Evaluation Board VD FERRITE BEAD 22K1 TP15 .1uF C5 VD Size B Title 1uF 50V L2 47K R13 TP16 R21 TP17 2 Ohms TP18 C15 R24 TP19 47K R12 CEN SUP4 INT S/AES 2 6 8 SUP2 CDB8420 DS245DB4 HDR5X2 J9 8 7 6 5 4 3 2 1 SW DIP-8 S6 8x 47K 9 10 11 12 13 14 15 16 2 3 4 5 6 7 8 9 A R37 TP32 100 VD 100 /PGM R36 R32 1K 1 LED_G D10 VD 2 U11 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 VD VD D[0-7] U6 74HC4053 U7 B TP30 PA2(AD2) PA1(AD1) PA0(AD0) VD GND PF7(ADC7) PF6(ADC6) PF5(ADC5) PF4(ADC4) PF3(ADC3) PF2(ADC2) PF1(ADC1) PF0(ADC0) AREF AGND AVCC X0 X1 12 13 RN1 74HC574 Y0 Y1 2 1 1 U5 Z0 Z1 5 3 VD 9 7 5 3 1 10 8 6 4 2 19 18 17 16 15 14 13 12 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 D1 D2 D3 D4 D5 D6 D7 D8 14 X INH A B C D0 D1 D2 D3 D4 D5 D6 D7 2 3 4 5 6 7 8 9 15 Y HM628512 74HC573 A[8-14] 2 3 4 5 6 7 8 9 D0 D1 D2 D3 D4 D5 D6 D7 CLK OC 4 Z 19 18 17 16 15 14 13 12 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 D1 D2 D3 D4 D5 D6 D7 D8 11 1 17 D3 18 D4 19 D5 20 D6 21 D7 22 23 A10 24 25 A11 26 A9 27 A8 28 A13 29 30 31 D3 D4 D5 D6 D7 /CS A10 /OE A11 A9 A8 A13 /WE A17 A15 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 A12 A14 A16 A18 D2 15 D1 14 D0 13 12 11 10 9 8 7 6 5 A12 4 A14 3 2 1 C OC 6 11 10 9 U8 ATmega103 TP29 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 SUP0 SUP2 SUP4 APMS C SUP1 SUP3 SUP5 TCBLD R35 SFMT0 H/S S/AES 100 MRST SFMT1 MUTE CEN NC J10 11 9 7 5 3 1 Out GND 6.000MHz U10 HDR6X2 12 10 8 6 4 2 8 14 VD VD .1uF .1uF 1uF 50V C26 C25 L4 .1uF C29 C33 INT CCLK CDOUT .1uF /RESET /CS CDIN 74VHC125 U2D .1uF C31 C32 1uF 50V C34 + VD 12 .1uF C30 2 Ohms R31 FERRITE BEAD .1uF C28 1000pF 7 1 .1uF C27 Figure 4. Atmel AVR RISC Micro-controller TP31 PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0/INT0 XTAL1 XTAL2 GND VD /RST TOSC1 TOSC2 PB7 1uF 50V + C24 + C23 D C35 .1uF 13 11 1 A14 A13 A12 A11 A10 A9 A8 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 PA3(AD3) PA4(AD4) PA5(AD5) PA6(AD6) PA7(AD7) ALE PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 /RD /WR /PEN PE0/RXD PE1/TXD PE2 PE3 PE4 PE5 PE6 PE7 PB0/CS PB1/CCLK PB2/CDIN PB3/CDOUT PB4 PB5 PB6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 11 C36 .1uF 825 R30 C38 .1uF V+ V- T2 OUT R2 OUT T1 OUT R1 OUT R33 680 680 R34 D9 D8 LED_G LED_R D7 1N4148 D6 1N4148 CONNECTOR DB9 P1 Document Number SCHM DWG CDB8420 (600-00100-01) Wednesday, November 12, 2003 E Sheet 3 of 3 Semiconductor Products Division C39 .1uF 2 6 7 9 14 12 5 9 4 8 3 7 2 6 1 CS8420 Marketing Evaluation Board C37 .1uF DS232 U9 1 Date: VD C2+ C2- C1+ C1- T2 IN R2 IN T1 IN R1 IN LED_G D5 Size B Title 4 5 1 3 10 8 11 13 2 15 GND VD 16 1 22 1 22 1 DS245DB4 1 VD D Rev CDB8420 9 A BLACK J8 RED J7 1 1 FERRITE BEAD L3 R27 2 Ohms 2 1 1 5 + B 3 .01uF C22 1 2 MRST BAT85 D11 VD C BAT85 Figure 5. Power Supplies and Reset Circuit 10K R38 VD .1uF C21 C20 100uF 6.3V .1uF 100uF 6.3V SW_MOM S5 P6KE6.8A Z1 + VA 2 1 1 47K R28 VD 74VHC125 74VHC125 U2C 8 6 VD 825 R29 LED_R D4 /RST D Wednesday, November 12, 2003 Date: Sheet Document Number SCHM DWG CDB8420 (600-00100-01) 2 E of 3 Semiconductor Products Division 9 5 U2B Gomez Marketing Evaluation Board /PGM BAT85 D3 D2 /RESET Size A Title 2 C19 4 10 2 10 1 C18 D Rev CDB8420 DS245DB4 Figure 6. Silkscreen CDB8420 DS245DB4 11 Figure 7. Top PCB CDB8420 12 DS245DB4 Figure 8. Bottom PCB CDB8420 DS245DB4 13 CDB8420 Revision History Release DB4 Date Nov 12, 2003 Changes Updated schematics. Moved legal statement to end of document and updated. Added revision block. 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 Cirrus Logic, Inc. and its subsidiaries ("Cirrus") believe that the information contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided "AS IS" without warranty of any kind (express or implied). Customers are advised to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. All products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement, and limitation of liability. No responsibility is assumed by Cirrus for the use of this information, including use of this information as the basis for manufacture or sale of any items, or for infringement of patents or other rights of third parties. This document is the property of Cirrus and by furnishing this information, Cirrus grants no license, express or implied under any patents, mask work rights, copyrights, trademarks, trade secrets or other intellectual property rights. Cirrus owns the copyrights associated with the information contained herein and gives consent for copies to be made of the information only for use within your organization with respect to Cirrus integrated circuits or other products of Cirrus. This consent does not extend to other copying such as copying for general distribution, advertising or promotional purposes, or for creating any work for resale. An export permit needs to be obtained from the competent authorities of the Japanese Government if any of the products or technologies described in this material and controlled under the "Foreign Exchange and Foreign Trade Law" is to be exported or taken out of Japan. An export license and/or quota needs to be obtained from the competent authorities of the Chinese Government if any of the products or technologies described in this material is subject to the PRC Foreign Trade Law and is to be exported or taken out of the PRC. CERTAIN APPLICATIONS USING SEMICONDUCTOR PRODUCTS MAY INVOLVE POTENTIAL RISKS OF DEATH, PERSONAL INJURY, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE (“CRITICAL APPLICATIONS”). CIRRUS PRODUCTS ARE NOT DESIGNED, AUTHORIZED OR WARRANTED FOR USE IN AIRCRAFT SYSTEMS, MILITARY APPLICATIONS, PRODUCTS SURGICALLY IMPLANTED INTO THE BODY, LIFE SUPPORT PRODUCTS OR OTHER CRITICAL APPLICATIONS (INCLUDING MEDICAL DEVICES, AIRCRAFT SYSTEMS OR COMPONENTS AND PERSONAL OR AUTOMOTIVE SAFETY OR SECURITY DEVICES). INCLUSION OF CIRRUS PRODUCTS IN SUCH APPLICATIONS IS UNDERSTOOD TO BE FULLY AT THE CUSTOMER’S RISK AND CIRRUS DISCLAIMS AND MAKES NO WARRANTY, EXPRESS, STATUTORY OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR PARTICULAR PURPOSE, WITH REGARD TO ANY CIRRUS PRODUCT THAT IS USED IN SUCH A MANNER. IF THE CUSTOMER OR CUSTOMER’S CUSTOMER USES OR PERMITS THE USE OF CIRRUS PRODUCTS IN CRITICAL APPLICATIONS, CUSTOMER AGREES, BY SUCH USE, TO FULLY INDEMNIFY CIRRUS, ITS OFFICERS, DIRECTORS, EMPLOYEES, DISTRIBUTORS AND OTHER AGENTS FROM ANY AND ALL LIABILITY, INCLUDING ATTORNEYS’ FEES AND COSTS, THAT MAY RESULT FROM OR ARISE IN CONNECTION WITH THESE USES. Cirrus Logic, Cirrus, and the Cirrus Logic logo designs are trademarks of Cirrus Logic, Inc. All other brand and product names in this document may be trademarks or service marks of their respective owners. I2C is a registered trademark of Philips Semiconductor. Purchase of I2C Components of Cirrus Logic, Inc., or one of its sublicensed Associated Companies conveys a license under the Philips I2C Patent Rights to use those components in a standard I2C system. 14 DS245DB4