Analog Devices ADE7878 Energy Metering IC User Guide
Below you will find brief information for Energy Metering IC ADE7878. The ADE7878 evaluation board and this user guide, together with the ADE7878 data sheet, provide a complete evaluation platform for the ADE7878. The evaluation board has been designed so that the ADE7878 can be evaluated in an energy meter. Using appropriate current transducers, the evaluation board can be connected to a test bench or high voltage (240 V rms) test circuit. On-board resistor divider networks provide the attenuation for the line voltages. This user guide describes how the current transducers should be connected for the best performance. The evaluation board requires two external 3.3 V power supplies and the appropriate current transducers.
Advertisement
Advertisement
Evaluation Board User Guide
UG-146
One Technology Way • P.O.
Box 9106 • Norwood, MA 02062-9106, U.S.A.
• Tel: 781.329.4700
• Fax: 781.461.3113
• www.analog.com
Evaluating the ADE7878 Energy Metering IC
FEATURES
Evaluation board designed to be used with accompanying software to implement a fully functional 3-phase energy meter
Easy connection of external transducers via screw terminals
Easy modification of signal conditioning components using
PCB sockets
LED indicators on the CF1, CF2, CF3, IRQ0, and IRQ1 logic outputs
Optically isolated metering components and USB-based communication with a PC
External voltage reference option available for on-chip reference evaluation
PC COM port-based firmware updates
GENERAL DESCRIPTION
The ADE7878 is a high accuracy, 3-phase electrical energy measurement IC with serial interfaces and three flexible pulse outputs. The ADE7878 incorporates seven ADCs, reference circuitry, and all signal processing required to perform total
(fundamental and harmonic) active, reactive, and apparent energy measurement, fundamental active and reactive energy measurement, and rms calculations.
IBN IBP IAN IAP
This user guide describes the ADE7878 evaluation kit hardware, firmware, and software functionality. The evaluation board contains an ADE7878 and a LPC2368 microcontroller (from
NXP Semiconductors). The ADE7878 and its associated metering components are optically isolated from the microcontroller. The microcontroller communicates with the
PC using a USB interface. Firmware updates can be loaded using one PC com port and a regular serial cable.
The ADE7878 evaluation board and this user guide, together with the ADE7878 data sheet, provide a complete evaluation platform for the ADE7878.
The evaluation board has been designed so that the ADE7878 can be evaluated in an energy meter. Using appropriate current transducers, the evaluation board can be connected to a test bench or high voltage (240 V rms) test circuit. On-board resistor divider networks provide the attenuation for the line voltages. This user guide describes how the current transducers should be connected for the best performance. The evaluation board requires two external 3.3 V power supplies and the appropriate current transducers.
EVALUATION BOARD CONNECTION DIAGRAM
VDD2 GND2 MCU_VDD MCU_GND
P2 P1 P10 P12
ICP
ICN
P3
FILTER
NETWORK
INP
INN
P4
OPTIONAL EXTERNAL
1.2V REFERENCE
ADR280
FILTER NETWORK
AND ATTENUATION
ADE78xx
OPTIONAL
EXTERNAL
CLOCK IN
P5
VN GND
P6
VCP GND
P7
VBP GND
P8 P9
VAP GND VDD GND
Figure 1.
LPC2368 USB PORT
DIGITAL
ISOLATORS
P13
P15
CONNECTOR TO
PC COM PORT
JTAG
INTERFACE
J2
CF3
J3
CF2
J4
CF1
PLEASE SEE THE LAST PAGE FOR AN IMPORTANT
WARNING AND LEGAL TERMS AND CONDITIONS.
Rev. 0 | Page 1 of 36
UG-146
TABLE OF CONTENTS
General Description ......................................................................... 1
Evaluation Board Connection Diagram ........................................ 1
Revision History ............................................................................... 2
Evaluation Board Hardware ............................................................ 3
Power Supplies .............................................................................. 3
Analog Inputs (P1 to P4 and P5 to P8) ...................................... 3
Setting Up the Evaluation Board as an Energy Meter ............. 6
Evaluation Board Software .............................................................. 8
Installing and Uninstalling the ADE7878 Software ................. 8
Front Panel .................................................................................... 8
PSM0 Mode—Normal Power Mode .......................................... 9
PSM1 Mode ................................................................................. 17
PSM2 Mode ................................................................................. 17
REVISION HISTORY
8/10—Revision 0: Initial Version
Evaluation Board User Guide
PSM3 Mode ................................................................................. 18
Managing the Communication Protocol Between the
Microcontroller and the ADE7878 .............................................. 19
Acquiring HSDC Data Continuously ...................................... 21
Starting the ADE7878 DSP ....................................................... 22
Stopping the ADE7878 DSP ..................................................... 22
Upgrading Microcontroller Firmware ......................................... 23
Control Registers Data File ....................................................... 23
Evaluation Board Schematics and Layout ................................... 25
Schematic..................................................................................... 25
Layout .......................................................................................... 32
Ordering Information .................................................................... 34
Bill of Materials ........................................................................... 34
Rev. 0 | Page 2 of 36
Evaluation Board User Guide
EVALUATION BOARD HARDWARE
POWER SUPPLIES
The evaluation board has three power domains: one that supplies the microcontroller and one side of the isocouplers, one that supplies the other side of the optocouplers, and one that supplies the ADE7878 . The ground of the microcontroller’s power domain is connected to the ground of the PC through the USB cable. The ground of the ADE7878 power domain is determined by the ground of the phase voltages, VAP, VBP, VCP, and VN, and must be different from the ground of the microcontroller’s power domain.
The microcontroller 3.3 V supply is provided at the P12 connector. The ADE7878 3.3 V supply is provided at the P9 connector. Close jumper JP2 to ensure that the same 3.3 V supply from ADE7878 is also provided at the isocouplers.
ANALOG INPUTS (P1 TO P4 AND P5 TO P8)
Current and voltage signals are connected at the screw terminal,
P1 to P4 and P5 to P8, respectively. All analog input signals are filtered using the on-board antialiasing filters before the signals are connected to the ADE7878. The components used on the board are the recommended values to be used with the
ADE7878.
Current Sense Inputs (P1, P2, P3, and P4)
The ADE7878 measures three phase currents and the neutral current. Current transformers or Rogowski coils can be used to sense the current but should not be mixed together. The
ADE7878 contains different internal PGA gains on phase currents and on the neutral current; therefore, sensors with different ratios can be used. The only requirement is to have the same scale signals at the PGA outputs; otherwise, the mismatch functionality of the ADE7878 is compromised (see the
ADE7878 data sheet for more details about neutral current
mismatch). Figure 2 shows the structure used for the Phase A
current; the sensor outputs are connected to the P1 connector.
The R1 and R2 resistors are the burden resistors and, by default, they are not populated. They can also be disabled using the JP1A and JP2A jumpers. The R9/C9 and R10/C10 RC networks are used in conjunction with Rogowski coils. They can be disabled using the JP3A and JP4A jumpers. The R17/C17 and R18/C18
RC networks are the antialiasing filters. The default corner frequency of these low pass filters is 7.2 kHz (1 kΩ/22 nF).
These filters can easily be adjusted by replacing the components on the evaluation board.
All the other current channels (that is, Phase B, Phase C, and the neutral current) have a similar input structure.
Using a Current Transformer as the Current Sensor
Figure 3 shows how a current transformer can be used as a
current sensor in one phase of a 3-phase, 4-wire distribution system (Phase A). The other two phases and the neutral current require similar connections.
Rev. 0 | Page 3 of 36
UG-146
JP3A JP5A
TP1
ADE78xx
R9
100
Ω
C9
22,000pF
R17
1k
Ω
C17
22,000pF
IAP
P1
JP1A
R1
IAP
IAN
JP2A R2
C10
22,000pF
C18
22,000pF
R10 R18
IAN
100
Ω
1k
Ω
TP2
JP4A JP6A
Figure 2. Phase A Current Input Structure on the Evaluation Board
JP3A JP5A
TP1
IAP
ADE78xx
I
MAX
= 6A rms
CT
P1
1:2000
JP1A
R1
50 Ω
R9
100
Ω
C9
22,000pF
R17
1k
Ω
C17
22,000pF
JP2A
R2
50 Ω
C10
22,000pF
R10
100
Ω
C18
22,000pF
R18
1k
Ω
IAN
TP2
JP4A JP6A
Figure 3. Example of a Current Transformer Connection
The R1 and R2 burden resistors must be defined as functions of the current transformer ratio and maximum current of the system, using the following formula:
R1 = R2 = 1/2 × 0.5/sqrt(2) × N/I
FS where:
0.5/sqrt(2) is the rms value of the full-scale voltage accepted at the ADC input.
N is the input-to-output ratio of the current transformer.
I
FS
is the maximum rms current to be measured.
The JP1A and JP2A jumpers should be opened if R1 and R2 are used. The antialiasing filters should be enabled by opening the
J5A and J6A jumpers (see Figure 3).
The secondary current of the transformer is converted to a voltage by using a burden resistor across the secondary winding outputs. Care should be taken when using a current transformer as the current sensor. If the secondary is left open (that is, no burden is connected), a large voltage may be present at the secondary outputs. This can cause an electric shock hazard and potentially damage electronic components.
Most current transformers introduce a phase shift that the manufacturer indicates in the data sheet. This phase shift can lead to significant energy measurement errors, especially at low power factors. The ADE7878 can correct the phase error using the APHCAL[9:0], BPHCAL[9:0], and CPHCAL[9:0] phase calibration registers as long as the error stays between −6.732° and +1.107° at 50 Hz (see the ADE7878 data sheet for more
UG-146 details). The software supplied with the ADE7878 evaluation board allows user adjustment of phase calibration registers.
For this particular example, burden resistors of 50 Ω signify an input current of 7.05 A rms at the ADE7878 ADC full-scale input (0.5 V). In addition, the PGA gains for the current channel must be set at 1. For more information about setting
PGA gains, see the ADE7878 data sheet. The evaluation software allows the user to configure the current channel gain.
Using a Rogowski Coil as the Current Sensor
Figure 4 shows how a Rogowski coil can be used as a current
sensor in one phase of a 3-phase, 4-wire distribution system
(Phase A). The other two phases and the neutral current require similar connections. The Rogowski coil does not require any burden resistors; therefore, R1 and R2 should not be populated.
The antialiasing filters should be enabled by opening the J5A and J6A jumpers. To account for the high frequency noise introduced by the coil, an additional antialiasing filter must be introduced by opening the JP3A and JP4A jumpers. Then, to compensate for the 20 dB/dec gain introduced by the di/dt sensor, the integrator of the ADE7878 must be enabled by setting Bit 0 (INTEN) of the CONFIG register. The integrator has a −20 dB/dec attenuation and an approximately −90° phase shift and, when combined with the di/dt sensor, results in a magnitude and phase response with a flat gain over the frequency band of interest.
JP3A JP5A
TP1
IAP
ADE78xx
ROGOWSKI
COIL
P1
JP1A
R1
R9
100
Ω
C9
22,000pF
R17
1k
Ω
C17
22,000pF
JP2A R2
C10
22,000pF
R10
100
Ω
C18
22,000pF
R18
1k
Ω
IAN
TP2
JP4A JP6A
Figure 4. Example of a Rogowski Coil Connection
Evaluation Board User Guide
Voltage Sense Inputs (P5, P6, P7, and P8 Connectors)
The voltage input connections on the ADE7878 evaluation board can be directly connected to the line voltage sources.
The line voltages are attenuated using a simple resistor divider network before they are supplied to the ADE7878. The attenuation network on the voltage channels is designed so that the corner frequency (3 dB frequency) of the network matches that of the antialiasing filters in the current channel inputs. This prevents the occurrence of large energy errors at low power factors.
Figure 5 shows a typical connection of the Phase A voltage
inputs; the resistor divider is enabled by opening the JP7A jumper. The antialiasing filter on the VN data path is enabled by opening the JP7N jumper. JP8A and JP8N are also opened.
The VN analog input is connected to AGND via the R25/C25 antialiasing filter using the JP8N connector.
The attenuation networks can be easily modified by the user to accommodate any input level. However, the value of R32 (1 kΩ), should be modified only together with the corresponding resistors in the current channel (R17 and R18 on the Phase A current data path).
JP7A
TP12 ADE78xx
P8
VAP
R26
1M
Ω
R29
100k
Ω
VAP
JP8A
R32
1k
Ω
C32
22,000pF
VN
JP9A
P5
JP7N
R25
1k
Ω
TP9
VN
VN
JP8N
C25
22,000pF
Figure 5. Phase A Voltage Input Structure on the Evaluation Board
The maximum signal level permissible at the VAP, VBP, and
VCP pins of the ADE7878 is 0.5 V peak. Although the
ADE7878 analog inputs can withstand ±2 V without risk of permanent damage, the signal range should not exceed ±0.5 V with respect to AGND for a specified operation.
Rev. 0 | Page 4 of 36
Evaluation Board User Guide UG-146
Table 1. Recommended Settings for Evaluation Board Connectors
Jumper Option Description
JP1 Soldered Connects AGND to ground. By default, it is soldered.
JP1A, JP1B,
JP1C, JP1N,
Open Connect IAP, IBP, IC, and INP to AGND. By default, they are open.
JP2 Closed Connects the ADE7878 VDD power supply (VDD_F at the P9 connector) to the power supply of the isocouplers (VDD2 at the P10 connector). By default, it is closed.
JP2A, JP2B,
JP2C, JP2N
JP3
JP3A, JP3B,
JP3C, JP3N
JP4
JP4A, JP4B,
JP4C, JP4N
Open
Unsoldered
Closed
Soldered
Closed
Connect IAN, IBN, ICN, and INN to AGND. By default, they are open.
Connects the pad metal below the ADE7878 to AGND. By default, it is unsoldered.
Disable the phase compensation network in the IAP, IBP, ICP, and INP data path. By default, they are closed.
Connects C3 to DVDD. By default, it is soldered.
Disable the phase compensation network in the IAN, IBN, ICN, and INN data path. By default, they are closed.
JP5
JP5A, JP5B,
JP5C, JP5N
JP6
Soldered
Open
Connects C5 to AVDD. By default, it is soldered.
Disable the phase antialiasing filter in the IAP, IBP, ICP, and INP data path. By default, they are open.
JP6A, JP6B,
JP6C, JP6N
JP7A, JP7B,
JP7C
Open Disable the phase antialiasing filter in the IAN, IBN, ICN, and INN data path. By default, they are open.
JP7 Closed Enables the supply to the microcontroller. When open, takes out the supply to the microcontroller. By default, it is closed.
Open Disable the resistor divider in the VAP, VBP, and VCP data path. By default, they are open.
JP7N Open Disables the antialiasing filter in the VN data path. By default, it is open.
JP8
JP8A, JP8B,
JP8C
JP8N
Soldered
Open
Open
Closed
Connects C41 to the REF pin of the ADE7878. By default, it is soldered.
Sets the microcontroller in flash memory programming mode. By default, it is open.
Connect VAP, VBP, and VCP to AGND. By default, they are open.
Connects VN to AGND. By default, it is closed.
JP9 Open When closed, signals the microcontroller to declare all I/O pins as outputs. It is used when another microcontroller is used to manage the ADE7878 through the P38 socket. By default, it is open.
JP9A, JP9B,
JP9C
Soldered to Pin
1 (AGND)
Connect the ground of antialiasing filters in the VAP, VB, and VCP data path to AGND or VN. By default, they are soldered to AGND.
JP10
JP11
Open
Soldered to Pin
1
Connects the external voltage reference to ADE7878. By default, it is open.
Connects the CLKIN pin of the ADE7878 to a 16,384 MHz crystal (Pin 1 of JP11) or to an external clock input provided at J1. By default, it is soldered to Pin 1.
JP12
JP35, JP33
Soldered to Pin
3 (AGND)
Open
Connects DGND (Pin 2 of JP12) of the ADE7878 to ground (Pin 1 of JP12) or to AGND (Pin 3 of JP12).
JP31, JP37
JP36, JP34,
JP32, JP38
Open
Closed with
0 Ω resistors
If I 2 C communication between the NXP LPC2368 and the ADE7878 is used, these connectors should be closed with 0 Ω resistors, and the JP36 and JP34 connectors should be opened. By default, the SPI is the communication used between the NXP LPC2368 and the ADE7878; therefore, these connectors are open.
If HSDC communication is used, these connectors should be closed with 0 Ω resistors, and the JP35 and
JP33 connectors should also be closed. By default, the SPI is the communication used between the NXP
LPC2368 and the ADE7878; therefore, these connectors are open.
If SPI communication is used between the NXP LPC2368 and the ADE7878, these connectors should be closed and JP35, JP33, JP31, and JP37 should be opened. By default, the SPI is the communication used between the NXP LPC2368 and the ADE7878; therefore, these connectors are closed.
Rev. 0 | Page 5 of 36
UG-146
SETTING UP THE EVALUATION BOARD AS AN
ENERGY METER
Figure 6 shows a typical setup for the ADE7878 evaluation
board. In this example, an energy meter for a 4-wire, 3-phase distribution system is shown. Current transformers are used to sense the phase and neutral currents and are connected as
shown in Figure 6. The line voltages are connected directly to
the evaluation board as shown. Note that the state of all jumpers
must match the states shown in Figure 6, keeping in mind that
the board is supplied from two different 3.3 V power supplies, one for the ADE7878 domain, VDD, and one for the NXP
LPC2368 domain, MCU_VDD. Because the two domains are isolated to ensure that there is no electrical connection between the high voltage test circuit and the control circuit, the power supplies should have floating voltage outputs.
The evaluation board is connected to the PC using a regular
USB cable supplied with the board. When the evaluation board is powered up and connected to the PC, the enumeration process begins and the PC recognizes new hardware and asks to install the appropriate driver. The drive can be found in the VirCOM_
Driver_XP folder of the CD. After the driver is installed, the supplied evaluation software can be launched. The next section describes the ADE7878 evaluation software in detail and how it can be installed and uninstalled.
Activating Serial Communication Between the ADE7878 and the NXP LPC2368
The ADE7878 evaluation board is supplied with communication between the ADE7878 and the NXP LPC2368 that is set through the SPI ports. The JP32, JP34, JP36, and JP38 jumpers are closed using 0 Ω resistors, and the JP31, JP33, JP35, and
JP37 jumpers are open. The SPI port should be chosen as the active port in the ADE7878 control panel.
Communication between the ADE7878 and the NXP LPC2368 is also possible using the I 2 C ports. To accomplish this, the JP31,
Evaluation Board User Guide
JP33, JP35, and JP37 jumpers should be closed using 0 Ω resistors, and the JP32, JP34, JP36, and JP38 jumpers should be open. In this case, the I 2 C port should be chosen as the active
port in the ADE7878 control panel (see Table 2).
Table 2. Jumper State to Activate SPI or I 2 C Communication
Active
Communication
Jumpers Closed with 0 Ω Resistors Jumpers Open
SPI (Default)
I 2 C
JP32, JP34, JP36,
JP38
JP31, JP33, JP35,
JP37
JP31, JP33, JP35,
JP37
JP32, JP34, JP36,
JP38
Using the Evaluation Board with Another Microcontroller
It is possible to manage the ADE7878 mounted on the evaluation board with a different microcontroller mounted on another board. The ADE7878 can be connected to this second board through one of two connectors: P11 or P38. P11 is placed on the same power domain as the ADE7878. P38 is placed on the power domain of the NXP LPC2368 and communicates with the ADE7878 through the isocouplers. If P11 is used, the power domain of the NXP LPC2368 should not be supplied at P12. If
P38 is used, a conflict may arise with the NXP LPC2368 I/O ports. The following two options are provided to deal with this situation:
• One option is to keep the NXP LPC2368 running and close
JP9. This tells the NXP LPC2368 to set all of its I/Os high to allow the other microcontroller to communicate with the ADE7878. After JP9 is closed, the S2 reset button should be pressed low to force the NXP LPC2368 to reset.
This is necessary because the state of JP9 is checked inside the NXP LPC2368 program only once after reset.
• The other option is to cut the power supply of the NXP
LPC2368 by disconnecting JP7.
Rev. 0 | Page 6 of 36
Evaluation Board User Guide
VOLTAGE SOURCE
GND
P9
PHASE C
PHASE B
VDD MCU_GND
P12
JP1, JP2 = CLOSED
VOLTAGE SOURCE
MCU_VDD
LOAD
IAP
P1
IAN
R1
R2
IBP
P2
IBN
R3
R4
ICP
P3
ICN
R5
R6
INP
P4
INN
R7
R8
VAP
P8
R26 R29
R32 C32
VBP
P7
R27 R30
R33 C33
IAP JP1A, JP2A = OPEN
JP3A, JP4A = CLOSED
IAN JP5A, JP6A = OPEN
IBP JP1B, JP2B = OPEN
JP3B, JP4B = CLOSED
IBN JP5B, JP6B = OPEN
ICP JP1C, JP2C = OPEN
JP3C, JP4C = CLOSED
ICN JP5C, JP6C = OPEN
INP JP1N, JP2N = OPEN
JP3N, JP4N = CLOSED
INN JP5N, JP6N = OPEN
VAP
JP7A, JP8A = OPEN
VBP
JP7B, JP8B = OPEN
VCP
P6
R28 R31
R34 C34
VCP
JP7C, JP8C = OPEN
VN
P5
R25
C34
VN JP7N = OPEN
JP8N = CLOSED
NEUTRAL
Figure 6. Typical Setup for the ADE7878 Evaluation Board
UG-146
Rev. 0 | Page 7 of 36
UG-146
EVALUATION BOARD SOFTWARE
The ADE7878 evaluation board is supported by Windows® based software that allows the user to access all the functionality of the ADE7878 . The software communicates with the NXP
LPC2368 microcontroller using the USB as a virtual COM port.
The NXP LPC2368 communicates with the ADE7878 to process the requests that are sent from the PC.
INSTALLING AND UNINSTALLING THE ADE7878
SOFTWARE
The ADE7878 software is supplied on one CD-ROM. It contains two projects: one that represents the NXP LPC2368 project and one LabVIEW™ based program that runs on the PC.
The NXP LPC2368 project is already loaded into the processor, but the LabVIEW based program must be installed.
1. To install the ADE7878 software, place the
CD-ROM in the CD-ROM reader and double-click
LabView_project\installation_files\setup.exe
. This launches the setup program that automatically installs all the software components, including the uninstall program, and creates the required directories.
2. To launch the software, go to the Start/Programs/
ADE7878 Eval Software menu and click ADE7878
Eval Software .
Both the ADE7878 evaluation software program and the NI run-time engine are easily uninstalled by using the Add/
Remove Programs option in the control panel.
1. Before installing a new version of the ADE7878 evaluation software, first uninstall the previous version.
2. Select the Add/Remove Programs option in the Windows control panel.
3. Select the program to uninstall and click the Add/Remove button.
FRONT PANEL
When the software is launched, the Front Panel is opened. This panel contains three areas: the main menu at the left, the submenu at the right, and a box that displays the name of the communication port used by the PC to connect to the
evaluation port, also at the right (see Figure 7).
The COM port used to connect the PC with the evaluation board must be selected first. The program displays a list of the active COM ports, allowing you to select the right one. To learn what COM port is used by the evaluation board, launch the
Windows Device Manager (the devmgmt.msc file) in the Run window on the Windows Start menu. By default, the program offers the option of searching for the COM port.
Evaluation Board User Guide
Serial communication between the microcontroller and the
ADE7878 is introduced using a switch. By default, the SPI port is used. Note that the active serial port must first be set in the
to set it up.
The main menu has only one choice, other than Exit, enabled,
Find COM Port . Clicking it starts a process in which the PC tries to connect to the evaluation board using the port indicated in the Start menu. It uses the echo function of the communica-
tion protocol (see the Managing the Communication Protocol
Between the Microcontroller and the ADE7878 section). It
displays the port that matches the protocol and then sets it to
115,200 baud, eight data bits, no parity, no flow control, one stop bit.
Figure 7. Front Panel of ADE7878 Software
If the evaluation board is not connected, the port is displayed as
XXXXX . In this case, the evaluation software is still accessible, but no communication can be executed. In both cases, whether the search for the COM port is successful or not, the cursor is positioned back at Please select from the following options in the main menu, Find COM Port is grayed out, and the next main
menu options are enabled (see Figure 8). These options allow
you to command the ADE7878 in either the PSM0 or PSM3 power mode. The other power modes, PSM1 and PSM2, are not available because initializations have to be made in PSM0 before the ADE7878 can be used in one of these other modes.
Rev. 0 | Page 8 of 36
Evaluation Board User Guide UG-146
Figure 8. Front Panel After the COM Port Is Identified
PSM0 MODE—NORMAL POWER MODE
Enter PSM0 Mode
When the evaluation board is powered up, the ADE7878 is in
PSM3 sleep mode. When Enter PSM0 mode is selected, the microcontroller manipulates the PM0 and PM1 pins of the
ADE7878 to switch it into PSM0 mode. It waits 50 ms for the circuit to power up and, if SPI communication is activated on the board, it executes three SPI write operations to Address
0xEBFF of the ADE7878 to activate the SPI port.
If the operation has been correctly executed or I 2 C communication is used, the message Configuring LPC2368 – ADE7878
communication was successful is displayed, and you must click
OK to continue. The only error that may occur during this operation is communication related; if this happens, the following message is displayed: Configuring LPC2368 –
ADE7878 communication was not successful. Please check the communication between the PC and ADE7878 evaluation
board and between LPC2368 and ADE78xx.
Bit 1 (I2C_LOCK) of the CONFIG2[7:0] register is now set to 1 to lock in the serial port choice. Then the DICOEFF register is initialized with 0xFF8000, and the DSP of the ADE7878 is started when the software program writes RUN = 0x1. At the end of this process, the entire main menu is grayed out, and the submenu is enabled. You can now manage all functionality of the ADE7878 in PSM0 mode. To switch the ADE7878 to another power mode, click the Exit button on the submenu. The state of
the Front Panel is shown in Figure 9.
Figure 9. Front Panel After the ADE7878 Enters PSM0 Mode
Reset ADE7878
When Reset ADE78xx is selected on the Front Panel, the
RESET pin of the ADE7878 is kept low for 20 ms and then is set high. If the operation is correctly executed, the message
ADE7878 was reset successfully is displayed, and you must click OK to continue. The only error that may occur during this operation is communication related; if this happens, the following message is displayed: The communication between
PC and ADE7878 evaluation board or between LPC2368 and
ADE78xx did not function correctly. There is no guarantee
the reset of ADE7878 has been performed.
Configure Communication
When Configure Communication is selected on the Front
Panel, the panel shown in Figure 10 is opened. This panel is
useful if an ADE7878 reset has been performed and the SPI is no longer the active serial port. Select the SPI port by clicking the I2C/SPI Selector button and then click OK to update the selection and lock the port. If the port selection is successful, the message, Configuring LPC2368 – ADE7878 communica-
tion was successful, is displayed, and you must click OK to continue. If a communication error occurs, the message,
Configuring LPC2368 – ADE7878 communication was not successful. Please check the communication between the PC
and ADE7878 evaluation board, is displayed.
Rev. 0 | Page 9 of 36
UG-146
Figure 10. Configure Communication Panel
The CONFIG2[7:0] register is written with Bit 1 (I2C_LOCK) set to 1 so that you do not need to remember to set it once the communication is set. The contents of CONFIG2[7:0] are then read back and displayed with Bit 1 (I2C_LOCK).
To close the panel, click the Exit button; the cursor is positioned at Please select from the following options in the submenu of the Front Panel.
Total Active Power
When Total Active Power is selected on the Front Panel, the
panel shown in Figure 11 is opened. The screen has an upper
half and a lower half: the lower half shows the total active power data path of one phase, and the upper half shows bits, registers, and commands necessary to power management.
Evaluation Board User Guide current data path is written into the ADE7878. All the other instances take this value directly.
1. Click the Read Configuration button to cause all registers that manage the total active power to be read and displayed. Registers from the inactive data paths are also read and updated.
2. Click the Write Configuration button to cause all registers that manage the total active power to be written into the
ADE7878 . Registers from the inactive data paths are also written. The ADE78xx status box shows the power mode that the ADE7878 is in (it should always be PSM0 in this window), the active serial port (it should always be SPI), and the CHECKSUM[31:0] register. After every read and write operation, the CHECKSUM[31:0] register is read and its contents displayed.
3. Click the CFx Configuration button to open a new panel
(see Figure 12). This panel gives access to all bits and
registers that configure the CF1, CF2, and CF3 outputs of the ADE7878. The Read Setup and Write Setup buttons update and display the CF1, CF2, and CF3 output values.
Figure 11. Total Active Power Panel
The Active Data Path button manages which data path is shown in the bottom half. Some registers or bits, like the
WTHR0[23:0] register or Bit 0 (INTEN) of the CONFIG[15:0] register, are common to all data paths, independent of the phase shown. When these registers are updated, all the values in all data paths are updated. The HPFDIS[23:0] register is included twice in the data path, but only the register value from the
Rev. 0 | Page 10 of 36
Figure 12. CFx Configuration Panel
Like the Total Active Power panel, the CHECKSUM[31:0] register is read back whenever a read or write operation is executed in the CFx Configuration panel. To select more than one option for a TERMSELx bit in the COMPMODE
[15:0] register, press the CTRL key while clicking the options you want.
Clicking the Exit button closes the panel and redisplays the
Total Active Power panel. When the Read Energy Registers button in the Total Active Power panel is clicked, a new panel is
opened (see Figure 13). This panel gives access to bits and
registers that configure the energy accumulation. The Read
Setup and Write Setup buttons update and display the bit and register values.
Evaluation Board User Guide
The CHECKSUM[31:0] register is read back whenever a read or write operation is executed in the Read Energy Registers panel.
Clicking the Read all energy registers button causes all energy registers to be read immediately, without regard to the modes in which they function.
UG-146
When clicked on the Front Panel, the Total Reactive Power,
Fundamental Active Power, and Fundamental Reactive
Power buttons open panels that are very similar to the Total
Active Power panel. These panels are shown in Figure 14,
Figure 13. Read Energy Registers Panel
The panel also gives the choice of reading the energy registers synchronous to CFx interrupts (pulses) or using line cycle accumulation mode. When the Read energy registers
synchronous with CF1 pulses button is clicked, the following happens:
1. The STATUS0[31:0] register is read and then written back to so that all nonzero interrupt flag bits are cancelled.
2. Bit 14 (CF1) in the MASK0[31:0] register is set to 1, and
the interrupt protocol is started (see the Managing the
Communication Protocol Between the Microcontroller and the ADE7878 section for protocol details).
3. The microcontroller then waits until the IRQ0 pin goes low. If the wait is longer than the timeout you indicate in
3 sec increments, the following error message is displayed:
No CF1 pulse was generated. Verify all the settings
before attempting to read energy registers in this mode!
4. When the IRQ0 pin goes low, the STATUS0[31:0] register is read and written back to cancel Bit 14 (CF1); then the energy registers involved in the CF1 signal are read and their contents are displayed. A timer in 10 ms increments can be used to measure the reaction time after the IRQ0 pin goes low.
5. The operation is repeated until the button is clicked again.
The process is similar when the other CF2, CF3, and line accumulation (Read Energy Registers panel) buttons are clicked.
It is recommended to always use a timeout when dealing with interrupts. By default, the timeout is set to 10 (indicating a
30 sec timeout), and the timer is set to 0 (indicating that the
STATUSx[31:0] and energy registers are read immediately after the IRQ0 pin goes low).
Rev. 0 | Page 11 of 36
Figure 14. Total Reactive Power Panel
Figure 15. Fundamental Active Power Panel
Figure 16. Fundamental Reactive Power Panel
UG-146
Apparent Power
When Apparent Power is selected on the Front Panel, a new
panel is opened (see Figure 17). Similar to the other panels that
deal with power measurement, this panel is divided into two parts: the lower half shows the apparent power data path of one phase and the ADE7878 status; the upper half shows the bits, registers, and commands necessary to power management.
Evaluation Board User Guide indicated by the timeout (in 3 sec increments), the following message is displayed: No ZXIA, ZXIB or ZXIC interrupt was generated. Verify at least one sinusoidal signal is provided
between IAP-IAN, IBP-IBN or ICP-ICN pins. A delay can be introduced (in 10 ms increments) between the time the IRQ1 pin goes low and the moment the xIRMS registers are read. The operation is repeated until the button is clicked again.
Mean Absolute Value Current
When Mean Absolute Value Current is selected on the Front
Panel, a new panel is opened (see Figure 19). When the Read
xIMAV registers button is clicked, the xIMAV[19:0] registers are read 10 consecutive times, and their average is computed and displayed. After this operation, the button is returned to high automatically. The ADE7878 status is also displayed.
Figure 17. Apparent Power Panel
Current RMS
When RMS Current is selected on the Front Panel, a new
panel is opened (see Figure 18). All data paths of all phases
are available.
Figure 18. Current RMS panel
Clicking the Read Setup button causes a read of all registers shown in the panel. Clicking the Write Setup button causes writes to the xIRMSOS[23:0] registers.
You can use the Start Digital Signal Processor and Stop
Digital Signal Processor buttons to manage the Run[15:0] register and the Read xIRMS registers button, which uses the
ZXIA, ZXIB, and ZXIC interrupts at the IRQ1 pin, to read the xIRMS[23:0]registers 500 consecutive times and then compute and display their average. If no interrupt occurs for the time
Figure 19. Mean Absolute Value Current Panel
Voltage RMS
When RMS Voltage is selected on the Front Panel, the Voltage
RMS panel is opened (see Figure 20). This panel is very similar
to the Current RMS panel. Clicking the Read Setup button executes a read of the xVRMSOS[23:0] and xVRMS[23:0] registers.
Clicking Write Setup writes the xVRMSOS[23:0] registers into the ADE7878. The Start Digital Signal Processor and Stop
Digital Signal Processor buttons manage the Run[15:0] register.
When the Read xVRMS registers button is clicked, the xVRMS[23:0] registers are read 500 consecutive times and the average is displayed. The operation is repeated until the button is clicked again. Note that the ZXVA, ZXVB, and ZXVC zerocrossing interrupts are not used in this case because they are disabled when the voltages go below 10% of full scale. This allows rms voltage registers to be read even when the phase voltages are very low.
Rev. 0 | Page 12 of 36
Evaluation Board User Guide UG-146
Figure 20. Voltage RMS Panel
Power Quality
The Power Quality panel is accessible from the Front Panel
and is divided into two parts (see Figure 21). The lower part
displays registers that manage the power quality measurement functions for the Active Measurement button in the upper part of the panel. The upper part also displays the ADE7878 status and the buttons that manage the measurements.
When the READ CONFIGURATION button is clicked, all power quality registers (MASK1[31:0], STATUS1[31:0],
PERIOD[15:0], MMODE[7:0], ISUM[27:0], OVLVL[23:0],
OILVL[23:0], PHSTATUS[15:0], IPEAK[31:0], VPEAK[31:0],
SAGLVL[23:0], SAGCYC[7:0], ANGLE0[15:0], ANGLE1[15:0],
ANGLE2[15:0], COMPMODE[15:0], CHECKSUM[31:0], and
PEAKCYC[7:0]) are read, and the ones belonging to the active panel are displayed. Based on the PERIOD[15:0] register, the line frequency is computed and displayed in the lower part of the panel, in Zero Crossing Measurements. Based on the
ANGLEx[15:0] registers, cos(ANGLEx) is computed and displayed in the Time Intervals Between Phases panel that is accessible from the Active Measurement Zero Crossing
When the WRITE CONFIGURATION button is clicked,
MMODE[7:0], OVLVL[23:0], OILVL[23:0], SAGLVL[23:0],
SAGCYC[7:0], COMPMODE[15:0], and PEAKCYC[7:0] are written into the ADE7878, and CHECKSUM[31:0] is read back and displayed in the CHECKSUM[31:0] box at the top of the upper part of the panel.
Figure 21. Power Quality Zero-Crossing Measurements Panel
When the WAIT FOR INTERRUPTS button is clicked, the interrupts that you have enabled in the MASK1[31:0] register are monitored. When the IRQ1 pin goes low, the STATUS1[31:0] register is read and its bits are displayed. The ISUM[27:0],
PHSTATUS[15:0], IPEAK[31:0], VPEAK[31:0], ANGLE0[15:0],
ANGLE1[15:0], and ANGLE2[15:0] registers are also read and displayed. A timeout should be introduced in 3 sec increments to ensure that the program does not wait indefinitely for interrupts. A timer (in 10 ms increments) is provided to allow reading of the registers with a delay from the moment the interrupt is triggered.
The Active Measurement Zero Crossing button gives access to the Zero Crossing, Neutral Current Mismatch, Overvoltage
and Overcurrent Measurement, Peak Detection, and Time
Intervals Between Phases panels (see Figure 21 through
The line frequency is computed using the PERIOD[15:0] register, based on the following formula: f
=
256 , 000
[ Hz ]
Period
The cosine of the ANGLE0[15:0], ANGLE1[15:0], and
ANGLE2[15:0] measurements is computed using the following formula: cos ( ANGLEx )
= cos
ANGLEx × 360 ×
256 , 000 f
Rev. 0 | Page 13 of 36
UG-146 Evaluation Board User Guide
Figure 22. Neutral Current Mismatch Panel
Figure 25. Time Intervals Between Phases Panel
Waveform Sampling
The Waveform Sampling panel (see Figure 26) is accessible
from the Front Panel and uses the HSDC port to acquire data from the ADE7878 and display it. It can be accessed only if the communication between the ADE7878 and the NXP LPC2368 is through the I 2
C. See the Activating Serial Communication
Between the ADE7878 and the NXP LPC2368 section for
details on how to set I evaluation board.
2 C communication on the ADE7878
Figure 23. Overvoltage and Overcurrent Measurements Panel
Figure 24. Peak Detection Panel
Rev. 0 | Page 14 of 36
Figure 26. Waveform Sampling Panel
Evaluation Board User Guide
The HSDC transmits data to the NXP LPC2368 at 4 MHz because this is the maximum speed at which the slave SPI of the
NXP LPC2368 can receive data. The panel contains some switches that must be set before acquiring data.
• One switch chooses the quantities that are displayed: phase currents and voltages or phase powers. For every set of quantities, only one can be acquired at a time. This choice is made using the Select Waveform button.
• A second switch allows acquired data to be stored in files for further use. This switch is set with the ACQUIRE
DATA button.
• The acquisition time should also be set before an acquisition is ordered. By default, this time is 150 ms. It is unlimited for phase currents and voltages and for phase powers. The NXP LPC2368 executes in real time three tasks using the ping pong buffer method: continuously receiving data from HSDC, storing the data into its USB memory, and sending the data to the PC. Transmitting seven phase currents and voltages at 4 MHz takes 103.25 µs
(which is less than 125 µs); therefore, the HSDC update rate is 8 kHz (HSDC_CFG = 0x0F). Transmitting nine phase powers takes 72 µs (again, less than 125 µs); therefore, the
HSDC update rate is also 8 kHz (HSDC_CGF = 0x11).
To start the acquisition, click the ACQUIRE DATA button. The data is displayed on one plot. If you click the Write waveforms
to file?/No writing to files switch to enable the writing of waveforms to a file, the program asks for the name and location of the files before storing the waveform.
Checksum Register
The Checksum Register panel is accessible from the Front
Panel and gives access to all ADE7878 registers that are used to
compute the CHECKSUM[31:0] register (see Figure 27). You
can read/write the values of these registers by clicking the Read and Write buttons. The LabView program estimates the value of the CHECKSUM[31:0] register and displays it whenever one of the registers is changed. When the Read button is pressed, the registers are read and the CHECKSUM[31:0] register is read and its values displayed. This allows you to compare the value of the CHECKSUM[31:0] register estimated by LabView with the value read from the ADE7878. The values should always be identical.
UG-146
Figure 27. Checksum Register Panel
All Registers Access
The All Registers Access panel is accessible from the Front
Panel and gives read/write access to all ADE7878 registers.
Because there are many, the panel can scroll up and down and
has multiple read, write, and exit buttons (see Figure 28 and
Figure 29). The registers are listed in columns in alphabetical
order, starting at the upper left. The panel also allows you to save all control registers into a data file by clicking the Save All
Regs into a file button. By clicking the Load All Regs from a
file button, you can load all control registers from a data file.
Then, by clicking the Write All Regs button, you can load these values into the ADE7878. The order in which the registers are
stored into a file is shown in the Control Registers Data File
section.
Rev. 0 | Page 15 of 36
Figure 28. Panel Giving Access to All ADE7878 Registers (1)
UG-146
Figure 29. Panel Giving Access to All ADE7878 Registers (2)
Quick Startup
The Quick Startup panel is accessible from the Front Panel and can be used to rapidly initialize a 3-phase meter (see
Evaluation Board User Guide
Clicking the Begin Computations button starts the program that reads rms voltages and currents and calculates the full-scale voltage and currents used to further initialize the meter. This process takes 7 sec as the program reads the rms voltages 100 times and the rms currents 100 times and then averages them
(this is because the PC reads the rms values directly and cannot synchronize the readings with the zero crossings).
The program then computes the full-scale voltages and currents and the constants that are important for setting up the
ADE7878: nominal values (n), CFDEN, WTHR1, VARTHR1,
VATHR1 and WTHR0, VARTHR0, and VATHR0.
At this point, you can overwrite these values. You can also click the Update Registers button to cause the program to do the following:
• Initialize the CFxDEN and xTHR registers
• Enable the CF1 pin to provide a signal proportional to the total active power, the CF2 pin to provide a signal proportional to the total reactive power, and the CF3 pin to provide a signal proportional to the apparent power.
Throughout the program, it is assumed that PGA gains are 1
(for simplicity) and that the Rogowski coil integrators are disabled. You can enter and modify the PGAs and enable the integrators before executing this quick startup if necessary.
At this point, the evaluation board is set up as a 3-phase meter, and calibration can be executed. To store the register initializations, click the Save All Regs into a file button in the All
Registers Access panel. After the board is powered down and then powered up again, the registers can be loaded into the
ADE7878 by simply loading back the content of the data file. To do this, click the Load All Regs from a file button in the All
Registers Access panel.
PSM2 Settings
The PSM2 Settings panel, which is accessible from the Front
Panel, gives access to the LPOILVL[7:0] register that is used to
access PSM2 low power mode (see Figure 31). You can
manipulate its LPOIL[2:0] and LPLINE[4:0] bits. The value shown in the LPOILVL[7:0] register is composed from these bits and then displayed. Note that you cannot write a value into the register by writing a value in the LPOILVL[7:0] register box.
Figure 30. Panel Used to Quickly Set Up the 3-Phase Meter
The meter constant (MC, in impulses/kWh), the nominal voltage (Un, in V rms units), the nominal current (In, in A rms units), and the nominal line frequency (fn, in either 50 Hz or
60 Hz) must be introduced in the panel controls. Then phase voltages and phase currents must be provided through the relative sensors.
Rev. 0 | Page 16 of 36
Evaluation Board User Guide UG-146
Figure 31. PSM2 Settings Panel
PSM1 MODE
Enter PSM1 Mode
When Enter PSM1 mode is selected on the Front Panel, the microcontroller manipulates the PM0 and PM1 pins of the
ADE7878 to switch the ADE7878 into PSM1 reduced power mode. Then, the submenu allows access only to the Mean
Absolute Value Current function because this is the only
ADE7878 functionality available in this reduced power mode
Figure 33. Mean Absolute Value Currents Panel in PSM1 Mode
PSM2 MODE
Enter PSM2 Mode
When Enter PSM2 mode is selected on the Front Panel, the microcontroller manipulates the PM0 and PM1 pins of the
ADE7878 to switch the ADE7878 into PSM2 low power mode.
Then the submenu allows access only to the Phase Current
Monitoring function because this is the only ADE7878 functionality available in this low power mode.
Figure 32. Front Panel After the ADE7878 Enters PSM1 Mode
Mean Absolute Value Current in PSM1 Mode
The Mean Absolute Value Current panel, which is accessible from the Front Panel when Enter PSM1 mode is selected, is very similar to the panel accessible in PSM0 mode (see the
Mean Absolute Value Current section for details). The only
difference is that ADE7878 status does not show the
CHECKSUM[31:0] register because it is not available in
Rev. 0 | Page 17 of 36
Figure 34. Front Panel After the ADE7878 Enters PSM2 Mode
UG-146
Phase Current Monitoring
The Phase Current Monitoring panel is accessible from the
Front Panel when Enter PSM2 mode is selected; it allows you to display the state of the IRQ0and IRQ1 pins because, in PSM2 low power mode, the ADE7878 compares the phase currents against a threshold determined by the LPOILVL[7:0] register
(see Figure 35). Clicking the READ STATUS OF IRQ0 AND
IRQ1 PINS button reads the status of these pins and displays and interprets the status.
This operation is managed by the LPOILVL[7:0] register and can be modified only in PSM0 mode. The panel offers this option by switching the ADE7878 into PSM0 mode and then back to PSM2 mode when one of the READ LPOILVL/WRITE
LPOILVL buttons is clicked. To avoid toggling both the PM0 and PM1 pins at the same time during this switch, the
ADE7878 is set to PSM3 when changing modes.
Evaluation Board User Guide
Figure 35. Panel Managing Current Monitoring in PSM2 Mode
PSM3 MODE
Enter PSM3 Mode
In PSM3 sleep mode, most of the internal circuits of the
ADE7878 are turned off. Therefore, no submenu is activated while in this mode. You can click the Enter PSM0 mode, Enter
PSM1 mode, or Enter PSM2 mode button to set the ADE7878 to one of these power modes.
Rev. 0 | Page 18 of 36
Evaluation Board User Guide UG-146
MANAGING THE COMMUNICATION PROTOCOL BETWEEN THE MICROCONTROLLER AND
THE ADE7878
In this section, the protocol commands are listed that have been implemented to manage the ADE7878 from the PC using the microcontroller.
The microcontroller is a pure slave during the communication process. It receives a command from the PC, executes the command, and sends an answer to the PC. The PC should wait for the answer before sending a new command to the microcontroller.
Table 7. Reset—Message from the PC to the Microcontroller
Byte Description
0 C = 0x43, toggle the RESET pin and keep it low for at least 10 ms
1
2
N = 1
Data Byte 0: this byte can have any value
Table 8. Reset—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52
1 ~ = 0x7E, to acknowledge that the operation was successful
Table 3. Echo Command—Message from the PC to the Microcontroller
Byte Description
0 A = 0x41
1 N = number of bytes transmitted after this byte
2
3
4
Data Byte N − 1 (MSB)
Data Byte N − 2
Data Byte N − 3
… …
N Data Byte 1
N + 1 Data Byte 0 (LSB)
Table 9. I 2 C/SPI Select (Configure Communication)—
Message from the PC to the Microcontroller
Byte Description
0
1
2
D = 0x44, select I 2 C and SPI and initialize them; then set
CONFIG2[7:0] = 0x2 to lock in the port choice. When I 2 C is selected, also enable SSP0 of the LPC2368 (used for
HSDC).
N = 1.
Data Byte 0: 0x00 = I 2 C, 0x01 = SPI.
Table 4. Echo Command—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52
1
2
3
A = 0x41
N = number of bytes transmitted after this byte
Data byte N − 1 (MSB)
4 Data byte N − 2
… …
N + 1 Data Byte 1
N + 2 Data Byte 0 (LB)
Table 10. I 2 C/SPI Select (Configure Communication)—
Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52
1 ~ = 0x7E, to acknowledge that the operation was successful
Table 5. Power Mode Select—Message from the PC to the
Microcontroller
Byte Description
0 B = 0x42, change PSM mode
1
2
N = 1
Data Byte 0:
0x00 = PSM0
0x01 = PSM1
0x02 = PSM2
0x03 = PSM3
Table 11. Data Write—Message from the PC to the Microcontroller
2
3
4
Byte Description
0 E = 0x45.
1 N = number of bytes transmitted after this byte. N can be 1 + 2, 2 + 2, 4 + 2, or 6 + 2.
MSB of the address.
LSB of the address.
Data Byte N − 3 (MSN).
5
6
Data Byte N − 4.
Data Byte N − 5.
… …
N + 2 Data Byte 1.
N + 3 Data Byte 0 (LSB).
Table 6. Power Mode Select—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52
1 ~ = 0x7E, to acknowledge that the operation was successful
Table 12. Data Write—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52
1 ~ = 0x7E, to acknowledge that the operation was successful
Rev. 0 | Page 19 of 36
UG-146
1
2
3
4
Table 13. Data Read—Message from the PC to the Microcontroller
Byte Description
0 F = 0x46.
N = number of bytes transmitted after this byte; N = 3.
MSB of the address.
LSB of the address.
M = number of bytes to be read from the address above.
M can be 1, 2, 4, or 6.
4
5
6
Table 14. Data Read—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52.
1 MSB of the address.
2
3
LSB of the address.
Byte 5, Byte 3, Byte 1, or Byte 0 (MSB) read at the location indicated by the address. The location may contain 6, 4,
2, or 1 byte. The content is transmitted MSB first.
Byte 4, Byte 2, or Byte 0.
Byte 3, Byte 1.
Byte 2, Byte 0.
2
3
4
Table 15. Interrupt Setup—Message from the PC to the
Microcontroller
Byte Description
0 J = 0x4A.
1 N = 8, number of bytes transmitted after this byte.
MSB of the MASK1[31:0] or MASK0[31:0] register.
LSB of the MASK1[31:0] or MASK0[31:0] register.
Byte 3 of the desired value of the MASK0[31:0] or
MASK1[31:0] register.
8
9
Time out byte: time the MCU must wait for the interrupt to be triggered. It is measured in 3 sec increments.
Time out byte (TOB) = 0 means that timeout is disabled.
IRQ timer: time the MCU leaves the IRQx pin low before writing back to clear the interrupt flag. It is measured in
10 ms increments.
Timer = 0 means that timeout is disabled.
Evaluation Board User Guide
2
3
4
Table 16. Interrupt Setup—Message from the Microcontroller to the PC
Byte Description
0 R = 0x52.
1 Byte 3 of the STATUS0[31:0] or STATUS1[31:0] register.
If the program waited for TOB × 3 sec and the interrupt was not triggered, then Byte 3 = Byte 2 = Byte 1 = Byte 0
= 0xFF.
Byte 2 of the STATUS0[31:0] or STATUS1[31:0] register.
Byte 1 of the STATUS0[31:0] or STATUS1[31:0] register.
Byte 0 of the STATUS0[31:0] or STATUS1[31:0] register.
The microcontroller executes the following operations once the interrupt setup command is received:
1. Reads the STATUS0[31:0] or STATUS1[31:0] register
(depending on the address received from the PC) and, if it shows an interrupt already triggered (one of its bits is equal to 1), it erases the interrupt by writing it back.
2. Writes to the MASK0[31:0] or MASK1[31:0] register with the value received from the PC.
3. Waits for the interrupt to be triggered. If the wait is more than the timeout specified in the command, 0xFFFFFFFF is sent back.
4. If the interrupt is triggered, the STATUS0[31:0] or
STATUS1[31:0] register is read and then written back to clear it. The value read at this point is the value sent back to the PC so that you can see the source of the interrupts.
5. Sends back the answer.
Table 17. Interrupt Pins Status—Message from the PC to the
Microcontroller
Byte Description
0 H = 0x48.
1
2
N = 1, number of bytes transmitted after this byte.
Any byte. This value is not used by the program but it is used in the communication because N must not be equal to 0.
Table 18. Interrupt Pins Status—Answer from the Microcontroller to the PC
Byte Description
0 R = 0x52.
1 A number representing the status of the IRQ0 and IRQ1 pins.
0: IRQ0 = low, IRQ1 = low
1: IRQ0 = low, IRQ1 = high.
2: IRQ0 = high, IRQ1 = low.
3: IRQ0 = high, IRQ1 = high.
The reason for the IRQ0 and IRQ1 order is that on the microcontroller IO port, IRQ0= P0.1 and IRQ1 = P0.0.
Rev. 0 | Page 20 of 36
Evaluation Board User Guide
ACQUIRING HSDC DATA CONTINUOUSLY
This function acquires data from the HSDC continuously for a defined time period and for up to two variables. The microcontroller sends data in packages of 4 kB.
Table 19 describes the protocol when two instantaneous phase
currents or voltages are acquired.
8
9
10
11
12
13
14
15
20
21
22
23
24
25
26
27
3
4
5
6
7
0
1
2
16
17
18
19
Table 19. Acquire HSDC Data Continuously—Message from the PC to the Microcontroller If Phase Currents and Voltages
Are Acquired
Byte Description
28
29
30
31
G = 0x47.
N = number of bytes transmitted after this byte. N = 32.
0: corresponds to Byte 3 of IA. Because this byte is only a sign extension of Byte 2, it is not sent back by the microcontroller.
Increment_IA_Byte2. If IA is to be acquired, Byte 3, Byte 4, and Byte 5 are 1. Otherwise, they are 0.
Increment_IA_Byte1.
Increment_IA_Byte2.
0.
Increment_VA_Byte2. If VA is to be acquired, Byte 7,
Byte 8, and Byte 9 are 1. Otherwise, they are 0.
Increment_VA_Byte1.
Increment_VA_Byte0.
0.
Increment_IB_Byte2. If IB is to be acquired, Byte 11,
Byte 12, and Byte 13 are 1. Otherwise, they are 0.
Increment_IB_Byte1.
Increment_IB_Byte0.
0.
Increment_VB_Byte2. If VB is to be acquired, Byte 15,
Byte 16, and Byte 17 are 1. Otherwise, they are 0.
Increment_VB_Byte1.
Increment_VB_Byte0.
0.
Increment_IC_Byte2. If IC is to be acquired, Byte 19,
Byte 20, and Byte 21 are 1. Otherwise, they are 0.
Increment_IC_Byte1.
Increment_IC_Byte0.
0.
Increment_VC_Byte2. If VC is to be acquired, Byte 23,
Byte 24, and Byte 25 are 1. Otherwise, they are 0.
Increment_VC_Byte1.
Increment_VC_Byte0.
0.
Increment_IN_Byte2. If IN is to be acquired, Byte 27,
Byte 28, and Byte 29 are 1. Otherwise, they are 0.
Increment_IN_Byte1.
Increment_IN_Byte0.
Byte 1 of M. M is a 16-bit number. The number of 32-bit samples acquired by the microcontroller is (2 × M + 1) ×
67 per channel.
Byte 0 of M.
Rev. 0 | Page 21 of 36
UG-146
If two of the phase powers are to be acquired, the protocol
12
13
14
15
20
21
22
23
32
33
34
35
4
5
6
7
8
9
10
11
16
17
18
19
24
25
26
27
28
29
30
31
0
1
2
Table 20. Acquire HSDC Data Continuously—Message from the PC to the Microcontroller If Phase Powers Are Acquired
Byte Description
3
G = 0x47
N = number of bytes transmitted after this byte. N = 38.
0: corresponds to Byte 3 of AVA. Because this byte is only a sign extension of Byte 2, it is not sent back by the microcontroller.
Increment_AVA_Byte2. If AVA is to be acquired, Byte 3,
Byte 4, and Byte 5 are 1. Otherwise, they are 0.
Increment_AVA_Byte1.
Increment_AVA_Byte2.
0.
Increment_BVA_Byte2. If BVA is to be acquired, Byte 7,
Byte 8, and Byte 9 are 1. Otherwise, they are 0.
Increment_BVA_Byte1.
Increment_BVA_Byte0.
0.
Increment_CVA_Byte2. If CVA is to be acquired, Byte 11,
Byte 12, and Byte 13 are 1. Otherwise, they are 0.
Increment_CVA_Byte1.
Increment_CVA_Byte0.
0.
Increment_AWATT_Byte2. If AWATT is to be acquired,
Byte 15, Byte 16, and Byte 17 are 1. Otherwise, they are 0.
Increment_AWATT_Byte1.
Increment_AWATT_Byte0.
0.
Increment_BWATT_Byte2. If BWATT is to be acquired, then Byte 19, Byte 20, and Byte 21 are 1. Otherwise, they are 0.
Increment_BWATT_Byte1.
Increment_BWATT_Byte0.
0.
Increment_CWATT_Byte2. If CWATT is to be acquired,
Byte 23, Byte 24, and Byte 25 are 1. Otherwise, they are 0.
Increment_CWATT_Byte1.
Increment_CWATT_Byte0.
0.
Increment_AVAR_Byte2. If AVAR is to be acquired,
Byte 27, Byte 28, and Byte 29 are 1. Otherwise, they are 0.
Increment_AVAR_Byte1.
Increment_AVAR_Byte0.
0.
Increment_BVAR_Byte2. If BVAR is to be acquired, then
Byte 31, Byte 32, and Byte 33 are 1. Otherwise, they are 0.
Increment_BVAR_Byte1.
Increment_BVAR_Byte0.
0.
Increment_CVAR_Byte2. If CVAR is to be acquired,
Byte 35, Byte 36, and Byte 37 are 1. Otherwise, they are 0.
UG-146
Byte Description
36
37
38
39
Increment_CVAR_Byte1.
Increment_CVAR_Byte0.
Byte 1 of M. M is a 16-bit number. The number of 32-bit samples acquired by the microcontroller is (2 × M + 1) ×
67 per channel.
Byte 0 of M.
After receiving the command, the microcontroller enables the
HSDC port and acquires 67 × 7 × 4 = 1876 bytes into
BUFFER0. As soon as BUFFER0 is filled, data is acquired in
BUFFER1 (equal in size to BUFFER0), while 2 × 3 × 67 = 402 bytes (134 24-bit words) from BUFFER0 are transmitted to the
PC. As soon as BUFFER1 is filled, data is acquired into
BUFFER0 while 402 bytes from BUFFER1 are transmitted to the PC. Only the less significant 24 bits of every 32-bit instantaneous value are sent to the PC to decrease the size of the buffer sent to the PC. The most significant eight bits are only an extension of a 24-bit signed word; therefore, no information is lost. The protocol used by the microcontroller to send data to
Table 21. Acquire HSDC Data Continuously—Answer from the Microcontroller to the PC
Byte Description
0
1
2
3
4
5
…
402
R = 0x52
Byte 2 (MSB) of Word 1
Byte 1 of Word 1
Byte 0 (LSB) of Word 1
Byte 2 (MSB) of Word 2
Byte 1 (MSB) of Word 2
…
Byte 0 (LSB) of Word 134
Evaluation Board User Guide
STARTING THE ADE7878 DSP
This function orders the microcontroller to start the DSP. The microcontroller writes to the run register with 0x1.
0
1
2
Table 22. Start ADE7878 DSP—Message from the PC to the
Microcontroller
Byte Description
N = 0x4E
N = number of bytes transmitted after this byte; N = 1
Any byte
Table 23. Start ADE7878 DSP—Answer from the Microcontroller to the PC
Byte Description
0
1
R = 0x52
~ = 0x7E, to acknowledge that the operation was successful
STOPPING THE ADE7878 DSP
This function orders the microcontroller to stop the DSP. The microcontroller writes to the run register with 0x0.
0
1
2
Table 24. Stop ADE7878 DSP—Message from the PC to the
Microcontroller
Byte Description
O = 0x4F
N = number of bytes transmitted after this byte; N = 1
Any byte
Table 25. Stop ADE7878 DSP—Answer from the Microcontroller to the PC
Byte Description
0
1
R = 0x52
~ = 0x7E to acknowledge that the operation was successful
Rev. 0 | Page 22 of 36
Evaluation Board User Guide
UPGRADING MICROCONTROLLER FIRMWARE
Although the evaluation board is supplied with the microcontroller firmware already installed, the ADE7878 evaluation software CD provides the NXP LPC2368 microcontroller project developed under the IAR embedded workbench environment for ARM. Users in possession of this tool can modify the project at will and can download it using an
IAR J-link debugger. As an alternative, the executable can be downloaded using a program called Flash Magic, available on the evaluation software CD or at the following website: http://www.flashmagictool.com/ .
Flash Magic uses the PC COM port to download the microcontroller firmware. The procedure for using Flash Magic is as follows:
1. Plug a serial cable into connector P15 of the ADE7878 evaluation board and into a PC COM port. As an alternative, use the ADE8052Z-DWDL1 ADE downloader from Analog Devices, Inc., together with a USB cable.
2. Launch the Device Manager under Windows XP by writing devmgmt.msc into the Start/Run box. This helps to identify which COM port is used by the serial cable.
3. Plug the USB2UART board into the P15 connector of the
ADE7878 evaluation board with the VDD pin of the
USB2UART aligned at Pin 1 of P15.
4. Connect Jumper JP8. The P2.10/EINT0 pin of the microcontroller is now connected to ground.
5. Supply the board with two 3.3 V supplies at the P10 and
P12 connectors.
6. Press and release the reset button, S2, on the ADE7878 evaluation board.
7. Launch Flash Magic and do the following: a. Select a COM port (COMx as seen in the Device
Manager). b. Set the baud rate to 115,200. c. Select the NXP LPC2368 device. d. Set the interface to none (ISP). e. Set the DOscillator frequency (MHz) to 12.0. f. Select Erase all Flash + Code Rd Block. g. Choose ADE7878_Eval_Board.hex from the
\Debug\Exe project folder. h. Select Verify after programming.
The Flash Magic settings are shown in Figure 36.
UG-146
Figure 36. Flash Magic Settings
8. Click Start to begin the download process.
9. After the process finishes, extract the JP8 jumper.
10. Reset the ADE7878 evaluation board by pressing and releasing the S2 reset button.
At this point, the program should be functional, and a USB cable can be connected to the board. When the PC recognizes the evaluation board and asks for a driver, point it to the project
\VirCOM_Driver_XP folder. The ADE7878_eval_board_
vircomport.inf file is the driver.
CONTROL REGISTERS DATA FILE
Table 26 shows the order in which the control registers of the
ADE7878 are stored into a data file when you click the Save All
Regs into a file button in the All Registers Access panel.
Rev. 0 | Page 23 of 36
UG-146
Table 26. Control Register Data File Content
Line Number Register
26
27
28
29
22
23
24
25
15
16
17
18
19
20
21
11
12
13
14
7
8
9
10
1
2
3
4
5
6
37
38
39
40
41
30
31
32
33
34
35
36
AVAGAIN
BVAGAIN
CVAGAIN
AWGAIN
AWATTOS
BWGAIN
BWATTOS
CWGAIN
CWATTOS
AVARGAIN
AVAROS
BVARGAIN
BVAROS
CVARGAIN
CVAROS
AIGAIN
AVGAIN
BIGAIN
BVGAIN
CIGAIN
CVGAIN
NIGAIN
AIRMSOS
AVRMSOS
BIRMSOS
BVRMSOS
CIRMSOS
CVRMSOS
NIRMSOS
AFWGAIN
AFWATTOS
BFWGAIN
BFWATTOS
CFWGAIN
CFWATTOS
AFVARGAIN
AFVAROS
BFVARGAIN
BFVAROS
CFVARGAIN
CFVAROS
64
65
66
67
60
61
62
63
53
54
55
56
57
58
59
49
50
51
52
45
46
47
48
Line Number
42
43
44
79
80
81
82
75
76
77
78
68
69
70
71
72
73
74
Evaluation Board User Guide
Register
VATHR1
VATHR0
WTHR1
WTHR0
VARTHR1
VARTHR0
VANOLOAD
APNOLOAD
VARNOLOAD
VLEVEL
DICOEFF
HPFDIS
ISUMLVL
RUN
OILVL
OVLVL
SAGLVL
MASK0
MASK1
VNOM
LINECYC
ZXTOUT
COMPMODE
Gain
CFMODE
CF1DEN
CF2DEN
CF3DEN
APHCAL
BPHCAL
CPHCAL
CONFIG
MMODE
ACCMODE
LCYCMODE
PEAKCYC
SAGCYC
CFCYC
HSDC_CFG
LPOILVL
CONFIG2
Rev. 0 | Page 24 of 36
Evaluation Board User Guide
EVALUATION BOARD SCHEMATICS AND LAYOUT
SCHEMATIC
DEVICE INTERFACE HEADER
FDV302P
499
R41
A C
CR3
CMD28-21VGCTR8T1
FDV302P
499
R40
A C
CR2
CMD28-21VGCTR8T1
FDV302P
499
R39
A C
CR1
CMD28-21VGCTR8T1
1
2
WEILAND25.161.0253
P
C8
N
0.1UF
10UF
C7
2
R37
C6
P
C5
N
4.7UF
0.22UF
P
C4
P
C3
N
0.1UF
4.7UF
C2
10UF
C1
N
0.22UF
DVDD
VDD
AVDD
5
26
24
VDD
DVDD
AVDD AGND
PAD
DGND
25
6
PAD
P
C41
N
0.1UF
4.7UF
C40
AGND
2
Y1
1
16.384MHZ
AGND
FDV302P
499
R43
A C
CR5
CMD28-21VGCTR8T1
FDV302P
499
R42
A C
CR4
CMD28-21VGCTR8T1
RESONANT CIRCUIT. THIS OPTION SHOULD BE PLACED AS
BY DEFAULT SELECT OPTION A TO COMPLETE PARALLEL
CLOSE TO DEVICE AS POSSIBLE.
UG-146
09078-037
C38
2 1
10K
R38
1.0UF
1
2
P9
WEILAND25.161.0253
VDD_F
0.1UF
C42
0.1UF
C43
P
10UF
C44
N
C25
1
JP8N
2
BERG69157-102
22NF
Figure 37.
Rev. 0 | Page 25 of 36
UG-146
22NF
C21
22NF
C13
TBD1206
R5
TBD1206
R6
BERG69157-102
2
JP1C
1 2
BERG69157-102
JP2C
1
22NF
C14
22NF
C22
22NF
C17
22NF
C9
TBD1206
R1
TBD1206
R2
2
BERG69157-102
JP1A
1 2
BERG69157-102
JP2A
1
22NF
C10
22NF
C18
Figure 38.
22NF
C19
22NF
C11
TBD1206
R3
TBD1206
R4
BERG69157-102
2
JP1B
1 2
BERG69157-102
JP2B
1
22NF
C12
22NF
C20
22NF
C15
22NF
C23
Evaluation Board User Guide
09078-043
22NF
C24
22NF
C16
TBD1206
R7
TBD1206
R8
BERG69157-102
2
JP1N
1 2
BERG69157-102
JP2N
1
Rev. 0 | Page 26 of 36
Evaluation Board User Guide
P8
PHASE A VOLTAGE
1
2
WEILAND25.161.0253
VAP_IN
AGND
P7
PHASE B VOLTAGE
WEILAND25.161.0253
1
2
VBP_IN
AGND
P6
PHASE C VOLTAGE
WEILAND25.161.0253
1
2
VCP_IN
AGND
1
E8A
2
1500 OHMS
BERG69157-102
2
JP7A
1
R26
1M
R29
100K
AGND
1
E8B
2
1500 OHMS
1
TP12
BLK
VAP
VN
AGND
JP9A
3PIN_SOLDER_JUMPER
BERG69157-102
2
JP7B
1
R27
1M
R30
100K
1
TP11
BLK
VBP
AGND
1
E8C
2
1500 OHMS
VN
AGND
JP9B
3PIN_SOLDER_JUMPER
BERG69157-102
2
JP7C
1
R28
1M
R31
100K
1
TP10
BLK
VCP
AGND
AGND
JP9C
3PIN_SOLDER_JUMPER
VN
Figure 39.
UG-146
Rev. 0 | Page 27 of 36
UG-146 Evaluation Board User Guide
09078-038
AMP227699-2
AMP227699-2 1
1 1 BLK
AMP227699-2
0.1UF
0.1UF
0.1UF
C83
C76
C73
0.1UF
0.1UF
0.1UF
0.1UF
C75
C72
C82
C81
C80
C84
C77
0.1UF
0.1UF
0.1UF
VDD_3V3_3
VDD_3V3_4
VDD_3V3_1
VDD_3V3_2
VDD_DCDC_3V3_2
VDD_DCDC_3V3_3
VDD_DCDC_3V3_1
C79
P
C78
N
10UF
0.1UF
10K
10K
R73
R75
R72
10K
R71
10K
1
1 1
1
1
1
1
1
1
R83
10K
Figure 40.
Rev. 0 | Page 28 of 36
Evaluation Board User Guide
VDD2
<- DUT
ISOLATION CIRCUIT
R48
VE2_U3 R49
10K
10K
RESETB
PM0
PM1
CF1_ISO
U3
VDD2 VDD1
14
13
12
6
VOA
VOB
VOC
VE1
VE2
VIA
VIB
VIC
VOD
GND2
VID
GND1
3
4
7
10
5
11
VE2_U3
RESB_CTRL
PM0_CTRL
PM1_CTRL
CF1
ADUM1401BRWZ
IRQ_IN_EN
IRQ0B
IRQ1B
CF2
SBENB_ISO
U4
7
10
VDD1 VDD2
VE1
VE2
3
4
VIA
VIB
VOA
VOB
5
11
VIC
VID
VOC
VOD
14
13
12
6
GND1 GND2
IRQ_IN_EN
IRQ0B_ISO
IRQ1B_ISO
CF2_ISO
SB_ENB
ADUM1401BRWZ
U5
IRQ0B
IRQ1B
WP_UX
14
13
12
6
VDD2 VDD1
VOA
VOB
VOC
VOD
7
VE1
VE2
10
3
VIA
VIB
VIC
11
VID
4
5
ADUM1401BRWZ
GND2 GND1
IRQ_OUT_EN
IRQ0B_ISO
IRQ1B_ISO
WP
MCU_VDD
MCU ->
VE2_U6
MISO/HSD
CF3/HSCLK
HSACTIVE
IRQ_OUT_EN_ISO
U6
VDD1 VDD2
7
VE1
10
VE2
3
VIA VOA
4
VIB VOB
5
VIC VOC
11
VID
GND1
VOD
GND2
14
13
12
6
VE2_U6
MISO_HSD_ISO
CF3_HSCLK_ISO
HSA_ISO
IRQ_OUT_EN
ADUM1401BRWZ
U7
SSB
MOSI
SCLK
14
13
12
6
VDD2 VDD1
VOA
VOB
VOC
VOD
7
VE1
VE2
10
3
VIA
VIB
VIC
11
VID
4
5
ADUM1401BRWZ
GND2 GND1
SSB_ISO
MOSI_ISO
SCLK_ISO
SDA
DGND
JP35
0 DNI
MOSI/SDA
SCL
JP33
0 DNI
SCLK/SCL
JP31
HSACTIVE
0 DNI
I2C/HSDC CONFIG
SSB/HSA
1
JP36
2
MOSI
0
1
JP34
2 SCLK
0
1
JP32
2
SSB
0
SPI CONFIG
SCL
SDA
R58A
10K
R58B
10K
SDA
SCL
R59A
SCL_ISO
10K
R59B
SDA_ISO
2
3
1 8
A2
VDD1 VDD2
SDA1 SDA2
7
6
SCL1 SCL2
GND1 GND2
4 5
10K
ADUM1250ARZ
SDA_ISO
SCL_ISO
HSDATA_ISO
JP37
0 DNI
I2C/HSDC CONFIG
MISO_HSD_ISO
Figure 41.
GND
1
JP38
2
MISO_ISO
0
SPI CONFIG
Rev. 0 | Page 29 of 36
UG-146
UG-146
ALIGN PORTS AS DRAWN NEXT TO MCU SIDE WITH PINS76 - 100
Evaluation Board User Guide
09078-039
LEFT MOST PINS SHOULD BE FURTHEST FROM DUT
2 1
2
JP9
1
Figure 42.
Rev. 0 | Page 30 of 36
Evaluation Board User Guide
CURRENT MEASUREMENT - DO NOT INSTALL
VDD2
R61 VREF_ISNS
100K
DNI DO NOT INSTALL
VDD_F
R60
4.02K
DNI
A4
3
2
1
RGA
VCC
10
9
RGB
GND
8
6
7
EN
VREF
VO
VFB
4
AD8553ARMZ
DNI
5
DNI
DNI
P17
ISNS_OUT
1
2
WEILAND25.161.0253
DNI
VDD
DGND
R63
200K
DNI
C63
DGND
560PF
DNI
SELF BOOT EEPROM
FACTORY USE ONLY VDD2
A3
4
VDD
SBSCL
1
D
S2
8
S1
2
SBCON
IN
6
SB_ENB
1
A0
2
3
A1
A2
U2
DGND
R64
8
10K
VCC 7
WP_UX
WP
6
SBSCL
SCL
5
SBSDA
SDA
VSS
4
MICRO24LC128-I-SN
DNI
DGND
GND
3
ADG820BRMZ
DNI
SBCON
SBSDA
VDD2
DO NOT POPULATE U2
Figure 43.
2
JP60
1
0
2
JP61
1
0
IRQ0B
IRQ1B
P16
1
2
3
MOLEX22-03-2031
UG-146
Rev. 0 | Page 31 of 36
UG-146
LAYOUT
Evaluation Board User Guide
Figure 44.
Figure 45.
Rev. 0 | Page 32 of 36
Evaluation Board User Guide UG-146
Figure 46.
Figure 47.
Rev. 0 | Page 33 of 36
37
1
5
1
2
1
1
2
52
1
5
1
5
6
1
1
5
8
11
2
1
1
8
12
3
3
39
UG-146
ORDERING INFORMATION
BILL OF MATERIALS
1
4
20
30
4
3
2
2
4
5
Table 27.
Qty Designator
1 A1
A2
C1, C8, C44, C78
C9 to C25, C32 to C34
C2, C7, C40, C42, C43, C48 to C59,
C61, C62, C72, C73, C75 to C77, C79 to C84
C26, C27, C70, C71
C3, C5, C41
C38, C74
C4, C6
CF1 to CF3, CLKIN
CR1 to CR5
Description
IC-ADI, 1.2 V, ultralow power, high PSRR voltage reference
IC swappable dual isolator
Capacitor, tantalum, 10 μF
Capacitor, ceramic, 22 nF
Capacitor, chip, X7R 0805, 0.1 μF
Capacitor, mono, ceramic, C0G, 0402, 20 pF
Capacitor, tantalum, 4.7 μF
Capacitor, ceramic chip, 1206, X7R, 1.0 μF
Capacitor, ceramic, X7R, 0.22 μF
Connector, PCB coax, BNC, ST
Diode, LED, green, SMD
1
12
LED, green, surface mount
Inductor, chip, ferrite bead, 0805, 1500 Ω
Evaluation Board User Guide
Analog Devices, Inc./ADR280ARTZ
Analog Devices, Inc./ADUM1250ARZ
AVX
AVX
Murata
Murata
AVX
Taiyo Yuden
Phycomp (Yageo)
AMP (Tyco)/227699-2
Chicago Mini Lamp (CML Innovative
Technologies)/CMD28-21VGCTR8T1
LUMEX/SML-LXT0805GW-TR
Murata
CR6
E1A, E1B, E1C, E1N, E2A, E2B, E2C,
E2N, E8A, E8B, E8C, E8N
JP2, JP7 to JP10, JP1A to JP8A, JP1B to JP8B, JP1C to JP8C, JP1N to JP8N
JP11, JP12, JP9A, JP9B, JP9C
JP32, JP34, JP36, JP38, JP60, JP61
P1 to P10, P12
P11, P38
P13
P14
P15
P16
Q1 to Q5
R1 to R8
R9 to R16
R17 to R25, R32 to R34
R26 to R28
R29 to R31
R35, R36, R38, R44 to R57, R64 to
R66, R68 to R76, R78, R82 to R86,
R58A, R58B, R59A, R59B
R37
R39 to R43
R77
R79, R80
R81
RSB
S1, S2
TP1 to TP18, TP22 to TP55
U1
U3 to U7
U8
Connector, PCB Berg jumper, ST, male 2-pin
3-pin solder jumper
Resistor jumper, SMD 0805 (open), 0 Ω
Connector, PCB TERM, black, 2-pin, ST
Connector, PCB, header, SHRD, ST, male 32-pin
Connector, PCB, Berg, header, ST, male 20-pin
Connector, PCB, USB, Type B, R/A, through hole
Connector, PCB, Berg, header, ST, male 4-pin
Connector, PCB straight header 3-pin
Trans digital FET P channel
Do not install (TBD_R1206)
Resistor, PREC, thick film chip, R1206, 100 Ω
Resistor, PREC, thick film chip, R0805, 1 kΩ
Resistor, MF, RN55, 1 M
Resistor, MF, RN5, 100 kΩ
Resistor PREC thick film chip, R0805, 10 kΩ
Berg/69157-102
N/A
Panasonic
WeilandD/25.161.0253
Samtec/TSW-1-30-08-G-D
Samtec/TSW-110-08-G-D
AMP (Tyco)/4-1734376-8
Samtec/TSW106-08-G-S
Molex/22-03-2031
Fairchild/FDV302P
N/A
Panasonic
Panasonic
Vishay-Dale
Vishay-Dale
Panasonic
Resistor, film, SMD 0805, 2 Ω
Resistor, PREC, thick film chip, R1206, 499
Resistor, film, SMD, 0805, 680 Ω
Resistor, film, SMD, 1206, 27 Ω
Resistor, PREC, thick film chip, R1206, 1.5 kΩ
Resistor, jumper, SMD, 1206 (open), 0
Panasonic
Panasonic
Multicomp
Yageo-Phycomp
Panasonic
Panasonic
SW SM mechanical key switch
Connector, PCB, test point, black
Omron/B3S1000
Components Corporation
IC-ADI, polyphase, multifunction, energy metering IC Analog Devices, Inc./ADE7878CPZ
IC-ADI quad channel digital isolator Analog Devices, Inc./ADum1401BRWZ
IC ARM7, MCU, flash, 512 kΩ, 100 LQFP NXP/LPC2368FBD100
Rev. 0 | Page 34 of 36
Evaluation Board User Guide
2
1
2
1
4
1
20
1
Qty Designator
1 Y1
1
1
Y2
A3
1
1
A4
C63
JP31, JP33, JP35, JP37
P17
P18 to P37
R60
R61, R62
R63
TP61, TP62
U2
UG-146
Description
IC crystal, 16.384 MHz
IC crystal quartz, 12.000 MHz
IC-ADI 1.8 V to 5.5 V 2:1 MUX/SPDT switches
Valpey Fisher Corporation
ECS
Analog Devices, Inc./ADG820BRMZ
IC-ADI 1.8 V to 5 V auto-zero in amp with shutdown Analog Devices, Inc./AD8553ARMZ
Capacitor, ceramic, NP0, 560 pF Phycomp (Yageo)
Resistor, jumper, SMD, 0805 (SHRT), 0
Connector, PCB, TERM, black, 2-pin, ST
Connector, PCB, Berg, header, ST, male 5-pin
Resistor, PREC, thick film chip, R0805, 4.02 kΩ
Resistor, PREC, thick film chip, R0805, 100 kΩ
Resistor, PREC, thick film chip, R1206, 200 kΩ
Connector, PCB test point, black
IC, serial EEPROM, 128 kΩ, 2.5 V
Panasonic
Weiland/25.161.0253
Samtec/TSW106-08-G-S
Panasonic
Panasonic
Panasonic
Components Corporation
Microchip/24LC128-I-SN
Rev. 0 | Page 35 of 36
UG-146 Evaluation Board User Guide
NOTES
I 2 C refers to a communications protocol originally developed by Philips Semiconductors (now NXP Semiconductors).
ESD Caution
ESD (electrostatic discharge) sensitive device. Charged devices and circuit boards can discharge without detection. Although this product features patented or proprietary protection circuitry, damage may occur on devices subjected to high energy ESD. Therefore, proper ESD precautions should be taken to avoid performance degradation or loss of functionality.
Legal Terms and Conditions
By using the evaluation board discussed herein (together with any tools, components documentation or support materials, the “Evaluation Board”), you are agreeing to be bound by the terms and conditions set forth below (“Agreement”) unless you have purchased the Evaluation Board, in which case the Analog Devices Standard Terms and Conditions of Sale shall govern. Do not use the Evaluation Board until you have read and agreed to the Agreement. Your use of the Evaluation Board shall signify your acceptance of the Agreement. This Agreement is made by and between you (“Customer”) and Analog Devices, Inc.
(“ADI”), with its principal place of business at One Technology Way, Norwood, MA 02062, USA. Subject to the terms and conditions of the Agreement, ADI hereby grants to Customer a free, limited, personal, temporary, non-exclusive, non-sublicensable, non-transferable license to use the Evaluation Board FOR EVALUATION PURPOSES ONLY. Customer understands and agrees that the Evaluation Board is provided for the sole and exclusive purpose referenced above, and agrees not to use the Evaluation Board for any other purpose. Furthermore, the license granted is expressly made subject to the following additional limitations: Customer shall not (i) rent, lease, display, sell, transfer, assign, sublicense, or distribute the Evaluation Board; and (ii) permit any Third Party to access the Evaluation Board. As used herein, the term
“Third Party” includes any entity other than ADI, Customer, their employees, affiliates and in-house consultants. The Evaluation Board is NOT sold to Customer; all rights not expressly granted herein, including ownership of the Evaluation Board, are reserved by ADI. CONFIDENTIALITY. This Agreement and the Evaluation Board shall all be considered the confidential and proprietary information of ADI. Customer may not disclose or transfer any portion of the Evaluation Board to any other party for any reason. Upon discontinuation of use of the Evaluation Board or termination of this Agreement, Customer agrees to promptly return the Evaluation Board to ADI. ADDITIONAL RESTRICTIONS. Customer may not disassemble, decompile or reverse engineer chips on the Evaluation Board. Customer shall inform ADI of any occurred damages or any modifications or alterations it makes to the Evaluation Board, including but not limited to soldering or any other activity that affects the material content of the Evaluation Board.
Modifications to the Evaluation Board must comply with applicable law, including but not limited to the RoHS Directive. TERMINATION. ADI may terminate this Agreement at any time upon giving written notice to Customer. Customer agrees to return to ADI the Evaluation Board at that time. LIMITATION OF LIABILITY. THE EVALUATION BOARD PROVIDED HEREUNDER IS PROVIDED “AS IS” AND ADI MAKES NO
WARRANTIES OR REPRESENTATIONS OF ANY KIND WITH RESPECT TO IT. ADI SPECIFICALLY DISCLAIMS ANY REPRESENTATIONS, ENDORSEMENTS, GUARANTEES, OR WARRANTIES, EXPRESS OR IMPLIED, RELATED
TO THE EVALUATION BOARD INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, TITLE, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT OF INTELLECTUAL
PROPERTY RIGHTS. IN NO EVENT WILL ADI AND ITS LICENSORS BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES RESULTING FROM CUSTOMER’S POSSESSION OR USE OF
THE EVALUATION BOARD, INCLUDING BUT NOT LIMITED TO LOST PROFITS, DELAY COSTS, LABOR COSTS OR LOSS OF GOODWILL. ADI’S TOTAL LIABILITY FROM ANY AND ALL CAUSES SHALL BE LIMITED TO THE
AMOUNT OF ONE HUNDRED US DOLLARS ($100.00). EXPORT. Customer agrees that it will not directly or indirectly export the Evaluation Board to another country, and that it will comply with all applicable
United States federal laws and regulations relating to exports. GOVERNING LAW. This Agreement shall be governed by and construed in accordance with the substantive laws of the Commonwealth of
Massachusetts (excluding conflict of law rules). Any legal action regarding this Agreement will be heard in the state or federal courts having jurisdiction in Suffolk County, Massachusetts, and Customer hereby submits to the personal jurisdiction and venue of such courts. The United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement and is expressly disclaimed.
©2010 Analog Devices, Inc. All rights reserved. Trademarks and
registered trademarks are the property of their respective owners.
UG09078-0-8/10(0)
Rev. 0 | Page 36 of 36
Advertisement
Key features
- Evaluation board designed for 3-phase energy meter
- Easy connection of external transducers
- Easy modification of signal conditioning components
- LED indicators on outputs
- Optically isolated metering components
- USB-based communication with PC
- External voltage reference option
- PC COM port-based firmware updates
- High accuracy, 3-phase electrical energy measurement IC
- Three flexible pulse outputs