CDB5484U CDB5484U Engineering Board and GUI Software Features • • • • • • • • • • • • General Description Standalone Power Meter Application Voltage and Current Interfaces Low- and High-voltage Sensor Connections Adaptable Sensor Filters Onboard USB Communication with PC UART/SPI Isolated Communication Onboard C8051F342 Microcontroller Single Supply Operation from USB or an External +5V DC Supply Onboard DC-DC Converter and Regulator LCD Power Monitor Display LabWindows®/CVI® GUI Software – Full Register
CDB5484U IMPORTANT SAFETY INSTRUCTIONS Read and follow all safety instructions prior to using this demonstration board. This Engineering Evaluation Unit or Demonstration Board must only be used for assessing IC performance in a laboratory setting. This product is not intended for any other use or incorporation into products for sale. This product must only be used by qualified technicians or professionals who are trained in the safety procedures associated with the use of demonstration boards.
CDB5484U TABLE OF CONTENTS 1. HARDWARE .............................................................................................................................................. 5 1.1 Introduction ........................................................................................................................................ 5 1.2 Evaluation Board Overview ................................................................................................................ 5 1.3 Analog Section ........
CDB5484U LIST OF FIGURES Figure 1. CDB5484U Assembly Drawing and Default Configuration................................................................ 5 Figure 2. Voltage Channel — Low-voltage Input .............................................................................................. 6 Figure 3. Voltage Channel — High-voltage Input ............................................................................................. 7 Figure 4. Current Channel — Low-voltage Input ...........................
CDB5484U 1. HARDWARE 1.1 Introduction The CDB5484U evaluation board provides a convenient means of evaluating the CS5484 energy measurement IC. The CDB5484U evaluation board operates from a single USB or 5V power supply. An optional 3.3V power supply input is available for powering the CS5484 directly. The evaluation board interfaces the CS5484 to a PC via a USB cable. To accomplish this, the board comes equipped with a C8051F342 microcontroller and a USB interface.
CDB5484U 1.3 Analog Section The analog section of the CDB5484U is highly configurable. Onboard signal conditioning options for the voltage and current channels enable most applications to interface directly to the sensors. The following two sections define the voltage and current channel configurations. 1.3.
CDB5484U LINE R15/R19 422K R14/R18 422K J4/J5 R12/R17 422K CDB5484U R8/R16 422K NEUTRAL The CDB5484U evaluation board provides screw-type terminals (J4 and J5) to connect high-voltage line inputs. By installing jumpers on J6 to position LINE1, J10 to position LINE2, J11 to position GND, and J9 to position GND, the input voltage signal is supplied from the high-voltage inputs. Extreme care should be used when connecting high-voltage signals to the CDB5484U evaluation board (see Figure 3).
CDB5484U 1.3.2 Current Sensor Connection Current input options include an external signal (via screw terminals or XLR connectors) or GND. Table 2 illustrates the options available. Table 2.
CDB5484U 1.4 Digital Section The digital section contains the microcontroller, USB interface, LCD, optical isolation, JTAG header, reset circuitry, and external interface headers (J17 and J19). The microcontroller interfaces the UART or SPI of the CS5484 with the USB connection to the PC, enabling the GUI software to access all of the CS5484 registers and functions. 1.4.1 Serial Port Selection Communication to the CS5484 is provided through two serial port options: UART or SPI.
CDB5484U 1.4.2 Interface to Microcontroller Interface headers J17 and J19 are provided to allow the CDB5484U to be connected to an external energy registration device or an external microcontroller. Interface header J17 provides direct access to the CS5484 pins while interface header J19 provides an isolated connection. It is imperative to use the isolated connection (J19) when high-voltage signals are used. Failure to use isolation can result in damage to components or electrical shock.
CDB5484U 1.5 Power Supply Section Table 4 illustrates the power supply connections on the evaluation board. The positive analog (VDDA) for the CS5484 can be supplied using the +3.3V binding post (J36 and J37) or the onboard +3.3V regulator. Jumper J38 allows the VDDA supply to be sourced from the +3.3V binding post (J37) or the regulated +3.3V supply. The DC-DC converter (U8) powers the onboard +3.3V regulator.
CDB5484U 1.6 Typical Sensor Connections The CDB5484U evaluation board provides connections directly to different types of sensors. Flexible onboard filter networks provide a convenient configuration for three common transducers: current shunt, current transformer (CT), or Rogowski coil. 1.6.1 Shunt Power Meter Example An inexpensive current shunt configuration is easily achievable with the CDB5484U evaluation board.
CDB5484U 1.6.2 Current Transformer Power Meter Example A slightly more expensive option is to use a current transformer (CT) to connect the AC current to the CDB5484U evaluation board. Figure 7 depicts the voltage and current connections for a CT sensor and its associated filter configurations. NEVER “open circuit” a CT. Make sure that all signals are well connected before the power source is turned on. Extreme care should be taken when connecting high-voltage signals to the CDB5484U evaluation board.
CDB5484U 1.6.3 Rogowski Coil Power Meter Example CDB5484U PHASE J46/J52 J1/J12 GND IIN1+/IIN2+ NO POP R13/R24 J54/J55 NO POP R11/R22 IIN1-/IIN2GND R2/R22 100 J7/J13 J53/J56 R50/R53 1K 0.033UF 0.033UF C6/C12 C35/C2 0.033UF 0.
CDB5484U 1.7 Standalone Meter Application The CDB5484U evaluation board provides a standalone power meter using the CS5484, MCU, and LCD. The user can enable the power meter by connecting the sensors to the analog inputs, providing power to the board, and resetting the MCU by pressing the RESET switch. Refer to “Typical Sensor Connections” on page 12 for details on the sensor connections and “Power Supply Section” on page 11 for details on supply options.
CDB5484U 2. SOFTWARE The evaluation board comes with software and a USB cable to link the evaluation board to the PC. The evaluation software was developed with LabWindows®/CVI®, a software development package from National Instruments. The evaluation software is designed to run with Windows XP™ and Windows 7™. The following procedure is based on Windows XP. 2.1 Installation Procedure Follow the steps below to install the GUI: 1. Access the following web site: http://www.cirrus.com/en/support. 2.
CDB5484U 2.3 Start-up Window When the software is launched, the Start-Up Window is displayed. This window contains information about the software, including its title, revision number, and copyright date. The Start-Up Window is displayed in Figure 10. Figure 10. GUI Start-up Window A menu bar at the top displays four items: System, Cirrus Test, Connect, and Quit. Initially System and Cirrus Test are disabled.
CDB5484U ognize the MCU (typically 3 seconds), and then select "OK." Figure 11. Connect to the CDB board Window At this point, the USB menu item is checked, indicating that the PC has successfully communicated with the CDB5484U evaluation board. The micro-code version information are read from the board and displayed on the screen (see Figure 12). Due to improvements to the software or new features being added, the version displayed may be different than the image shown here. Figure 12.
CDB5484U 2.4.2 CS5484 Serial Port Config Item In the Connect menu, the CS5484 Serial Port Config item allows the user to select different types of serial communication — UART or SPI (see Figure 14). Figure 14. Connect Menu Showing Serial Connection Options Before the software is configured, it is necessary to set jumper J16 on the CDB5464U board to either the UART or SPI communication. To select UART communication, install jumper J16 in the SSEL to UART position.
CDB5484U After the serial port has been selected, press the OK button. The MCU will try to read the chip ID from the CS5484. The chip revision number will be displayed in the Device field in the Start-Up Window. If the Device field is populated with "Unknown CHIP ID", the user should check the power supply and clock to the CS5484, MODE jumper J15, SSEL jumper J16, and the isolation jumpers J18, J51, and J20, click the RESET button, and go back to the USB connection process. Figure 17.
CDB5484U 2.5 System Menu The System pull-down provides three options: Setup CS5484, Calibration, and Conversion. Each window provides a means to evaluate the different functions and performance of the CS5484 (see Figure 18). Figure 18.
CDB5484U 2.5.1 Setup Window The evaluation software provides access to the common CS5484's internal registers through the Setup Window (see Figure 19). The user can access the Setup Window by selecting the Setup CS5484 item from the System menu. Figure 19. Setup Window The Setup Window displays all of the common CS5484 registers in hexadecimal notation and are decoded to provide easier readability. Refer to the CS5484 data sheet for information on register functionality and definitions.
CDB5484U 2.5.1.1 Refresh Screen Button Clicking the Refresh Screen button will update the contents of the screen by reading all the register values from the CS5484. It is recommended to click the Refresh Screen button when entering the Setup Window, or after modifying any registers, to reflect the current status of the CS5484. 2.5.1.2 Reset DUT Button Clicking the Reset DUT button will software-reset the CS5484. The CS5484 will perform a software-reset, as discussed in the CS5484 data sheet.
CDB5484U 2.5.1.8 Phase Compensation The Phase Comp Register section is used to make changes to, and display the contents of, the CS5484's PC (Phase Compensation Control) register. The PC register allows coarse- and fine-phase adjustment on each channel of the CS5484 data path. Refer to the CS5484 data sheet for descriptions of the PC register bits. 2.5.1.9 Integrator Gain, System Gain The Integrator Gain and System Gain sections display the signal path gain in both hexadecimal and decimal format.
CDB5484U 2.5.1.16 V1/V2 Sag, V1/ V2 Swell, and I1/I2 Overcurrent Registers The registers for voltage sag, voltage swell, and overcurrent are displayed in the V1 Sag, V2 Sag, V1 Swell, V2 Swell, I1 Overcurrent, and I2 Overcurrent Register sections. These sections display the level and duration values of the corresponding registers in both hexadecimal and decimal format. Each register can be modified by typing a value in the corresponding decimal or HEX field.
CDB5484U The Refresh Screen button will update the contents of the screen by reading all the register values from the part. It is recommended to click the Refresh Screen button when entering the Calibration Window, or after modifying any registers to reflect the current status of the CS5484. 2.6.1 Save Cal and Load Cal Buttons Clicking the Save Cal button will save the calibration widow's configuration to a .txt file.
CDB5484U 2.7 Conversion Window The Conversion Window allows the user to see the results of single and continuous conversions and the CS5484 status, perform data averaging, and use the power-saving modes of the CS5484. The Conversion Window can be accessed from the System pull-down menu, Conversion menu item. The Conversion Window provides the active, apparent, and reactive energy calculation register results for each channel.
CDB5484U this window. The Continuous Conversion button should not be used with BAUD rates less than 1200Hz in UART mode. Using lower BAUD rates (including the default 600 baud) will result in overflowing the communication buffer and cause other window errors, communication failure, or both. Data logging can be enabled using the DATALOG On/Off check box and Filename field. 2.7.3 Standby Mode Button When this button is pressed, the CS5484 will enter a standby power-saving mode.
CDB5484U 2.8 Cirrus Test Window The Cirrus Test pull-down menu provides three options: Test and Debug, ADC Data Collection, and ADC Data Collection to File. Each window provides a means to evaluate the different functions and performance of the CS5484 (see Figure 22). Figure 22. Cirrus Test Pull-down Options 2.8.1 Data Collection Window The Data Collection window allows the user to collect sample sets of data from the CS5484 and analyze them using time domain, FFT, and histogram plots.
CDB5484U The Data Collection Window can only be accessed when operating in SPI mode. When UART serial communication is enabled, an error window will be displayed (see Figure 24). To enable SPI, refer to “Serial Port Selection” on page 9. Figure 24. Data Collection UART Error Message 2.8.1.1 Time Domain/FFT/Histogram Selector The Time Domain/FFT/Histogram selector selects the type of data processing to perform on the collected data and displays the results in the plot area.
CDB5484U 2.8.1.8 Configuration Window The Configuration window allows the user to set up the data collection and analysis parameters (see Figure 26). Figure 26. Data Collection Configuration Window 2.8.1.8.1 Number of Samples The Number of Samples field allows the user to select the number of samples to collect, between 16 and 524,288. 2.8.1.8.2 Average When performing FFT analyses, the Average field determines the number of FFTs to average.
CDB5484U 2.8.1.9 Collecting Data Sets To collect a sample data set: 1. In the Data Collection window, click the Config button to bring up the Configuration window and view the current settings. 2. Select the appropriate settings from the available options (see “Configuration Window” on page 31) and press the Accept button. 3. The Data Collection window should still be visible. Press the Collect button to begin collecting data. 4.
CDB5484U 2.8.1.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. See Figure 27. The histogram plot information includes: • BIN: Displays the x-axis value of the cursor on the histogram. • MAGNITUDE: Displays the y-axis value of the cursor on the histogram. • MEAN: Indicates the mean of the data sample set.
CDB5484U Figure 27. Histogram Analysis 2.8.1.12 Frequency Domain Information The following describes 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. See Figure 28. The FFT information includes: • • • • • • • FREQUENCY: Displays the x-axis value of the cursor on the FFT display. MAGNITUDE: Displays the y-axis value of the cursor on the FFT display.
CDB5484U 2.8.1.13 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 (see Figure 29). The time domain plot includes: • • • • COUNT: Displays current x-position of the cursor on the time domain display. MAGNITUDE: Displays current y-position of the cursor on the time domain display.
CDB5484U 2.8.2 Data Collection to File Window The Data Collection to File window allows the user to collect instantaneous voltage and current register data over an extended period of time to a data file (see Figure 30). The following steps are necessary for data collection to a file: 1. Provide the Time to Collect in seconds. 2. If a delay before data collection is needed, enter the time in seconds for the Delay. 3. Select the voltage and current channel 1 (V1,I1) or voltage and current channel 2 (V2,I2).
CDB5484U 2.8.3 Setup and Test Window The Setup and Test window allows the user a way to access CS5484 registers and send commands to the CS5484 directly (see Figure 31). Figure 31. Setup and Test Window There are three types of transactions: Write, Read, and Send. The CS5484 memory is organized by pages. In order to properly write a register it is necessary to set the Page, Address, and Value to Write field and then press the Write button.
APPENDIX A. BILL OF MATERIALS CIRRUS LOGIC CDB5484U_REV_C.PL BILL OF MATERIAL Item 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Cirrus P/N 001-04187-Z1 001-10064-Z1 001-04345-Z1 001-01994-Z1 001-02194-Z1 001-10226-Z1 001-02189-Z1 012-00010-Z1 001-10127-Z1 001-04523-Z1 001-10233-Z1 012-00013-Z1 001-02194-Z1 070-00055-Z1 165-00004-Z2 110-00055-Z1 Rev A A A A A A A A A A A A A A A A Description CAP 0.027uF ±5% 50V X7R NPb 0805 CAP 15pF ±5% 50V C0G NPb 0603 CAP 0.1uF ±10% 50V X7R NPb 0805 CAP 0.
DS919DB5 CIRRUS LOGIC CDB5484U_REV_C.PL BILL OF MATERIAL Item 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Cirrus P/N 020-01816-Z1 021-00347-Z1 021-01445-Z1 021-00407-Z1 021-00238-Z1 021-00259-Z1 021-00266-Z1 020-00673-Z1 021-00242-Z1 020-01473-Z1 020-00914-Z1 020-00673-Z1 021-00718-Z1 120-00002-Z1 110-00045-Z1 065-00332-Z4 060-00568-Z1 Rev A A A A A A A A A A A A A A A B2 A Description RES 1k OHM 1/8W ±1% NPb 0805 FILM RES 2.2 OHM 1/8W ±5% NPb 0805 FILM RES 2.
APPENDIX B.
DS919DB5 ECO# REV DESCRIPTION INC BY/DATE CHK BY/DATE +3.3V_1 VDDA R33 10K X7R C38 1UF C16 X7R 0.10uF J21 VDDA J57 27 U1 CS5484-INZ OPTO 2 DIGITAL VDDA VDDA VDDA GND J42 2 DO4 DO4 J41 2 DO3 DO3 2 DO2 J39 CRYSTAL J40 J15 26 29 DO2 GNDD CPUCLK THERM MODE 24 VDDA 680 GND1 GND VDDA C20 1uF 2 DO1 XIN_EXT J49 DO1/TEST2 9 10 11 12 13 14 15 16 RESET CS SCLK J19 SDI CPUCLK 1 RESET 3 CS 5 SCLK 7 RX/SDI 9 TX/SDO 11 DO4 13 DO3 15 DO2 17 DO1 19 +3.
REV DESCRIPTION +5V_EXT +3.3V_1 GND S1 1 5 GND1 3 RESET R45 C27 X7R 0.1uF 1K JTAG/C2 GND1 C28 X7R 1UF 5 GND 1K R46 6 0 R48 680 C8051F342-GQ USB_+5V 0 0 R36 0 R34 R35 R37 SCLK SDI R38 R39 R40 R41 R42 R43 SDO DO4 DO3 DO2 DO1 RESET R47 5.1K S2 3 SWITCH GND1 CS +3.3V_1 C26 22pF USB GND1 GND 26 25 24 23 22 21 20 19 GND1 1 +5V 2 D3 D+ 4 GND J25 HDR5X2 1 2 3 4 5 6 7 8 9 10 3 2 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 7 2 1 32 31 30 29 28 27 1 +3.
DS919DB5 APPENDIX C. LAYER PLOTS 43 CDB5484U Figure 37.
CDB5484U DS919DB5 Figure 38.
DS919DB5 45 CDB5484U Figure 39.
CDB5484U DS919DB5 Figure 40.
CDB5484U REVISION HISTORY Revision DB1 DB2 DB3 DB4 DB5 DS919DB5 Date APR 2011 DEC 2011 JAN 2012 MAR 2012 APR 2012 Changes Initial Release. Updated screen shots and circuit diagrams to align with B0 silicon. Corrected typographical errors. Updated content. Updated screen shots and circuit diagrams to align with B2 silicon.