Cirrus Logic CDB5463U User Manual

CDB5463U
CDB5463U Engineering Board and GUI Software
Features
Voltage and Current Interface
USB Communication with PC
On-board Voltage Reference
LabWindows
– Register Setup & Chip Control
– FFT Analysis
– Time Domain Analysis
– Noise Histogram Analysis
"Auto-boot" Demo with Serial EEPROM
®
/CVI® GUI Software
General Description
The CDB5463U is an inexpensive tool designed to evaluate the functionality and performance of the CS5463 analog-to-dig­ital converter (ADC). The evaluation board includes an LT1019 voltage reference, a C8051F320 microcontroller with a USB in­terface, 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 theCS5463's registers and functions.
The CDB5463U includes software for data capture, time do­main analysis, histogram analysis, and frequency domain analysis.
Schematics in PADS™ PowerLogic™ format are available for download at www.cirrus.com/IndustrialSoftware
ORDERING INFORMATION
CDB5463U Evaluation Board
.
REF
VIN+
VIN-
IIN+
IIN-
www.cirrus.com
+2.5V
reference
+5V GND
IN OUT
VREF
CS5463
4.096MHz Crystal
Copyright © Cirrus Logic, Inc. 2007
VD+_EXT
EERPOM
CS
SDI
SDO
SCLK
INT
RESET
E1
E2
E3
MODE
(All Rights Reserved)
Vu+_EXT
SERIAL
C8051F320
Reset
Circuirty
RESET
BUTTON
USB
OCT ‘07
DS805DB2
CDB5463U

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 ........................................................................................................ 5
1.6 Auto-boot Mode ................................................................................................................. 6
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 ..........................................................................................................18
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. CDB5463U 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 ................................................................................................11
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 .......................................................................................... 18
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 - CS5463 & 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 DS805DB2
CDB5463U

1. HARDWARE

1.1 Introduction

The CDB5463U evaluation board provides a convenient means of evaluating the CS5463 power mea­surement IC. The CDB5463U evaluation board operates from a single +5V power supply. The evaluation board interfaces the CS5463 to a PC via a USB cable. To accomplish this, the board comes equipped with a C8051F320 microcontroller and a USB interface. Additionally, the CDB5463U GUI software pro­vides easy access to the internal registers of the CS5463. 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 CS5463 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.
REF+
GND
GND
VIN+
VIN-
GND
GND
IIN+
IIN-
GND
J14
J23
J27
U4
JP3
GND
LT1019
JP6
GND
TP2
REF+
GND
VREF
VIN+ VIN-
VREF
GND
GND
VREF
IIN+ IIN-
VREF
GND
GND
VD+
J12
J17
VIN+
VIN­J22
J24 IIN+
J26
IIN-
CDB5460A_61A_63
TP9
TP11
TP12
TP13
J5J4J3
JP1
GND
CDB5463U
CPUCLK
TP10
XU6
VD+
VD+_EXT
+5V
+3.3V
J8
XOUT XIN
TP7 TP8
4.096MHz
U6
Vu+_EXT
Y1
5463
J25
VREF
VREFIN
VA+
GND VD+GND
VREFOUT
Vu+_EXTVD+_EXTGND+5V
8051_REGIN
+5V VD+
J9
TP30
PFMON
TP23
TP22
TP21
TP25
TP20
JTAG
TP24
S1
RESET
J6
JP2
GND
TP26
U3
U11
USB
J1
J2
U1
JP4
D1
EVENT
TP27
ERROR
8051
LED_EN
1
J10
LED_EN
1
J13
LED_EN
1
J15
LED_EN
MODE
1
J16
1
J18
AUTO-BOOT
ENABLE
U9
U10
JP5
GND
U8
GND
TP1
E1
E2
E3
U5
RESET
MODE
EECS
SCLK MISO MOSI
U2
INT
CS
E1 E2 E3
J40
1
21 22
2
Figure 1. CDB5463U Assembly Drawing
DS805DB2 3
CDB5463U

1.3 Analog Section

The CDB5463U evaluation board provides screw-type terminals (J23, J27) to connect input signals to the voltage and current channels. The screw terminals are labels as VIN+, VIN1-, IIN+, and IIN-. A simple 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 CS5463. The three volt­age reference options include: VREFOUT from CS5463, the on-board +2.5V reference, and external REF+ (screw terminal J14). 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.
Table 1 and Table 2 illustrate the options available for VREFIN. With a jumper
Reference Description J25
VREFOUT
VREF
Selects On-chip
Reference (25 ppm/
°C)
Selects External or
LT1019 Reference(J12)
VREFIN
VREFOUT (Default)
VREFIN
VREFOUT
VREF
O O
O O
VREF
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 J12
LT1019
REF+
Selects On-board
LT1019 Reference
(5 ppm/
°C)
Selects External
Reference Source
(J14)
LT1019
REF+
LT1019
REF+
O VREF
O O VREF
O VREF
O O VREF
(Default)
Table 2. External Voltage Reference Selection for VREF
The three input signal options for the voltage (VIN±) and current (IIN±) channel input include: an external signal (screw terminals J23 and J27), GND, or VREF. Table3 illustrates the options available. By installing jumpers on J17 to position VIN+, J22 to position VIN-, J24 to position IIN+, and J26 to position IIN-, the input voltage signal is supplied from the screw terminals J23 and J27. With a jumper on J17, J22, J24 and
4 DS805DB2
CDB5463U
J26 in the GND position, the inputs are connected to analog ground (AGND). With a jumper on J17, J22, J24 and J26 in position VREF, the inputs are connected to the reference voltage selected on J12.
INPUT Description J17 J22 J24 J26
VIN± or IIN±
VIN± or IIN±
GND
VREFIN
Selects External
Signal
Selects External
Signal
Selects Grounding
the Input
Selects Reference
Source
GND
VREF
VIN+
GND
VREF
VIN+
GND
VREF
VIN+
GND
VREF
VIN+
O VIN+ O O VIN+ O O VIN+
(Default)
O VIN+ O O VIN+ O O VIN+
O VIN+ O O VIN+ O O VIN+
O VIN+ O O VIN+ O O VIN+
VIN-
VREF
GND
VIN-
VREF
GND
VIN-
VREF
GND
VIN-
VREF
GND
O VIN- O O VIN- O O VIN-
(Default)
O VIN-
O O VIN- O O VIN-
O VIN- O O VIN- O O VIN-
O VIN-
O O VIN- O O VIN-
GND
VREF
IIN+
GND
VREF
IIN+
GND
VREF
IIN+
GND
VREF
IIN+
O IIN+ O O IIN+ O O IIN+
(Default)
O IIN+ O O IIN+ O O IIN+
O IIN+ O O IIN+ O O IIN+
O IIN+ O O IIN+ O O IIN+
IIN-
VREF
GND
IIN-
VREF
GND
IIN-
VREF
GND
IIN-
VREF
GND
O IIN- O O IIN- O O IIN-
(Default)
O IIN- O O IIN- O O IIN-
O IIN- O O IIN- O O IIN-
O IIN- O O IIN- O O IIN-
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 ex­ternal interface header (J40). The microcontroller interfaces the SPI of CS5463 with the USB connection to the PC, enabling the GUI software to access all the CS5463 registers and functions. Interface header, J40, is provided to allow the CDB5463U to be connected to an external energy registration device or an external microcontroller. To connect the CS5463 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 CS5463 is operating in auto-boot mode. Jumpers J10, J13, J15, and J16 are equipped at the factory with jumpers to enable the LEDs.

1.5 Power Supply Section

Table 4 illustrates the power supply connections to the evaluation board. The +5V binding post (J3) sup-
plies the positive analog (VA+) for the CS5463 and the +2.5V reference. The VD+_EXT binding post (J5) supplies the digital section of the CS5463 (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
DS805DB2 5
CDB5463U
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 VD+ 8051-REGIN
Analog (VA+) Digital (VD+) 8051 (Vu+)
+5V GND VD+EXT VU+EXT J8 J9
+5 +5 +5 +5 0
+5 +3.3 +5 +5 0
Table 4. Power Supply Connections
NC
+5
NC
NC
+3.3
NC
+5
NC
NC
+5
NC
+5
NC
+5
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
VD+_EXT
+5
+3.3
O VD+ O O VD+ O O VD+
(Default)
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
O VD+ O O VD+ O O VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
Vu+_EXT
+5
VD+
O 8051 O O 8051 O O 8051
(Default)
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O
8051
O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051
O 8051 O O 8051 O O 8051

1.6 Auto-boot Mode

With a jumper connection on J18 (AUTO-BOOT ENABLE), the CS5463 operates in auto-boot mode and the CDB5463U board operates as a stand-alone system without attaching it up to a PC. When in auto­boot mode, a hardware reset (press on S1) will cause the CS5463 to boot up using the serial data from the serial EEPROM on the board (U10). When the CS5463 is in auto-boot mode, the SPI connections
6 DS805DB2
CDB5463U
between the microcontroller and the CS5463 are removed and the GUI software can not access the CS5463 registers and functions.
The EEPROM must be programmed prior to the auto-boot sequence. When the CDB5463U Evaluation Board is sent from the factory, the EEPROM is programmed with the following CS5463 command/data sequence:
1. Write Mode register, turn high-pass filters on:
0x64 0x00 0x00 0x60
2.
Unmask bit #2 (LSD) in the Mask register:
0x74 0x00 0x00 0x04
3.
Start continuous conversion:
0xE8
4.
Write STOP bit to Control register, to terminate auto-boot sequence:
0x78 0x00 0x01 0x00
This sequence programs the CS5463 for continuous conversion mode. If voltage and current signals are applied to the inputs, the CS5463 will issue pulses on the E1 details on auto-boot.
pin. See the CS5463 data sheet for more
DS805DB2 7

2. SOFTWARE

CDB5463U
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 tional Instruments. The evaluation software is available for download on the Cirrus Logic web site at
http://www.cirrus.com/industrialsoftware
Windows XP
®
.
and was designed to run under Windows®2000 or
®
/CVI®, a software development package from na-

2.1 Installation

To install the software, go to the Cirrus Logic web site at http://www.cirrus.com/industrialsoftware and re- fer to application note AN278.

2.2 Using the Software

Before launching the software, check all jumper settings on the CDB5463U 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 con­cerning 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 DS805DB2
CDB5463U

2.3.1 Setup Menu

Setup allows user to establish a USB communication connection with CDB5463U board or select a pre­viously saved data file for further analysis.
If the USB item in the Setup menu is selected, the evaluation software will poll the CDB5463U, verifying the serial communication link is ready. At this point, the USB menu item is checked indicating that the PC has successfully communicated with CDB5463U 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 CDB5463U board, a mes­sage 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 prop­erly to the CDB5463U. Reset the board (press the RESET button on the board) and try to setup the USB connection again.
DS805DB2 9
CDB5463U
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 Menu

Excluding the Start-Up window, the Menu menu provides 7 options: Setup Window, Calibration Window, Conversion Window, Pulse Rate Window, Data Collection Window, EEPROM Window, and Debug Win-
10 DS805DB2
CDB5463U
dow. Each window provides a means to evaluate the different functions and performance of the CS5463. Each option has an associated function key (<F1>, <F2>, etc.). See Figure 6.
Figure 6. Menu Pull-down Options

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
DS805DB2 11
CDB5463U

2.4 Setup Window

The evaluation software provides access to the CS5463'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 <F2> on the keyboard.
In the Setup window, all of the CS5463's registers are displayed in hexadecimal notation and are decoded to provide easier readability. Refer to the CS5463 data sheet for information on register functionality and definitions. See Figure 8.
Figure 8. Setup Window
12 DS805DB2
Loading...
+ 26 hidden pages