CDB5464U CDB5464U Engineering Board and GUI Software Features General Description The CDB5464U is an inexpensive tool designed to evaluate the functionality and performance of the CS5464 analog-to-digital converter (ADC). The evaluation board includes an LT1019 voltage reference, a C8051F320 microcontroller with a USB interface, and firmware. The microcontroller controls the serial communication between the evaluation board and the PC via the firmware, enabling quick and easy access to all of theCS5464's registers and functions. Voltage and Current Interface USB Communication with PC On-board C8051F320 Microcontroller On-board Voltage Reference LabWindows(R)/CVI(R) GUI Software The CDB5464U includes software for data capture, time domain analysis, histogram analysis, and frequency domain analysis. - Register Setup & Chip Control - FFT Analysis - Time Domain Analysis Schematics in PADSTM PowerLogicTM format are available for download at www.cirrus.com/IndustrialSoftware. - Noise Histogram Analysis "Auto-boot" Demo with Serial EEPROM ORDERING INFORMATION +5V VD+_EXT GND +2.5V reference CDB5464U Evaluation Board Vu+_EXT USB SERIAL EERPOM REF IN OUT VREF CS VIN+ SDI C8051F320 SDO SCLK VINIIN1+ INT RESET CS5464 E1 IIN1- E2 IIN2+ Reset Circuirty RESET BUTTON E3 MODE IIN2- 4.096MHz Crystal www.cirrus.com Copyright (c) Cirrus Logic, Inc. 2007 (All Rights Reserved) OCT `07 DS847DB1 CDB5464U TABLE OF CONTENTS 1. HARDWARE ............................................................................................................................. 3 1.1 Introduction ........................................................................................................................ 3 1.2 Evaluation Board Overview ................................................................................................ 3 1.3 Analog Section ................................................................................................................... 4 1.4 Digital Section .................................................................................................................... 5 1.5 Power Supply Section ........................................................................................................ 6 1.6 Auto-boot Mode ................................................................................................................. 7 2. SOFTWARE .............................................................................................................................. 8 2.1 Installation .......................................................................................................................... 8 2.2 Using the Software ............................................................................................................. 8 2.3 Start-up Window ................................................................................................................ 8 2.4 Setup Window .................................................................................................................. 12 2.5 Calibration Windows ........................................................................................................ 14 2.6 Conversion Window ......................................................................................................... 16 2.7 Pulse Rate Window .......................................................................................................... 17 2.8 Data Collection Window ................................................................................................... 19 2.9 EEPROM Window ............................................................................................................ 26 2.10 Debug Panel .................................................................................................................. 27 Appendix A. Bill Of Materials .................................................................................................... 28 Appendix B. Schematics ........................................................................................................... 30 Appendix C. Layer Plots ............................................................................................................ 34 LIST OF FIGURES Figure 1. CDB5464U Assembly Drawing ........................................................................................ 3 Figure 2. GUI Start-up Window ....................................................................................................... 8 Figure 3. Setup Menu Showing Successful USB Connection ......................................................... 9 Figure 4. USB Error Message ......................................................................................................... 9 Figure 5. Data from Disc File Selection Window ........................................................................... 10 Figure 6. Menu Pull-down Options ................................................................................................ 10 Figure 7. Quit Dialog ..................................................................................................................... 11 Figure 8. Setup Window ................................................................................................................ 12 Figure 9. Calibration Window ....................................................................................................... 14 Figure 10. Conversion Window ..................................................................................................... 16 Figure 11. Pulse Rate Output Window .......................................................................................... 17 Figure 12. Data Collection Window ............................................................................................... 19 Figure 13. Configuration Window .................................................................................................. 20 Figure 14. Histogram Analysis ...................................................................................................... 22 Figure 15. FFT Analysis ................................................................................................................ 24 Figure 16. Time Domain Analysis ................................................................................................. 25 Figure 17. EEPROM Window........................................................................................................ 26 Figure 18. Debug Panel ................................................................................................................ 27 Figure 19. Schematic - Analog Inputs ........................................................................................... 30 Figure 20. Schematic - CS5464 & Socket..................................................................................... 31 Figure 21. Schematic - Microcontroller & USB Interface............................................................... 32 Figure 22. Schematic - Power Supplies ........................................................................................ 33 Figure 23. Top Silkscreen ............................................................................................................. 34 Figure 24. Top Routing.................................................................................................................. 35 Figure 25. Bottom Routing ............................................................................................................ 36 Figure 26. Bottom Silkscreen ........................................................................................................ 37 2 DS847DB1 CDB5464U 1. HARDWARE 1.1 Introduction The CDB5464U evaluation board provides a convenient means of evaluating the CS5464 power measurement IC. The CDB5464U evaluation board operates from a single +5V power supply. The evaluation board interfaces the CS5464 to a PC via a USB cable. To accomplish this, the board comes equipped with a C8051F320 microcontroller and a USB interface. Additionally, the CDB5464U GUI software provides easy access to the internal registers of the CS5464. The software also provides a means to display the performance in the time domain or frequency domain. 1.2 Evaluation Board Overview The board is partitioned into two main sections: analog and digital. The analog section consists of the CS5464 and a precision voltage reference. The digital section consists of the C8051F320 microcontroller, EEPROM, the hardware test switches, the reset circuitry, and the USB interface. The board also has a user friendly power supply connection. CDB5464U CS5464 4.096 MHz Figure 1. CDB5464U Assembly Drawing DS847DB1 3 CDB5464U 1.3 Analog Section The CDB5464U evaluation board provides screw-type terminals (J23, J27, & J28) to connect input signals to the voltage and current channels. The screw terminals are labels as VIN1-, VIN1+, IIN1+, IIN1-, and IIN2+, IIN2-. An R-C network at each channel input provides a simple anti-alias filter. The evaluation board provides three voltage reference options for VREFIN to the CS5464. The three voltage reference options include: VREFOUT from CS5464, the on-board +2.5V reference, and external REF+ (screw terminal J14). Table 1 and Table 2 illustrate the options available for VREFIN. With a jumper on J25 in the position labeled VREFOUT, the reference is supplied by the on-chip voltage reference. With a jumper on J25 in the position labeled VREF, the reference is supplied by an off-chip voltage reference. Reference Description J25 VREFOUT Selects On-chip Reference (25 ppm/C) VREF O VREFIN O VREFOUT (Default) VREF Selects External or LT1019 Reference(J12) VREF O VREFIN O VREFOUT Table 1. Internal Voltage Reference Selection for VREF Table 2 illustrates the options available for VREF. With a jumper on J12 in position LT1019, the LT1019 provides a +2.5V reference (the LT1019 was chosen for its low drift - typically 5 ppm/C). By setting the jumper on J12 to position REF+, an external voltage reference is supplied via screw terminal J14's REF+ input. Reference Description LT1019 Selects On-board LT1019 Reference (5 ppm/C) J12 LT1019 REF+ O O O VREF VREF REF+ Selects External Reference Source (J14) LT1019 REF+ O O O VREF VREF (Default) Table 2. External Voltage Reference Selection for VREF The three input signal options for the voltage (VIN1) and current (IIN1, IIN2) channels input include: an external signal (screw terminals J23, J27, and J28), GND, or VREF. Table3 illustrates the options available. By installing jumpers on J17 to position VIN1-, J22 to position VIN1+, J24 to position IIN1+, J26 to position IIN1-, J20 to position IIN2+, and J19 to position IIN2-, the input voltage signal is supplied from the screw terminals J23, J27, and J28. With a jumper on J17, J22, J24, J26, J20, and J19 in the GND position, 4 DS847DB1 CDB5464U the inputs are connected to analog ground (AGND). With a jumper on J17, J22, J24, J26, J20, and J19 in position VREF, the inputs are connected to the reference voltage selected on J12. INPUT Description VIN2 or VIN1 Selects External Signal J17 GND VREF O VIN1- O O O O J22 VIN1VIN1VIN1- (Default) VIN1+ VREF O GND O O O O VIN1+ VIN1+ VIN1+ (Default) VIN2 or VIN1 Selects External Signal GND VREF O VIN1- O O O O VIN1VIN1VIN1- VIN1+ VREF O GND O O O O VIN1+ VIN1+ VIN1+ GND Selects Grounding the Input GND VREF O VIN1- O O O O VIN1VIN1VIN1- VIN1+ VREF O GND O O O O VIN1+ VIN1+ VIN1+ VREFIN Selects Reference Source GND VREF O VIN1- O O O O VIN1VIN1VIN1- VIN1+ VREF O GND O O O O VIN1+ VIN1+ VIN1+ INPUT Description IIN1 or IIN2 Selects External Signal J24 GND VREF IIN1+ O O O O O J26 IIN1+ IIN1+IIN1+ (Default) IIN1VREF O GND O O O O J20 IIN1IIN1IIN1- (Default) GND VREF O IIN2+ O O O O J19 IIN2+ IIN2+ IIN2+ IIN2VREF GND (Default) O O O O O IIN2IIN2IIN2- (Default) IIN1 or IIN2 Selects External Signal GND VREF IIN1+ O O O O O IIN1+ IIN1+IIN1+ IIN1VREF O GND O O O O IIN1IIN1IIN1- GND VREF O IIN2+ O O O O IIN2+ IIN2+ IIN2+ IIN2VREF GND O O O O O IIN2IIN2IIN2- GND Selects Grounding the Input GND VREF IIN1+ O O O O O IIN1+ IIN1+IIN1+ IIN1VREF O GND O O O O IIN1IIN1IIN1- GND VREF O IIN2+ O O O O IIN2+ IIN2+ IIN2+ IIN2VREF GND O O O O O IIN2IIN2IIN2- VREFIN Selects Reference Source GND VREF IIN1+ O O O O O IIN1+ IIN1+IIN1+ IIN1VREF O GND O O O O IIN1IIN1IIN1- GND VREF O IIN2+ O O O O IIN2+ IIN2+ IIN2+ IIN2VREF GND O O O O O IIN2IIN2IIN2- Table 3. Voltage and Current Channel Input Signal Selection 1.4 Digital Section The digital section contains the microcontroller, USB interface, JTAG header, reset circuitry, and an external interface header (J40). The microcontroller interfaces the SPI of CS5464 with the USB connection to the PC, enabling the GUI software to access all the CS5464 registers and functions. Interface header, J40, is provided to allow the CDB5464U to be connected to an external energy registration device or an external microcontroller. To connect the CS5464 to an external microcontroller, R57, R58, R59, R60, R61, and R62 must be removed from the board. The energy output pins E1, E2, and E3 are routed to LEDs which provide a simple visual check of the energy output pulses. The MODE pin is also routed to a LED to indicate whether the CS5464 is operating in auto-boot mode. Jumpers J10, J13, J15, and J16 are equipped at the factory with jumpers to enable the LEDs. DS847DB1 5 CDB5464U 1.5 Power Supply Section Table 4 illustrates the power supply connections to the evaluation board. The +5V binding post (J3) supplies the positive analog (VA+) for the CS5464 and the +2.5V reference. The VD+_EXT binding post (J5) supplies the digital section of the CS5464 (VD+) and level shifters. Jumper J8 allows the VD+ supply to be sourced from the VD+_EXT binding post (J5), the +5V binding post (J3), or the regulated 3.3V supply derived from the microcontroller. The Vu+_EXT (J6) binding post supplies the positive supply for the 8051 microcontroller (8051_REGIN). Jumper J9 allows the 8051_REGIN supply to be sourced from either the Vu+_EXT binding post (J6), +5V binding post (J3) or VD+_EXT binding post (J5). Power Supplies Power Post Connections Analog (VA+) Digital (VD+) 8051 (Vu+) +5V GND VD+EXT VU+EXT NC VD+ 8051-REGIN J8 J9 VD+_EXT +5 O +3.3 O O O O VD+ VD+ VD+ Vu+_EXT +5 VD+ (Default) NC +5 +5 +5 +5 O O O O O 8051 8051 8051 (Default) +5 VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 NC VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 NC VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O O O 8051 8051 8051 VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O O O 8051 8051 8051 NC VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 +5 VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 NC VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 +5 VD+_EXT +5 O +3.3 O O VD+ O VD+ O VD+ Vu+_EXT +5 VD+ O O O 8051 O 8051 O 8051 0 +5 +5 NC NC +5 +3.3 +5 +5 0 +3.3 Table 4. Power Supply Connections 6 DS847DB1 CDB5464U 1.6 Auto-boot Mode With a jumper connection on J18 (AUTO-BOOT ENABLE), the CS5464 operates in auto-boot mode and the CDB5464U board operates as a stand-alone system without attaching it up to a PC. When in autoboot mode, a hardware reset (press on S1) will cause the CS5464 to boot up using the serial data from the serial EEPROM on the board (U10). When the CS5464 is in auto-boot mode, the SPI connections between the microcontroller and the CS5464 are removed and the GUI software can not access the CS5464 registers and functions. The EEPROM must be programmed prior to the auto-boot sequence. When the CDB5464U Evaluation Board is sent from the factory, the EEPROM is programmed with the following CS5464 command/data sequence: 1. Move to EEPROM page 1: 0x7E 0x00 0x00 0x01 2. Write Modes register, turn high-pass filters on: 0x60 0x00 0x01 0xE0 3. Move to EEPROM page 0: 0x7E 0x00 0x00 0x00 4. Set bit 2 (LSD) in the Mask register: 0x74 0x00 0x00 0x04 5. Start continuous conversion: 0xE8 6. Write STOP bit in Control register, to terminate auto-boot sequence: 0x78 0x00 0x01 0x00 This sequence programs the CS5464 for continuous conversion mode. If voltage and current signals are applied to the inputs, the CS5464 will issue pulses on the E1 pin. See the CS5464 data sheet for more details on auto-boot. DS847DB1 7 CDB5464U 2. SOFTWARE The evaluation board comes with software and an USB cable to link the evaluation board to the PC. The evaluation software was developed with LabWindows(R)/CVI(R), a software development package from national Instruments. The evaluation software is available for download on the Cirrus Logic web site at http://www.cirrus.com/industrialsoftware and was designed to run under Windows(R) 2000 or Windows XP(R). 2.1 Installation To install the software, go to the Cirrus Logic web site at http://www.cirrus.com/industrialsoftware and refer to application note AN278. 2.2 Using the Software Before launching the software, check all jumper settings on the CDB5464U evaluation board as described in Section 1, and connect the board to an open USB port on the PC using the provided cable. Once the board is powered on, the software program can be launched. 2.3 Start-up Window When the software is launched, the start-up window will appear. This window contains information concerning the software's title, revision number, copyright date, etc. See Figure 2. Figure 2. GUI Start-up Window At the top of the screen is a menu bar which displays user options. The menu bar has three items: Menu, Setup, and Quit. Initially Menu is disabled. After establishing a link to a data source, the Menu item will become available. 8 DS847DB1 CDB5464U 2.3.1 Setup Menu Setup allows user to establish a USB communication connection with CDB5464U board or select a previously saved data file for further analysis. If the USB item in the Setup menu is selected, the evaluation software will poll the CDB5464U, verifying the serial communication link is ready. At this point, the USB menu item is checked indicating that the PC has successfully communicated with CDB5464U evaluation board, and device and micro-code version information are read from the board and displayed on the screen. See Figure 3. Due to improvements to the software or new features being added, the version displayed may be different than the image shown here. Figure 3. Setup Menu Showing Successful USB Connection If the evaluation software is unable to establish a communication link with the CDB5464U board, a message will appear, indicating that the initial communication has failed. See Figure 4. Figure 4. USB Error Message Check to verify that the USB cable is connected properly and the power supply is on and connected properly to the CDB5464U. Reset the board (press the RESET button on the board) and try to setup the USB connection again. DS847DB1 9 CDB5464U If the Data from Disk item in the Setup menu is selected, a file selection window will appear as shown in Figure 5. User can select a pre-saved data file for further analysis using time domain, FFT, and histogram plots in Data Collection Window of the software. Figure 5. Data from Disc File Selection Window 2.3.2 Menu Pull-down Excluding the Start-Up window, the Menu pull-down provides 7 options: Setup Window, Calibration Window, Conversion Window, Pulse Rate Window, Data Collection Window, EEPROM Window, and Debug Window. Each window provides a means to evaluate the different functions and performance of the CS5464. Each option has an associated function key (, , etc.). See Figure 6. Figure 6. Menu Pull-down Options 10 DS847DB1 CDB5464U 2.3.3 Quit Menu The Quit menu allows the user to exit the evaluation software. Upon selecting Quit, a message window appears and queries if exiting the evaluation software is desired. See Figure 7. Figure 7. Quit Dialog DS847DB1 11 CDB5464U 2.4 Setup Window The evaluation software provides access to the CS5464's internal registers through the Setup window. See Figure 8. The user can enter the Setup window by pulling down the Menu menu and selecting Setup Window, or by pressing on the keyboard. In the Setup window, all of the CS5464's registers are displayed in hexadecimal notation and are decoded to provide easier readability. Refer to the CS5464 data sheet for information on register functionality and definitions. See Figure 8. Figure 8. Setup Window 12 DS847DB1 CDB5464U 2.4.1 Refresh Screen Button The Refresh Screen button will update the contents of the screen by reading all the register values from the CS5464. It is a good idea to press the Refresh Screen button when entering the Setup window, or after modifying any registers, to reflect the current status of the CS5464. 2.4.2 Reset DUT Button The Reset DUT button will hardware reset the CS5464. The CS5464 will perform a reset as discussed in the CS5464 data sheet. After the hardware reset to the CS5464 device, the screen contents will be automatically refreshed with the updated status of the CS5464. 2.4.3 CS5464 Crystal Frequency The CS5464 accepts a wide range of crystal input frequencies, and can therefore run at many different sample rates. The crystal frequency being used on the CS5464 should be entered in this box to provide accurate frequency calculation in the FFT window. This will also help the software decide which functions the evaluation system can perform reliably. 2.4.4 Configuration Register In the Configuration Register box, the contents of the Config register can be modified by typing a hexadecimal value in the HEX: field, or by changing any of the values below the HEX: field to the desired settings. Although the CDB5464U software allows the user to modify any of the bits in the Config register, changing certain bits may cause the software and board to behave erratically. For the evaluation system to function properly, the IMODE, IINV field should be set to the default Active Low. This applies only to the CDB5464U evaluation system, and not to the CS5464 chip itself. 2.4.5 Control Register The Control Register section is used to make changes to and display the contents of the Ctrl register. The Ctrl register contains various bits used to activate or terminate various features of the CS5464. Refer to the CS5464 data sheet for descriptions of the bits. The user is able to turn each bit on or off individually. The value of the Ctrl register is displayed in Hexadecimal format. Most of the Ctrl register bits are reserved or unused. Only the usable bits are displayed in the Setup Window. 2.4.6 Mask Register / Status Register The Mask Register / Status Register box displays the values for these registers in hexadecimal and decodes them to indicate each bit's function. The Mask register can be modified by typing a value in the HEX: field, or by checking the appropriate check boxes for the bits that are to be masked. The Status register cannot be directly modified. It can only be reset by pressing the Clear Status Register button. The HEX: field for this register and the lamps are indicators only. A lamp which is on means that the corresponding bit in the Status register is set (except the Invalid Command bit, which is inverted). The value present in the Mask register may be changed by the software during certain operations to provide correct functionality of the CDB5464U board. 2.4.7 Mode Control Register The Mode Control Register section is used to make changes to and display the contents of the Modes register. The Modes register contains various bits used to set different operation modes for the CS5464 functionalities. Refer to the CS5464 data sheet for descriptions of the bits. The value of the Modes register DS847DB1 13 CDB5464U is displayed in hexadecimal. Many of the Modes register bits are reserved or unused. Only the usable bits are displayed in the Setup window. 2.4.8 Cycle Count / Pulse Output Registers These fields display the values of corresponding register in both hexadecimal and decimal format. Each register can be modified by typing a value in the corresponding Decimal Value or HEX: field. 2.4.9 Voltage Sag / Current Fault / Ichanlevel / Emin (Irmsmin) / VFrms / Tsettle / LoadMIN / Epsilon / Temperature Registers These boxes display the values of the corresponding register in both hexadecimal and decimal format. Each register can be modified by typing a value in the corresponding Decimal Value or HEX: field. 2.5 Calibration Windows The Calibration window is used to display and write to the CS5464 offset and gain calibration registers. The user is also able to initiate the CS5464's calibration sequences that are used to set the calibration values. Both AC and DC calibrations can be run for offset and gain, for either the voltage channel or the current channel, or both simultaneously. The user should refer to the CS5464 data sheet for more details on calibration. The Refresh Screen button will update the contents of the screen by reading all the register values from the part. It is a good idea to press the Refresh Screen button when entering the Calibration window, or after modifying any registers to reflect the current status of the CS5464. Figure 9. Calibration Window 14 DS847DB1 CDB5464U 2.5.1 Offset / Gain Register In the offset and gain register boxes, the offset and gain registers for all channels are displayed in hexadecimal and decimal. These registers can be modified directly by typing the desired value in the hexadecimal display boxes. There are three types of offset registers: DC offset, AC offset and power offset. The AC offset registers only affect the RMS register values. The power offset registers only affect the active power register values. The DC/AC/power offset register is a two's complement number whose value ranges from -1 to +1. The gain register value ranges from 0 to 4. 2.5.2 Performing Calibrations AC/DC offset and gain calibrations can be performed on both the voltage and current channels of the CS5464. It is generally a good idea to software-reset the CS5464 before running calibrations, because the initial values in the calibration registers will affect the results of the calibration. A software reset will reset these registers back to the default values of zero offset and unity gain. AC/DC offset calibration should be performed before gain calibration to ensure accurate results. 2.5.2.1 Offset Calibrations 1. Ground the channel(s) you want to calibrate directly at the channel header(s), J17 and J22 for the voltage channel, J24 and J26 for current channel 1, and J20 and J19 for current channel 2. The channel(s) could also be grounded directly at the screw-type terminals. 2. Press the corresponding AC or DC offset calibrate button (Cal V, Cal I, or Calibrate All Channels) beside or below the offset register boxes. 3. The offset register value(s) will automatically update when the calibration is completed. 2.5.2.2 Gain Calibrations 1. Attach an AC or DC calibration signal to the screw-type terminals, and make sure the corresponding channel headers (J17, J22, J24, J26, J20, and J19) are set to the input position. 2. Press the corresponding AC or DC gain calibrate button (Cal V, Cal I, or Calibrate All Channels) beside or below the gain register boxes. 3. The gain register value(s) will automatically update when the calibration is completed. The Calibration window also contains the Power Offset Register1 / 2 display and adjustment. The user can read and write the values in the power offset registers (P1off / P2off). DS847DB1 15 CDB5464U 2.6 Conversion Window The Conversion Window allows the user to see the results of single and continuous conversions, perform data averaging, and utilize the power-saving modes of the CS5464. See Figure 10. The Conversion Window can be accessed from the Menu pull-down and selecting Conversion Window, or by pressing . Figure 10. Conversion Window 2.6.1 Single Conversion Button Pressing this button will cause a single conversion to be performed. After a single conversion is complete, the Result column will be updated with the values present in each data register. 2.6.2 Continuous Conversion Button Pressing this button will cause continuous conversions to be performed until the user presses the Stop button. After each conversion is complete, the Result column will be updated with the values present in each data register. The Mean and Standard Deviation columns will be updated every N cycles, where N is the number in the Samples to Average field. If the Samples to Average is set to a large number, it may take many collection cycles after pressing the Stop button before the data actually stops being collected. 16 DS847DB1 CDB5464U 2.6.3 Standby / Sleep Mode Buttons When these buttons are pressed, the CS5464 will enter either standby or sleep power saving modes. To return to normal mode, press the Power Up button. 2.6.4 Power Up Button This button is used to send the Power Up/Halt command to the CS5464. The part will return to normal operating mode and halt any conversions that are being done at this time. 2.6.5 Set Line Frequency If the AFC bit in the Mode register is set, the Epsilon register will be calculated automatically by the CS5464 and the Line Frequency display field will be updated automatically in continuous conversion mode. If the AFC bit in the Mode register is not set and the line frequency is other than the default value (50Hz), to ensure the accuracy of the quadrature power (Q1, Q2) and the reactive power (Q1avg, and Q2avg), the line frequency must be set manually here to make Epsilon be the ratio of line frequency to the output word rate (OWR). Refer to the CS5464 datasheet for more details. 2.6.6 Temperature Settings Window The Temperature Settings Window is used to adjust the temperature offset register (Toffset) and temperature gain register (Tgain) to convert the temperature register (T) from a Celsius scale (C) to a Fahrenheit scale (F) or vice versa and to improve temperature measurement accuracy. Refer to the CS5464 data sheet for the details of the on-chip temperature sensor. 2.6.7 Write Data to File Window This window provides a means to write the conversion result data to a .txt text file for later analysis or print out. The file path and name will be shown in Filename field. The Open File button is used to open a new or existing .txt text file for data writing. Each time the Write Data button is pressed, the result data is written into the file and the Number of Lines Written field value will be increased by 1. 2.7 Pulse Rate Window The CS5464 features a pulse-rate energy output. The CDB5464U has the capability to demonstrate the functionality of this output in the Pulse Rate Output Window. See Figure 11. The Pulse Rate Output Window can be accessed by pressing , or by pulling down the Menu menu, and selecting the Pulse Rate Window item. Figure 11. Pulse Rate Output Window DS847DB1 17 CDB5464U 2.7.1 Integration Seconds This field allows the user to select the length of time over which pulses will be collected after the Start button is pressed. Because there is a time delay (2x N / OWR) from start conversion to pulse output, the Integration Seconds field is normally set to a delay longer than the actual pulsing period. 2.7.2 Periods To Average This field allows the user to average a number of integration periods. 2.7.3 Start Button When the Start button is pressed, the CDB5464U will capture pulse rate data according to the values in the Integration Seconds and Periods to Average fields. After each integration period, the Pulse Count, Frequency, Average Freq., and Standard Deviation columns will be updated. The Average Frequency and Standard Deviation columns will only be updated after all the integrations have been collected. The software stops collecting data when the user presses the Stop button, or when the data collection is finished. Due to speed limitations of the on-board microcontroller, some higher pulse rates cannot be accurately collected. 18 DS847DB1 CDB5464U 2.8 Data Collection Window The Data Collection Window (Figure 12) allows the user to collect sample sets of data from the CS5464 and analyze them using time domain, FFT, and histogram plots. The Data collection Window can be accessed by pulling down the Menu menu, and selecting the Data Collection Window item, or by pressing . Figure 12. Data Collection Window 2.8.1 Time Domain / FFT/ Histogram Selector This menu selects the type of data processing to perform on the collected data and display in the plot area. Refer to the Analyzing Data section for more information. 2.8.2 Config Button This button will bring up the Configuration window, in which the user can modify the data collection specifications. Refer to the Configuration Window section in this document for more information. 2.8.3 Collect Button This button will collect data from the part, to be analyzed in the plot area. See the Collecting Data Sets section for more information. DS847DB1 19 CDB5464U 2.8.4 Output Button This button will bring up a window in which the user can output the data to a file for later use, print out a plot, or print out the entire screen. When saving data, only the data channel being displayed on the plot will be saved to a file. 2.8.5 Zoom Button This button allows the user to zoom in on the plot by selecting two points in the plot area. Press the Restore button to return to the normal data plot, or press the Zoom button again to zoom in even further. 2.8.6 Channel Select Button After data collection, the two buttons labeled as "No Data" will be replaced with Current and Voltage buttons, allowing the user to choose the appropriate channel for display. In the time domain mode, an additional Overlay button will be present which allows the user to display all the channels on the same plot. 2.8.7 Configuration Window The Configuration window allows the user to set up the data collection and analysis parameters. Figure 13. Configuration Window 2.8.7.1 Number of Samples This field allows the user to select the number of samples to collect, between 16 and 32768. 2.8.7.2 Average When performing FFT analyses, this field determines the number of FFTs to average. FFTs will be collected and averaged when the Collect button is pressed. 20 DS847DB1 CDB5464U 2.8.7.3 FFT Window This box allows the user to select the type of windowing algorithm for FFT processing. Windowing algorithms include the Blackman, Blackman-Harris, Hanning, 5-term Hodie, and 7-term Hodie. The 5-term Hodie and 7-term Hodie are windowing algorithms developed at Crystal Semiconductor. 2.8.7.4 Histogram Bin Width This field determines the "bin width" when plotting histograms of the collected data. Each vertical bar in the histogram plot will contain the number of output codes entered in this field. Increasing this number may allow the user to view histograms with larger input ranges. 2.8.7.5 Data to Collect These two check boxes allow the user to select the data types that will be collected and returned to the PC for processing. 2.8.7.6 Cycle Count The value in the Cycle Count field will be written to the Cycle Count register in the CS5464. The Cycle Count register determines the length of one computation cycle. The Cycle Count value should be selected appropriately according to the Data to Collect setting. For example, if the Data to Collect is instantaneous current, voltage, or power it is better to set Cycle Count to 1. 2.8.7.7 Accept Button When this button is pressed, the current settings will be saved, and the user will return to the Data Collection Window. 2.8.8 Collecting Data Sets To collect a sample data set: 1. In the Data Collection Window, press the Config button to bring up the Configuration window and view the current settings. 2. Select the appropriate settings from the available options (see the Configuration Window section) and press the Accept button. 3. The Data Collection Window should still be visible. Press the Collect button to begin collecting data. 4. Once the data has been collected, it can be analyzed, printed, or saved to disk. 2.8.9 Retrieving Saved Data From a File The CDB5464U software allows the user to save data to a file, and retrieve it later when needed. To load a previously saved file: 1. Pull down the Setup menu and select the Disk menu item. A file menu will appear. 2. Find the data file in the list and select it. Press the Select button to return. 3. Go to the Data Collection Window, and press the Collect button. 4. The data from the file should appear on the screen. The data will be ready for different types of analysis. 5. To select a different file, repeat the procedure. DS847DB1 21 CDB5464U 2.8.10 Analyzing Data The evaluation software provides three types of analysis tests: Time Domain, Frequency Domain, and Histogram. The time domain analysis processes acquired conversions to produce a plot of magnitude versus conversion sample number. The frequency domain analysis processes acquired conversions to produce a plot of magnitude versus frequency using the Fast-Fourier transform (results up to Fs/2 are calculated and plotted). Also statistical noise calculations are calculated and displayed. The histogram analysis processes acquired conversions to produce a histogram plot. Statistical noise calculations are also calculated and displayed. 2.8.11 Histogram Information The following is a description of the indicators associated with histogram analysis. Histograms can be plotted in the Data Collection Window by setting the analysis type pull-down menu to Histogram. Figure 14. Histogram Analysis 2.8.11.1 BIN Displays the x-axis value of the cursor on the histogram. 2.8.11.2 MAGNITUDE Displays the y-axis value of the cursor on the histogram. 22 DS847DB1 CDB5464U 2.8.11.3 MEAN Indicates the mean of the data sample set. The mean is calculated using the following formula: n-1 Xi i=0 Mean = ---------------n 2.8.11.4 STD_DEV Indicates the standard deviation of the collected data set. The standard deviation is calculated using the following formula: n-1 ( Xi - MEAN ) STDDEV = 2 i=0 -----------------------------------------------n 2.8.11.5 VARIANCE Indicates for the variance of the current data set. The variance is calculated using the following formula: n-1 ( Xi - MEAN ) 2 i=0 VARIANCE = -----------------------------------------------n 2.8.11.6 MAXIMUM Indicates the maximum value of the collected data set. 2.8.11.7 MINIMUM Indicates the minimum value of the collected data set. DS847DB1 23 CDB5464U 2.8.12 Frequency Domain Information The following describe the indicators associated with FFT (Fast Fourier Transform) analysis. FFT data can be plotted in the Data Collection Window by setting the analysis type selector to FFT (Figure 15). Figure 15. FFT Analysis 2.8.12.1 FREQUENCY Displays the x-axis value of the cursor on the FFT display. 2.8.12.2 MAGNITUDE Displays the y-axis value of the cursor on the FFT display. 2.8.12.3 S/PN Indicates the signal-to-peak noise ratio (decibels). 2.8.12.4 SINAD Indicates for the signal-plus-noise-plus-distortion to noise-plus-distortion ratio (decibels). 2.8.12.5 S/D Indicates for the signal-to-distortion ratio, 4 harmonics are used in the calculations (decibels). 24 DS847DB1 CDB5464U 2.8.12.6 SNR Indicates for the signal-to-noise ratio, first 4 harmonics are not included (decibels). 2.8.12.7 FS-Pdb Indicates for the full-scale to signal Ratio (decibels). 2.8.12.8 Time Domain Information The following controls and indicators are associated with time domain analysis. Time domain data can be plotted in the Data Collection Window by setting the analysis type selector to Time Domain (Figure 16). Figure 16. Time Domain Analysis 2.8.12.9 COUNT Displays current x-position of the cursor on the time domain display. 2.8.12.10 MAGNITUDE Displays current y-position of the cursor on the time domain display. 2.8.12.11 MAXIMUM Indicates for the maximum value of the collected data set. DS847DB1 25 CDB5464U 2.8.12.12 MINIMUM Indicates for the minimum value of the collected data set. 2.9 EEPROM Window CDB5464U has an "Auto-Boot" demo feature that uses the on-board serial EEPROM, so that the CDB5464U can operate independently without being connected to a PC. CDB5464U GUI software also provides an EEPROM Window for reading & writing the serial EEPROM (Figure 17). Figure 17. EEPROM Window 2.9.1 Bytes to Read/Write The Bytes to Read/Write field allows the user to define the number of bytes to read or write. 2.9.2 Read EEPROM First input the number of bytes to read in the Bytes to Read/Write field. After pressing the Read button, that number of bytes starting from the address 0x00 will be read from EEPROM and displayed in the EEPROM table in hexadecimal format. 2.9.3 Write EEPROM Input the number of bytes to write in the Bytes to Read/Write field and input the hexadecimal byte values in the EEPROM table starting from address 0x00. After pressing the Write button, the bytes in the EEPROM table will be written to the EEPROM. 26 DS847DB1 CDB5464U 2.10 Debug Panel The Debug panel provides the user a way to access CS5464 registers and send commands to CS5464 directly (Figure 18). Refer to 7.6 in the CS5464 data sheet for more details. Figure 18. Debug Panel DS847DB1 27 28 Cirrus P/N 001-06872-01 001-02779-01 001-02189-01 012-00010-01 001-04344-01 001-03266-01 001-06685-01 012-00012-01 001-07078-01 070-00055-01 165-00004-01 115-00003-01 110-00041-01 110-00010-01 110-00008-01 115-00016-01 115-00014-01 115-00013-01 110-00056-01 110-00055-01 115-00009-01 115-00031-01 080-00004-01 304-00001-01 020-03378-01 020-01848-01 020-01588-01 020-01816-01 020-01667-01 021-00759-01 020-03355-01 Item 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 31 CIRRUS LOGIC CDB5464U A A A A A A A A A A A A A A A A A Rev A A A A A A A A A A A A A A RES 470 OHM 1/3W 1% 1210 FILM RES 2k OHM 1/8W 1% 0805 FILM RES 10 OHM 1/8W 1% 0805 FILM RES 1k OHM 1/8W 1% 0805 FILM RES 49.9 OHM 1/8W 1% 0805 FILM RES 1k OHM 1/3W 5% 1210 FILM RES 301 OHM 1/3W 1% 1210 FILM SPCR, STANDOFF 4-40 THR, 0.875"L CON TERM BLOCK 4 POS 5mm C/C BLUE HDR 3x1 ML .1"CTR 062BD ST GLD TH HDR 11x2 MLE .1"CTR S GLD WIRE, JUMPER 2P, 0.1"CTR, BRASS HDR 3x2 MLE .1"CTR S GLD HDR 2x1 ML .1"CTR 062BD ST GLD TH HDR 2x2 MLE .1"CTR S GLD CON TERM BLOCK 2 POS 5mm C/C BLUE CON BPOST 2" SILV NYLON INS BLK Description CAP 0.1uF 10% 50V X7R 1206 CAP 22pF 5% 50V C0G 0805 CAP 0.1uF 10% 16V X7R 0603 CAP 47uF 20% 16V ELEC CASE C CAP 0.1uF 5% 50V X7R 0805 CAP 220pF 10% 50V X7R 0805 CAP 0.018uF 10% 50V X7R 1206 CAP 10uF 20% 16V ELEC CASE A CAP 1uF 10% 25V X7R 1206 DIODE ARRAY 5V (TVS) ESD SOT143 LED CLR SUP RED 1.7V 1mA 1.6MCD SMD HDR 5x2 MLE .1"CTR S GLD CON RA USB BLK CON BPOST 2" SILV NYLON INS RED 8 12 1 5 1 4 1 4 4 1 1 6 10 5 1 1 1 Qty 6 1 5 4 7 8 4 3 1 1 6 1 1 3 R1 R9 R10 R27 R30 R31 R32 R33 R2 R3 R6 R7 R8 R14 R15 R16 R17 R29 R36 R38 R4 R5 R11 R12 R13 R18 R21 R23 R24 R26 R28 R25 MH1 MH2 MH3 MH4 J21 J23 J27 J28 J25 J40 JP1 JP2 JP3 JP4 JP5 JP6 J7 J8 J9 J11 J17 J19 J20 J22 J24 J26 J10 J13 J15 J16 J18 J12 J14 J4 Reference Designator C1 C18 C19 C21 C29 C30 C2 C3 C4 C26 C32 C33 C5 C8 C28 C31 C6 C7 C10 C11 C12 C15 C25 C9 C17 C20 C24 C27 C34 C35 C36 C13 C23 C37 C38 C14 C22 C39 C16 D1 D2 D3 D4 D5 D6 D7 J1 J2 J3 J5 J6 BILL OF MATERIAL (Page 1 of 2) DALE DALE DALE DALE DALE DALE DALE SAMTEC SAMTEC SAMTEC ON-SHORE TECHNOLOGY OST SAMTEC SAMTEC COMPONENTS CORPORATION KEYSTONE JOHNSON COMPONENTS MFG KEMET KEMET KEMET PANASONIC KEMET KEMET KEMET PANASONIC KEMET LITTLE FUSE CHICAGO MINIATURE SAMTEC AMP JOHNSON COMPONENTS CRCW12104700F CRCW08052001F CRCW080510R0F CRCW08051001F CRCW080549R9F CRCW1210102J CRCW12103010F 1809 ED 100/4DS TSW-103-07-G-S TSW-111-07-G-D TP-101-10 TSW-103-07-G-D TSW-102-07-G-S TSW-102-07-G-D ED 100/2DS 111-0103-001 MFG P/N C1206C104K5RAC C0805C220J5GAC C0603C104K4RAC ECEV1CA470WR C0805C104J5RAC C0805C221K5RAC C1206C183K5RAC ECEV1CS100SR C1206C105K3RAC SP0503BAHT CMD28-21SRC/TR8/T1 TSW-105-07-G-D 787780-1 111-0102-001 CDB5464U APPENDIX A. BILL OF MATERIALS DS847DB1 DS847DB1 Cirrus P/N 021-00606-01 020-02748-01 020-01473-01 020-02273-01 120-00002-01 110-00045-01 062-00124-01 061-00250-01 062-00079-01 060-00061-01 061-00190-01 065-00176-Z2 061-00002-01 061-00219-01 062-00122-01 080-00003-01 300-00001-01 135-00014-01 100-00049-01 070-00006-01 422-00013-01 422-00037-01 240-00213-Z1 600-00213-01 603-00213-01 602-00213-01 110-00013-01 115-00014-01 020-01473-01 110-00045-01 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 CIRRUS LOGIC CDB5464U A A A B A1 A A2 A A D A A A A A A A A C1 A A A A A A A A Rev A A A SKT PINCH CONTACT FOR SSOP28 XTL OSC 4.0960MHZ HC49S 50ppm 50pF DIODE TR 6.8V 600W AXL LBL SUBASSY PRODUCT ID AND REV LBL SUBASSY PRODUCT NUMBER PCB CDB5464U_67U SCHEM CDB5464U ASSY DWG PWA CDB5464U_67U TST PROC CDB5464U CON SHUNT 2P .1"CTR BLK HDR 2x1 ML .1"CTR 062BD ST GLD TH RES 0 OHM 1/18W 1% 0805 FILM CON TEST PT .1"CTR TIN PLATE BLK WIRE BPOST 1.5X.25" 24/19 GA BLU SCREW 4-40X5/16" PH STEEL IC PGM EEPROM 512x8 4K SPI SOIC8 IC LOG UHS TINY ANALOG SWT 6P SC70 IC LOG INV 5P UHS TINY SOT23 IC CRUS 4CH PWR MEASURE NPb SSOP28 IC LNR PRECISION V REF 2.5V SO8 IC LOG, UHS TINY, DUAL BUF, SC70-6 IC PGM USB 16kB FLASH MCU LQFP32 IC DIG LOW V BUF/LDRV 5V OPEN DRAIN IC PGM 128 BIT SER EEPROM SOT23-5 CON TEST PT .1"CTR TIN PLATE BLK RES 0 OHM 1/4W 1% 1206 FILM SWITCH 0/1 TACT W/ESD Description RES 12k OHM 1/4W 5% 1206 FILM RES 15k OHM 1/8W 1% 1206 FILM RES 0 OHM 1/18W 1% 0805 FILM 0 1 3 1 1 1 REF REF REF 16 0 0 0 4 4 1 2 1 1 1 1 1 1 1 20 1 1 Qty 1 1 12 DALE C&K MFG DALE DALE DALE J29 J30 R34 TP7 TP8 XU6 Y1 Z1 Z2 Z3 XJ3 XJ4 XJ5 XJ6 XMH1 XMH2 XMH3 XMH4 U10 U9 U11 U8 U6 U4 U5 U3 U2 AT25040AN-10SI-2.7 NC7SB3157P6X NC7SZ04M5X CS5464-ISZ/C1 LT1019CS8-2.5 NC7WZ07P6X C8051F320 74LCX760WM 24LC00-I/OT 5001 CRCW1206000Z PTS645TL50 MFG P/N CRCW1206123J CRCW12061502F CRCW0805000Z ENPLAS CAL CRYSTAL LITTLE FUSE CIRRUS LOGIC CIRRUS LOGIC CIRRUS LOGIC CIRRUS LOGIC CIRRUS LOGIC CIRRUS LOGIC MOLEX SAMTEC DALE KEYSTONE OTS-2834-0.65-01 CCL-6S-4.0960C14F P6KE6.8 422-00013-01 422-00037-01 240-00213-Z1 600-00213-01 603-00213-01 602-00213-01 15-29-1025 TSW-102-07-G-S CRCW0805000Z 5001 SQUIRES L-1.5X.25TX.25T_TYPE_E_ BUILDING FASTENERS PMS 440 0031 PH FAIRCHILD SEMICONDUCTOR FAIRCHILD SEMICONDUCTOR ATMEL LINEAR TECH FAIRCHILD SEMICONDUCTOR CIRRUS LOGIC FAIRCHILD SEMICONDUCTOR CYGNAL TP1 TP2 TP3 TP4 TP5 TP6 TP9 TP10 TP11 TP12 KEYSTONE TP13 TP20 TP21 TP22 TP23 TP24 TP25 TP26 TP27 TP30 U1 MICROCHIP Reference Designator R35 R37 R51 R52 R53 R54 R55 R56 R57 R58 R59 R60 R61 R62 R64 S1 BILL OF MATERIAL (Page 2 of 2) CDB5464U 29 CDB5464U Figure 19. Schematic - Analog Inputs APPENDIX B. SCHEMATICS 30 DS847DB1 Figure 20. Schematic - CS5464 & Socket CDB5464U DS847DB1 31 Figure 21. Schematic - Microcontroller & USB Interface CDB5464U 32 DS847DB1 Figure 22. Schematic - Power Supplies CDB5464U DS847DB1 33 CDB5464U Figure 23. Top Silkscreen APPENDIX C. LAYER PLOTS 34 DS847DB1 Figure 24. Top Routing CDB5464U DS847DB1 35 Figure 25. Bottom Routing CDB5464U 36 DS847DB1 Figure 26. Bottom Silkscreen CDB5464U DS847DB1 37 CDB5464U REVISION HISTORY Revision Date DB1 OCT 2007 Changes Initial Release. Contacting Cirrus Logic Support For all product questions and inquiries contact a Cirrus Logic Sales Representative. To find the one nearest to you go to www.cirrus.com IMPORTANT NOTICE 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, indemnification, 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. 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, AUTOMOTIVE SAFETY OR SECURITY DEVICES, LIFE SUPPORT PRODUCTS OR OTHER CRITICAL APPLICATIONS. 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. LabWindows and CVI are registered trademarks of National Instruments, Inc. Windows, Windows 2000, and Windows XP are trademarks or registered trademarks of Microsoft Corporation. PADS and PowerLogic are trademarks of Mentor Graphics Corporation. 38 DS847DB1 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Cirrus Logic: CDB5464U-Z