Cirrus Logic CDB5464U User Manual

CDB5464U
CDB5464U Engineering Board and GUI Software
Features
Voltage and Current InterfaceUSB Communication with PCOn-board C8051F320 MicrocontrollerOn-board Voltage ReferenceLabWindows
– Register Setup & Chip Control – FFT Analysis – Time Domain Analysis – Noise Histogram Analysis
"Auto-boot" Demo with Serial EEPROM
®
/CVI® GUI Software
General Description
The CDB5464U is an inexpensive tool designed to evaluate the functionality and performance of the CS5464 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 theCS5464's registers and functions.
The CDB5464U 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
CDB5464U Evaluation Board
.
REF
VIN+
VIN-
IIN1+
IIN1-
IIN2+
IIN2-
www.cirrus.com
+2.5V
reference
+5V GND
IN OUT
VREF
CS5464
4.096MHz Crystal
Copyright © Cirrus Logic, Inc. 2007
VD+_EXT
SERIAL
EERPOM
CS
SDI
SDO
SCLK
INT
RESET
E1
E2
E3
MODE
(All Rights Reserved)
Vu+_EXT
C8051F320
Reset
Circuirty
RESET
BUTTON
USB
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 mea­surement 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 pro­vides 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
096MHz
4.
CS5464
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 volt­age reference options include: VREFOUT from CS5464, 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 voltag e 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 (VIN1±) and current (IIN1±, IIN2±) channels input include: an external signal (screw terminals J23, J27, and J28), GND, or VREF. Table3 illustrates the options avail­able. 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 J17 J22
VIN2± or VIN1±
VIN2± or VIN1±
GND
VREFIN
Selects External
Signal
Selects External
Signal
Selects Grounding
the Input
Selects Reference
Source
GND
VREF
VIN1-
GND
VREF
VIN1-
GND
VREF
VIN1-
GND
VREF
VIN1-
O VIN1- O O VIN1- O O VIN1-
(Default)
O VIN1- O O VIN1- O O VIN1-
O VIN1- O O VIN1- O O VIN1-
O VIN1- O O VIN1- O O VIN1-
VIN1+
VREF
GND
VIN1+
VREF
GND
VIN1+
VREF
GND
VIN1+
VREF
GND
O VIN1+ O O VIN1+ O O VIN1+
(Default)
O VIN1+ O O VIN1+ O O VIN1+
O VIN1+ O O VIN1+ O O VIN1+
O VIN1+ O O VIN1+ O O VIN1+
INPUT Description J24 J26 J20 J19
IIN1± or IIN2±
IIN1± or IIN2±
Selects External
Signal
Selects External
Signal
GND
VREF
IIN1+
GND
VREF
IIN1+
O IIN1+ O O IIN1+- O O IIN1+
(Default)
O IIN1+ O O IIN1+- O O IIN1+
IIN1-
VREF
GND
IIN1-
VREF
GND
O IIN1- O O IIN1- O O IIN1-
(Default)
O IIN1- O O IIN1- O O IIN1-
GND
VREF
IIN2+
GND
VREF
IIN2+
O IIN2+ O O IIN2+ O O IIN2+
(Default)
O IIN2+ O O IIN2+ O O IIN2+
IIN2-
VREF
GND
IIN2-
VREF
GND
O IIN2- O O IIN2- O O IIN2-
(Default)
O IIN2- O O IIN2- O O IIN2-
GND
VREFIN
Selects Grounding
the Input
Selects Reference
Source
GND
VREF
IIN1+
GND
VREF
IIN1+
O IIN1+ O O IIN1+- O O IIN1+
O IIN1+ O O IIN1+- O O IIN1+
IIN1-
VREF
GND
IIN1-
VREF
GND
O IIN1- O O IIN1- O O IIN1-
O IIN1- O O IIN1- O O IIN1-
GND
VREF
IIN2+
GND
VREF
IIN2+
O IIN2+ O O IIN2+ O O IIN2+
O IIN2+ O O IIN2+ O O IIN2+
IIN2-
VREF
GND
IIN2-
VREF
GND
O IIN2- O O IIN2- O O IIN2-
O IIN2- O O IIN2- O O IIN2-
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 CS5464 with the USB conne ctio n 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) sup-
plies 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 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
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 auto­boot 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 Ma sk re gis te r: 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

2. SOFTWARE

CDB5464U
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 CDB5464 U 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 DS847DB1
CDB5464U

2.3.1 Setup Menu

Setup allows user to establish a USB communication connection with CDB5464U 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 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 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 su pply is on and connected prop­erly 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 Win­dow, 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 (<F1>, <F2>, 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 <F2> on the keyboard.
In the Setup window, all of the CS5464's registers are displayed in hexadecimal notation and are de coded to provide easier readability. Refer to the CS5464 data sheet for information on register fun ctio nality a nd definitions. See Figure 8.
Figure 8. Setup Window
12 DS847DB1
Loading...
+ 26 hidden pages