Professional Documents
Culture Documents
Design
Using the MK30X256, MC1322x, and MAG3110
Contents
Section Number
Title
Page
Chapter 1
Introduction
1.1 Overview..........................................................................................................................................................................7
1.2 General platform features.................................................................................................................................................8
1.2.1 Hardware design features .....................................................................................................................................8
1.2.2 Software features of the design..............................................................................................................................9
1.3 MK30X256 microcontroller series...................................................................................................................................9
1.3.1 Peripheral application usage..................................................................................................................................11
1.4 1322x Low Power Node (LPN)........................................................................................................................................13
1.5 MAG3110 3-axis digital magnetometer...........................................................................................................................15
Chapter 2
Basic Theory
2.1 Definition of terms...........................................................................................................................................................17
2.1.1 Power.....................................................................................................................................................................17
2.1.2 Energy....................................................................................................................................................................19
2.1.3 Power factor...........................................................................................................................................................19
2.2 Electricity distribution......................................................................................................................................................20
2.3 Electricity meters..............................................................................................................................................................21
2.3.1 Electromechanical meters......................................................................................................................................22
2.3.2 Electronic meters...................................................................................................................................................22
2.4 Voltage and current measurement....................................................................................................................................24
2.4.1 Voltage divider......................................................................................................................................................25
2.4.2 Shunt resistor.........................................................................................................................................................26
2.4.3 Current transformer...............................................................................................................................................26
2.4.4 Rogowski coil........................................................................................................................................................28
Section Number
Title
Page
Chapter 3
System Concept
3.1 Application description....................................................................................................................................................29
3.1.1 Metering board.......................................................................................................................................................30
3.1.2 Switch Mode Power Supply board connection......................................................................................................33
3.1.3 External current sensor connection........................................................................................................................34
3.1.4 1322x-LPN connection..........................................................................................................................................35
3.1.5 Power meter case...................................................................................................................................................35
3.2 Application usage.............................................................................................................................................................37
3.2.1 Power meter hardware configuration.....................................................................................................................37
Chapter 4
Hardware Design of the Metering Board
4.1 Introduction to hardware implementation........................................................................................................................39
4.2 Power supply section .......................................................................................................................................................39
4.3 Digital hardware ..............................................................................................................................................................41
4.3.1 MCU core..............................................................................................................................................................41
4.3.2 RS232 interface.....................................................................................................................................................41
4.3.3 Infrared interface (IEC1107).................................................................................................................................42
4.3.4 Open collector interface.........................................................................................................................................43
4.3.5 LED interface.........................................................................................................................................................43
4.3.6 SPI interface...........................................................................................................................................................44
4.3.7 Magnetometer interface.........................................................................................................................................44
4.3.8 I2C interface..........................................................................................................................................................45
4.3.9 MRAM interface....................................................................................................................................................45
4.4 Signal conditioning ..........................................................................................................................................................46
4.4.1 Voltage measurement............................................................................................................................................46
4.4.2 DC bias connection................................................................................................................................................47
4.4.3 Shunt resistor current measurement.......................................................................................................................48
4.4.4 Zero-cross detection circuit...................................................................................................................................49
Section Number
Title
Page
Chapter 5
Application Set-Up
5.1 Setting-Up the Demo Hardware ......................................................................................................................................51
5.2 Setting up the software demo...........................................................................................................................................53
5.2.1 FreeMASTER data visualization ..........................................................................................................................53
5.2.2 ZigBee communication .........................................................................................................................................55
Chapter 1
Introduction
1.1 Overview
This design reference manual describes the solution for a single-phase electricity meter
based on the MK30X256 microcontroller (MCU). The design demonstrates the
capabilities of this MCU for electricity metering applications. There are also additional
Freescale components used in this design, including the RF (ZigBee) and magnetometer
solution (interface).
The reference design provides a high performance solution for power measurement in
single phase two-wire installations. The target market is residential metering. The
reference design has the ability to connect to a ZigBee network thanks to the integrated
1322x low power node, hence it can easily become part of the smart grid network.
Besides this development, this design uses the MQX real time operating system, to
improve the code structure and to serve as a proof of concept for true real-time
applications, such as a power meter. Because of the MQX, this power meter is designed
for use in advanced markets.
In addition, two measurement methods are explored, implemented, and compared in this
reference design (FFT, filter-based method). This reference design manual describes only
the hardware solution for the power meter. Software solutions, mainly metering
algorithms, are described in associated documents, like application note AN4255, FFTbased Algorithm for Metering Applications.
The power meter reference design is prepared for use in a real customer metering area, as
suggested by its implementation of a Human Machine Interface (HMI) and
communication interfaces for remote data collecting. Finally, it provides both hardware
and software solutions for customer applications.
Chapter 1 Introduction
Chapter 1 Introduction
11
Chapter 1 Introduction
2.4 GHz wireless nodes compatible with the IEEE 802.15.4 standard
Based on the MC13224V Platform in a Package (PiP)
Hardware acceleration for both the IEEE 802.15.4 MAC and AES security
Printed F antenna
Over-the-air data rate of 250 kbit/s
Typical range (outdoors, line of sight) is 300 meters
Onboard expansion capabilities for external application-specific development
activities
Programmable flash memory
JTAG port for reprogramming and in-circuit hardware debugging
Buttons and LEDs for demonstration and control
Connections for battery or external power supply
The core of the 1322x low power node is the Freescale MC1322x 99-pin LGA Platformin-Package (PiP) solution that can be used for wireless applications ranging from simple
proprietary point-to-point connectivity to complete ZigBee mesh networking. The
MC1322x is designed to provide a highly-integrated, total solution, with premier
processing capabilities and very low power consumption. A full 32-bit ARM7TDMI-S
core operates up to 26 MHz. The RF radio interface provides for low cost and high
density as shown in Figure 1-2.
13
As described above, the 1322x low power node is used for connecting an MK30X256
power meter to a ZigBee network. ZigBee, an IEEE 802.15.4 standards-based solution, as
defined by ZigBee Alliance, was developed specifically to support sensing, monitoring,
and control applications. The ZigBee solution offers significant benefits, such as low
power, robust communication, and a self-healing mesh network. The ZigBee solution
frequencies are typically in the 868/915 MHz or 2.4 GHz spectrums.
The ZigBee data rate for technology solutions is 250 Kbps. ZigBee technology
theoretically supports up to 65,000 nodes. Common applications in sensing, monitoring,
and control, which are best supported by a ZigBee technology solution include:
Chapter 1 Introduction
15
Chapter 2
Basic Theory
2.1 Definition of terms
This section defines basic terms of electricity metering theory.
2.1.1 Power
AC power flow has three components: real power (P) measured in watts (W), apparent
power (S) measured in volt-amperes (VA), and reactive power (Q) measured in reactive
volt-amperes (VAr).
Active power (P), also known as real or working power, is the power that actually powers
the equipment. As a rule, true power is a function of a circuit's dissipative elements,
usually resistances (R).
Reactive power (Q) is a concept used by engineers to describe the loss of power in a
system arising from the production of electric and magnetic fields. Although reactive
loads such as inductors and capacitors dissipate no power, they drop voltage and draw
current, creating the impression that they actually do. This imaginary power or nonworking power is called reactive power (Q). If the load is purely inductive or capacitive,
then the voltage and current are 90 degrees out of phase (for a capacitor, current leads
voltage; for an inductor, current lags voltage) and there is no net power flow. This energy
flowing backwards and forwards is known as reactive power. Reactive power is thus
produced for system maintenance and not for end-use consumption. By convention, a
"lagging," or inductive load, such as a motor, will have positive reactive power. A
"leading," or capacitive load, has negative reactive power. Reactive power is a function
of a circuit's reactance (X).
17
Definition of terms
Apparent power (S) is the vector summation of active and reactive power. It is the
product of a circuit's voltage and current, without reference to phase angle. Apparent
power is a function of a circuit's total impedance (Z).
A common utility system is often based on total apparent power (Stot) measured also in
volt-amperes (VA). Total apparent power is a product of the RMS voltage and RMS
current, and is defined as:
2.1.2 Energy
Energy is the accumulated power over a period of one hour.
Active energy means the electrical energy produced, flowing, or supplied by an electric
circuit during a time interval, being integral with respect to time of the instantaneous
active power and measured in units of watt-hours (Wh). For practical use in power
meters, a higher unit called a kilowatt-hour (kWh) is used, which is 1000 watt-hours
(Wh).
Apparent energy means the integral with respect to time of the apparent power. Kilovoltampere-hour (kVAh) is the unit for total (apparent) energy.
Reactive energy means the integral with respect to time of the reactive power. Kilovoltampere-reactive-hour (kVArh) is the unit for reactive (non-working) energy.
19
Electricity distribution
21
Electricity meters
User
Selection
voltage
current
analog
Signal
Conditioning
AFE
digital
MCU
ADC
LCD
AMR
Communications
Figure 2-3. Basic outline of the electronic power meter
The signal conditioning circuitry is used for adapting a high-amplitude signal from the
line to a lower one accepted by the Analog Front End (AFE) and Analog-to-Digital
Converter (ADC).
The metering engine is given the voltage and current inputs, has a voltage reference,
samplers, and quantizers followed by an ADC section to yield the digitized equivalents of
all the inputs. All of this is sometimes called the Analog Front End (AFE). These inputs
are then processed using a DSP or MCU to calculate the various metering parameters
such as powers, energies, and so on.
The processing and communication section has the responsibility of calculating the
various derived quantities from the digital values generated by the metering engine. This
also has the responsibility of communication using various protocols and interfaces with
other add-on modules connected as slaves.
RTC and other add-on modules are attached as slaves to the processing and
communication section for various input and output functions. On a modern meter, most,
if not all, of this is implemented inside the microprocessor, such as the Real Time Clock
(RTC), LCD controller, temperature sensor, memory, and analog-to-digital converters.
One of the important features of the modern electronic power meter is automatic meter
reading (AMR) technology. AMR is the technology of automatically collecting
consumption, diagnostic, and status data from energy metering devices and transferring
that data to a central database for billing, troubleshooting, and analyzing. This advance
mainly saves utility providers the expense of periodic trips to each physical location to
MQX-Enabled MK30X256 Single-Phase Electricity Meter Reference Design, Rev. 0
Freescale Semiconductor, Inc.
23
read a meter. Another advantage is that billing can be based on near real-time
consumption rather than on estimates based on previous or predicted consumption. This
timely information, coupled with analysis, can help both utility providers and customers
to better control the use and production of electric energy. Electronic meters with AMR
technology can read and communicate through several mechanisms such as:
Infrared
Radio frequency
Data modem (via a telephone line)
Power line carrier
Serial port (RS-485)
Broadband
AMR meters often have sensors that can report the meter cover opening, magnetic
anomalies, extra clock setting, stuck buttons, inverted installation, reversed or switched
phases, and so on. These events may be immediately sent to the utility company thanks to
AMR technology.
Smart meters go a step further than simple AMR. They offer an additional function,
including a real-time or near real-time reading, power outage notification, and power
quality monitoring. They allow price setting agencies to introduce different prices for
consumption based on the time of day and the season. The feedback they provide to
consumers has also been shown to cut overall energy consumption.
In comparison to the traditional mechanical or electromechanical power meter solution,
the electronic meters offer the utility market several additional advantages including:
The voltage sensor results in a sine wave with a fundamental frequency of typically either
50 or 60 Hz depending upon the power distribution used. See Section 2.2 Electricity
distribution.
For current measurement, the sensor provides a fundamentally sinusoidal signal (possibly
with harmonics), which may lag or lead the voltage signal depending upon the load.
A typical simplified configuration for metering voltage and current in a 1-phase 2-wire
installation is shown in Figure 2-4. There are three typical sensors used for sensing
current and voltage in power meters. All of these sensors are also used in the electronic
power meter described in this manual.
The following sections describe the commonly used methods for sensing the voltage and
current used in electronic power meters.
25
Where Vin is the phase voltage and Vout is the voltage measured by the ADC (voltage
drop at R2).
The voltage divider can be selected to more closely meet the specification of the ADC.
27
Chapter 3
System Concept
3.1 Application description
A standard system block diagram of the MK30X256 power meter concept is shown in
Figure 3-1. The full-metering system solutionthat is, all the components within the
outer black-dashed rectangleincorporates the following parts:
Metering board (inside the diagram's inner black-dashed rectangle). The main
metering engine, this is the concentrated majority of metering components.
Switch Mode Power Supply boardv(SMPS). This board is used for supplying the
metering engine and the 1322x-LPN daughter card.
External current sensor (shunt resistor). Located directly at the line power connector
inside the metering case.
1322x-LPN. Daughter card for ZigBee communication.
Power meter case with an integrated line power connector and an RS232
communication connector.
Some common parts of the power meter in the block diagram have the same color for
better function identification. The voltage signal conditioning and current sensor, for
instance, are colored red. See Figure 3-1. There is one current sensor in the power meter
(shunt resistor), that is located near the line power connector inside the terminal
compartment of the power meter case, outside the metering board. There is a voltage
measurement signal conditioning part (voltage divider) that is located directly on the
metering board.
29
Application description
RS232
interface
Display
LED KWh
LED KVArh
OC interface
MRAM
Battery
Tamper 1
MCU
JTAG interface
User Button
Magnetometer
interface
Crystal
Infrared
interface
Shunt
interface
VBIAS
selection
User LED
Mains
interface
Voltage
conditioning part
Tamper 2 interface
Power supply interface
RS232
interface
OC
interface
Current
conditioning part
I2C
interface
SPI
interface
31
Application description
The core of the metering engine placed on the top side of the board is the MK30X256, a
32-bit ARM Cortex-M4 MCU. (For a description, see Section 1.3 MK30X256
microcontroller series.) All of the MCU peripherals used in the application, except for the
JTAG interface, are pictured in the block diagram in Figure 3-1.
A simplified function of the MCU in the application is as follows:
The ADC, which is a part of the MCU, reads data from voltage and current sensors. The
MCU computes other values such as powers, energies, power factor, and line frequency
consecutively. Moreover, the MCU communicates with the user through the built-in HMI
(LCD and button) or several communication interfaces (RS232, ZigBee, IEC1107, LEDs,
OC). A description of the metering algorithm is beyond the scope of this design reference
manual, but is described in application note AN4255, FFT-based Algorithm for Metering
Applications.
The HMI of this power meter is comprised of the following parts: an LCD, a push-button,
and one (red) LED. The LCD displays plenty of computed values, such as the RMS value
of line voltage and current, powers, energies, power factor, line frequency, and also the
actual time and date. The push-button allows you to select one of these values to be
shown on the LCD.
NOTE
There is only one main value shown on the LCD at a time.
The next important part of the metering engine board is signal conditioning. This part is
used for adapting the signal level from sensors to the AFE (part of the MCU including the
ADC and PGA). There are two different types of signal conditioning with regards to
sensors used: the part for voltage measurement is made of a simple voltage divider. The
part for current measurement via a shunt resistor is made from a simple resistor bridge,
which is used for shifting the signal on the shunt above 0 V. Thanks to the internal PGA,
no external operational amplifier is needed.
There are several communication interfaces on the metering board. The interface for
RS232 is optically isolated by optocouplers, and the interface for the IEC1107 is optically
isolated by infrared components. The open-collector is an optically-isolated output of the
power meter; this may be used for switching some small loads. One of the most
interesting types of communication in this power meter is RF or ZigBee. Communication
through RF/ZigBee is accomplished by the external 1322x-LPN daughter card (outside
the metering engine), which communicates with the metering board through the I2C
interface. Finally, two red LEDs are used for optical communication with the utility
service provider. This is the energy output interface; the first LED here is for active
energy counting and the second LED is for reactive energy counting.
The essential parts of the metering board are components for the proper functioning of
the MCU's real-time clock (RTC), including the 3 V battery (for saving date and time)
and crystal. Two hidden tamper buttons recognize any illegal opening of the cover or
terminal compartment section of the meter, one soldered directly on the metering board,
and the second outside of the board in the terminal compartment section.
The power meter also offers another method of tamper detection through the use of a 3axis I2C magnetometer (the MAG3110 silicon may be used for this). The MK30X256
power meter does not currently use this type of tamper detection; however, the interface
for it is now prepared. An illegal cover opening can cause a 3-axis motion that is detected
by the magnetometer and interpreted as an illegal opening by an algorithm sophisticated
enough to distinguish it from the ordinary motions of the meter. But this type of operation
is optional, since the tamper push-buttons are used for tamper detection.
+3.7V
N_inp
L_inp
GND
33
Application description
NOTE
Default output voltage level for this type of SMPS is 3.3 V.
Other output voltage levels are adjusted by small trimmer on
the SMPS board (in the 3.03.6 V range, approximately) or by
adding an SMD resistor in parallel to the output voltage divider
on the SMPS board (27 k for +3.7 V).
GND
L_inp
L_out
NOTE
There is also a separated ground terminal (GND) in the sense
connection area for the metering board ground connection. This
ground terminal is located on the same side as the power phase
input (L_inp).
Power
connection
arrea
35
Application description
Metering Board
Flat cable +
RS232 connector
Neutral
1322x-LPN
daughter card
Phase output
Phase input
Shunt Resistor
Mounting hole
Mounting hole
SMPS
Figure 3-7 shows a photo of the metering case without either of the transparent covers.
You can see the boards and the current sensor placements. There are also four power
terminals in the terminal compartment section; the first is for phase input, the second is
for phase output, and the remaining two terminals are for neutral connections. The main
metering board is mounted onto four plastic columns (spacers) on the front side of the
power meter case. On the left side of the case, there is the SMPS, and on the bottom side
of the case there is the 1322x-LPN daughter card. The shunt sensor is soldered directly
between the two left power terminals, namely the phase input (L_inp) and the phase
output (L_out). On the right side of this case, there is an RS232 connector, which is
connected to the main board by a thin 9-pin flat cable.
Display
RS232 connector
Open-collector output
Battery
User LED
37
Application usage
Pedestal
Metering
engine
Outlet
Terminal
compartment
Although the current range of this power meter is internally set for a measurement of up
to 60 A, for practical use this range is reduced to approximately 16 A, adequate for
demonstration purposes. This is due to a maximum current rating of the outlet and the
plug used. For those who want to use the entire metering range of up to 60 A, both the
plug and outlet must be replaced by more powerful ones.
For remote data communication, either the RS232 port or the in-built ZigBee node may
be used .
NOTE
An open-collector communication interface is not directly
accessible.You must first open the cover of the case to access
its connections.
Chapter 4
Hardware Design of the Metering Board
4.1 Introduction to hardware implementation
This chapter describes the design of the application hardware, that is, the design of the
metering board (engine). The main hardware is divided into two main parts, digital
hardware (HW) and analog hardware. Analog hardware is also called signal conditioning
in this manual. Digital hardware is configurable depending on the customer request, from
a low-cost solution to a high-performance (full) configuration. The stand-alone section of
the metering board is the power supply section, and this is a mandatory part of each
configuration of the power meter.
With regards to various digital hardware configurations, there are also various power
meter configurations. These power meter configurations are differentiated:
Full power meter configuration. For a schematic view, see Figure A-1. For layout
views, see Figure B-1 and Figure B-2. For the BOM, see Table C-1.
Low-cost power meter configuration with only the necessary components. For a
schematic view, see Figure A-2. For layout views, see Figure B-3 and Figure B-4.
For the BOM, see Table C-2.
39
As you can see, there is a simple overvoltage protection including the Zener diodes D12
and D13. These diodes protect against a reversal of polarity.
The power supply section of the metering board produces four power supply levels for
individual blocks of the metering board:
Some circuits in the design require two separated power supply levels, a digital and an
analog power supply. The analog power supply level of the MCU is separated from its
digital power supply by the chip inductor L2 with cooperation of filters C45C47. The
analog power supply level of the DC bias circuit is separated from the digital part of the
power supply by the chip inductor L1 with cooperation of filters C37C39. Power supply
levels for the peripherals and for the MCU are separated by diode D11. Because of this,
the peripherals are not powered in the case of a power outage (in this case, only the MCU
is powered, via the 3 V battery). The voltage drop on this diode is approximately 0.4 V;
therefore, analog and digital voltage levels for peripherals are far above this voltage level
in comparison to voltage levels at the MCU.
There are two separated grounds in the design, a digital ground (GND) and an analog
ground (GNDA). Both of these grounds are joined together through the chip inductor
marked L3 in the schematic.
1uH
C37
VDD
B
A
C39
BT1
GNDA
2
1
C38
BATTERY
GND
1
3V
CON_2_TB
GND GND
C40
47UF
GND
GND
TP13
VDD
C41
0.1UF
GND
TP15
GNDA
BAT54CLT1
C42
100PF
TP10
TP17
3.3V VDDMCU
3
VDDAMCU
GND
VDDA
D11
3V
3.6V
D12
MMSZ5231BT1G
J4
VDDA
L1
1
C43
C44
L2
L3
1
MMSZ5231BT1G
R31
47K
D13
0.1UF 10UF
R30
10K
1uH
1uH
3.3V
C45
C46
0.1UF
100PF
GNDA
TP12
VDDMCU
GND
47UF
TP11
VDDAMCU
TP14
TP16
VCC_PRESENT
+ C47
GNDA
The presence of an external power supply level (from the SMPS) is shown through a
simple voltage divider (R30, R31) in the power supply section. Logic 0 on the
VCC_PRESENT pin means there is a power outage. In this case, the metering board is
supplied from the internal 3 V battery, and the software causes a power down for most of
the MCU peripherals.
NOTE
The peripheral supply voltage level on the metering board is the
same as that of the external SMPS. The MCU supply voltage
level is consequently lower around the voltage drop on diode
D11.
41
Digital hardware
(+12V)
390
D6
ISO2
2.2UF
+
3
RS232_TXD
RS232_RXD
C15
2
R19
470
1 1
SFH6106-4
D9
J8
D7
1
SFH6106-4
MMSD4148T1G
4
2
R16
1.0K
RTS
R13
4.7K
VDD
MMSD4148T1G
R12
RXD
TXD
DTR
GND
1
3
5
7
9
2
4
6
8
10
CON_2X5
MMSD4148T1G
GND
TP8
VDD
TSAL4400
GND
D10
OP506B
2
0.1UF
Q1
GND
C36
R28
22K
R29
1.0K
TP9
R27
680.0
GND
EOC_OE 1
390
1
EOC
EOC_OC 2
VDD
CON_2_TB
B
A
J6
4
SFH6106-4
43
Digital hardware
D1
C
A
R2
390
WP7104LSRD
D2
C
A
R3
390
WP7104LSRD
D3
C
A
R8
390
LED RED
LED_kVarh
LED_kWh
LED_USR
VDD
5
3
1
J9
0.1UF
6
4
2
GND
HDR 2X3
8
VDDIO
CAP_A
CAP_R
NC
SCL
SDA
INT1
GND1
GND
1
4
GND2
C30
0.1UF
0.1UF
GND
7
6
I2C1_SCL
I2C1_SDA
INT1
TP7
MAG3110
10
C29
0.1UF
U3
VDD
GND
C27
C26
0.1UF
GND
J1
2
4 I2C_SCL
6
8
10
12
90122-12
BC1
GND
2468
2xAAA Cells
1 +3.3V
+
C25
VDD
R25
4.7K
R26
4.7K
5
3
1
0.1UF
J7
6
4
2
HDR 2X3
GND
Metering board
45
Signal conditioning
U2
5
SPI0_SOUT
SPI0_SCK
SPI0_CS0
MRAM_CTRL
SPI0_SIN
6
1
3
VDD
SI
SO
SCK
WP
VSS
HOLD
C13
0.1UF
MRAM
CS
MR25H10CDC
GND
EXP
9
GND
ratio of this second divider allows a voltage on the ADC input from 01.2 V (Vref). The
sine voltage signal from the line is then shifted to Vref 2; that is, approximately 0.6 V.
See Figure 4-10.
V_BIAS
RS1
20S0271
CON_2_TB
D4
GND
4.7K
R9
100K
R11
100K
R5
220K
R7
220K
R10
47
0.6V+/-0.5V
BAV99LT1
1
TP2
R4
1
1
J2
VDDAMCU
R6
1K
GNDA
V_OUT
C9
1000pF
LPF CUTOFF
3.4MHz
Finally, there is a simple RC low-pass filter (R10 + C9) at the end of the voltage divider.
The cut-off frequency for that is set to 3.4 MHz according to this relation:
NOTE
Some components in the voltage measurement part of the
schematic are depicted for a 3.7 V DC bias supply net. For a 1.2
V DC bias supply voltage level, see the resistors selection in
Figure 4-11.
47
Signal conditioning
SJ1
3
VREF_OUT
V_BIAS
VDDA
SJ1
1-2
2-3
R4 4K7 2K2
R6 1K
2K2
R11 100K 220K
R22 4K7 4K7
R24 1K
4K7
BAV99LT1
2
VDDAMCU
CON_2_TB
A
LINE_OUT
LINE_IN
R14
100
R18
100
GNDA
TP3
D5 25mV+20.4mV
75mV+20.4mV
R15
4.7K
R17
4.7K
25mV-20.4mV
D8 75mV-20.4mV
L_DP
C14
V_BIAS
220PF
L_DM
TP4
BAV99LT1
B
J3
GNDA
VDDAMCU
Figure 4-12. Shunt resistor signal conditioning part of the metering board
R21
10K
V_OUT
100PF
GNDA R22
CMP2_IN1 0.6V
4.7K
C18
R24
1K
0.1UF
V_BIAS
GNDA
49
Signal conditioning
Chapter 5
Application Set-Up
5.1 Setting-Up the Demo Hardware
The following section is focused on setting up the metering demo hardware.
Mains 120/230V
50/60 Hz
PHASE
NEUTRAL
NEUTRAL
PHASE
Load up to 60 A
Connect the power meter directly to the line (see Figure 5-1).
Connect an external load to the power meter (see Figure 5-1).
For a better practical demonstration of the power meter, the metering case may
alternatively be placed on an acrylic base with an outlet (for a load connection) and a
cable with a plug (for connection to the power line). The whole configuration is also
called the power meter demo (see Figure 3-9).
51
After connecting the power meter to the line, the display turns on and shows the last
value that was there before turning it off. Apart from the main value, the display
shows the other symbols (see Figure 5-2), such as OBIS codes, tamper identifiers,
actual tariff, and unit (regarding the main value).
You can also select other values to be shown on the display by pressing the pushbutton. The following is a list of these values:
Table 5-1. Power meter display values
Value
Units
Format
OBIS code
Line voltage
VRMS
0.01V
32.7.0
Line current
ARMS
0.001A
31.7.0
1.7.0
VAr
3.7.0
Apparent power
VA
0.1VA
9.7.0
Power factor
0.0001
13.7.0
Active energyimport
kWh (Wh)
1.8.0
Active energyexport
kWh (Wh)
2.8.0
Reactive energyimport
kVArh (VArh)
3.8.0
Reactive energyexport
kVArh (VArh)
4.8.0
Frequency
Hz
0.001Hz
14.7.0
Time
hour,min,sec
HH:MM:SS
0.9.1
Date
year,month,day
YYYY:MM:DD
0.9.2
SW version
x.x.x
0.2.0
All of the energies (four counters) are saved into the non-volatile memory. These
energies remain in memory after resetting the power meter. To clear the energy
counters, you must use the FreeMASTER application (see Section 5.2.1
FreeMASTER data visualization ) and apply a Clear Energies command.
There are two tampers hidden under the cover. When you remove the cover, tamper
symbol(s) is/are shown on the LCD. These symbols remain on the LCD even after a
reset, because this information is saved in the non-volatile memory. To clear the
tamper status you must use the FreeMASTER application (see Section 5.2.1
FreeMASTER data visualization ) and apply a Clear Tampers command.
When you push the user button during power-on, the LCD shows the actual version
of the internal software.
Both energy LEDs flash simultaneously with the internal energy counters. This
means that flashes of each energy LED are proportional to the sum of import and
export energy (active or reactive).
A 3-V battery is used for the proper RTC function.
RS232 plug is used for FreeMASTER data visualization and calibration.
MQX-Enabled MK30X256 Single-Phase Electricity Meter Reference Design, Rev. 0
52
Actual tariff
Value
OBIS identifier
Unit
Real-time debugging
Diagnostic and visualisation tools
Demonstration tool
Educational tool
53
You should set the proper serial communication port and speed in the Project/Option
menu (see Figure 5-4) now. After doing so, you must set the proper Project.out project
file in the menu Project/Option/MAPfiles (see Figure 5-5). This file is accessible in
subdirectory FLASH_256KB_PFLASH_256KB_DFLASH. If all previous settings are
correctly done, the FreeMASTER visualization script for the power meter is now
prepared for running. To do this, you must click on the Start/Stop Communication button.
At this time, you can see the voltage and current diagrams in the time domain and in the
frequency domain (in an FFT window) too. You may also see other variables in a textual
format, such as frequency, VRMS, IRMS, energies, and so on.
Alternatively, you may set some values, such as an impulse number, clock and date, and
so on. After setting the appropriate value in the column cell, use the right command for
transferring this value to the meter's RAM. Only the following commands are allowable:
clock setting, impulse number setting, clear energies, clear tampers. After application of
these commands, it is also suitable to use the flash save command to save these values
into a non-volatile memory of the MK30X256. You are not allowed to change "red"
values in the Calibration section of the FreeMASTER visualization script, because of the
loss of calibration constants. These values include: voltage and current gain, voltage
phase delay, and power offset.
NOTE
All system (FreeMASTER) values are saved automatically
during meter power-down. Therefore, the flash save command
doesn't have to be used.
55
The following is a standard communication procedure for joining the power meter to a
smart grid:
Install the latest version of the BeeKit from the Freescale web page. There is also a
ZeD monitor as a separate part of the BeeKit. Use the ZeD monitor for
demonstrating ZigBee communication between the power meter and the PC.
Switch the power meter on and connect a load to it.
Connect the ZigBee coordinator (1322x-SRB) to the PC with a USB cable and
switch the coordinator on. The coordinator must be powered. To do this, plug the AC
adaptor to the coordinator (you may also use the internal battery inside the
coordinator module), or use a USB power line from the PC side (this is the best
choice). You will have to install the software driver for this equipment after the first
connection of the 1322x-SRB to the PC. The driver is on the CD in the
Drivers \LuminaryFTDI directory, or alternatively on the Future Technology Devices
International (FTDI) web page.
Push the SW1 button on the coordinatorit looks up all ZigBee equipment
connected to the ZigBee network at this time. Two red LEDs on the coordinator are
then lit (see Figure 5-6).
Start the ZeD monitor and then click on the OK button. Before running the ZeD GUI,
the ZigBee coordinator must be connected to the PC through a USB cable.
At this moment, there are icons for all of the devices connected to the ZigBee
networkthe power meter plus the coordinator, in this case (see Figure 5-7). If there
is no icon for the power meter, you must reset the power meter by disconnecting
from the line and reset the ZeD GUI using the F5 key. You may also repeat the
installation from point 2 in this case.
In the ZeD GUI menu, you may open a new window for showing the ZigBee data
transfer. This is in Tools/Start SE Utility Control Panel menu. You must address the
meter by clicking the Add New Household ESP Connection, and then click on the
Connect icon (see Figure 5-8).
To show data (only import active energy at this time), click on the Metering icona
kWh data table is now refreshed every 5 seconds. The Meter Report column displays
active energy from the power meter (see Figure 5-9). These numbers are in HEX
format with a widely variable resolution that may be changed by the FreeMASTER
GUI (ZigBee kWh divider dialogue box). Therefore, the kWh-number on the LCD of
the power meter may have a different resolution in comparison to the number in the
ZeD GUI metering data report.
NOTE
Impulse number setting command in the FreeMASTER
GUI (see FreeMASTER data visualization ) should be used
after modification of ZigBee kWh divider number.
57
Appendix A
Schematics
59
LINE_IN
R14
100
R18
100
BAV99LT1
L_DP
V_BIAS
29
30
TP5
22
GND
VREF_OUT
V_BIAS
TP18
R4
R6
R11
R22
R24
VREGIN
21
TP19
VOUT33
19
20
USB0_DP
USB0_DM
C19
VDDA
GND
0.1UF
42
40
41
VDDMCU
3 PAD JUMPER
GNDA
SJ1
1-2
2-3
4K7
2K2
1K
2K2
100K 220K
4K7
4K7
1K
4K7
C20
VBA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UART0_CTS/FTM0_FLT0
LCD_P4/ADC1_SE10/PTB4/FTM1_FLT0
LCD_P5/ADC1_SE11/PTB5/FTM2_FLT0
LCD_P6/ADC1_SE12/PTB6
LCD_P7/ADC1_SE13/PTB7
LCD_P8/PTB8/UART3_RTS
LCD_P9/PTB9/SPI1_PCS1/UART3_CTS
LCD_P10/ADC1_SE14/PTB10/SPI1_PCS0/UART3_RX/FTM0_FLT1
LCD_P11/ADC1_SE15/PTB11/SPI1_SCK/UART3_TX/FTM0_FLT2
ADC0_SE16
25
26
TP3
GNDA
CMP2_IN0
36
GNDA
VSS2
VSS3
VSS4
VSS5
VSS6
VSS7
VSS8
VSS9
GND
ADC0_SE17/PTE24/CAN1_TX/UART4_TX/EWM_OUT
ADC0_SE18/PTE25/CAN1_RX/UART4_RX/FB_AD23/EWM_IN
PTE26/UART4_CTS/FB_AD22/RTC_CLKOUT/USB_CLKIN
PTE27/UART4_RTS/FB_AD21
PTE28/FB_AD20
GND
1uH
C37
VDD
B
A
GNDA
2
1
C39
BT1
GND
BATTERY
1
3V
D12
CON_2_TB
External
isolated
+3.7V,200mA GND GND
SMPS
C40
47UF
GND
GND
TP13
VDD
C41
0.1UF
GND
TP15
GNDA
BAT54CLT1
C42
100PF
TP10
TP17
3.3V VDDMCU
3
VDDAMCU
GND
VDDA
D11
3V
3.6V
MMSZ5231BT1G
J4
C38
DS1
VDDA
L1
1
C43
C44
L2
L3
1
MMSZ5231BT1G
R31
47K
D13
0.1UF 10UF
R30
10K
1uH
1uH
3.3V
C45
C46
0.1UF
100PF
GNDA
TP12
VDDMCU
GND
+ C47
47UF
TP11
VDDAMCU
LCD0
LCD1
LCD2
LCD3
LCD33
LCD5
LCD10
LCD17
LCD14
LCD11
LCD8
LCD6
LCD16
LCD15
LCD13
LCD12
LCD9
LCD7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
TP14
TP16
VCC_PRESENT
LCD9
LCD8
LCD7
LCD6
LCD5
LCD4
LCD34
LCD33
103
104
105
106
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
LCD32
LCD31
LCD30
LCD29
LCD28
LCD27
LCD26
LCD25
LCD24
LCD23
LCD22
LCD21
LCD20
LCD19
LCD18
45
46
47
48
49
GNDA
Display
COM1
COM2
COM3
COM4
1G/T5/1E/1F
1B/1D/1C/1A
10G/P5/10E/10F
10B/10D/10C/10A
11G/T6/11E/11F
11B/11D/11C/11A
12G/P7-P6/12E/12F
12B/12D/12C/12A
13G/13E/13F
13B/13D/13C/13A
14G/P8/14E/14F
14B/14D/14C/14A
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
LCD18
LCD19
LCD20
LCD21
LCD22
LCD23
LCD24
LCD25
LCD26
LCD27
LCD28
LCD29
LCD30
LCD31
LCD32
LCD34
LCD4
WP
VSS
GND
HOLD
EXP
ISO1
R12
(+12V)
390
VDD
1
4
SFH6106-4
R16
1.0K
C15
2.2UF
ISO2
D6
1 1
J8
1
SFH6106-4
2
4
6
8
10
RXD 3
TXD 5
DTR 7
GND 9
CON_2X5
D9
MMSD4148T1G
RS232 isolated
(Half Duplex,
max 19200 Bd)
GND
ISO3
2
EOC_OC 2
EOC_OE 1
R23
390
CON_2_TB
B
A
J6
Energy output
pulse interface
4
SFH6106-4
C22
SPI
SW1
VDD
VCC_PRESENT
5
3
1
INT1
SPI2_CS0
SPI2_SCK
SPI2_SOUT
SPI2_SIN
0.1UF
J9
SW1
GND
6
4
2
HDR 2X3
SW1
C23 3
GND
0.1UF
LIGHT TOUCH PUSH BUTTON
VDD
I2C
R25
R26
4.7K
4.7K VDD
C25
5
3
1
I2C1_SCL
I2C1_SDA
TAMPER1
VDDMAG
TAMPER2
IR_TX
IR_RX
EOC
D7
RS232
Interface
R19
470
VDD
RS232_TXD
RS232_RXD
LED_kVarh
LED_kWh
LED_USR
RTS
R13
4.7K
0.1UF
J7
6
4
2
GND
HDR 2X3
Tamper Detection
C35
0.1UF
C34
0.1UF
SW2
J5
A
1
CON_2_TB
GND
3
2
GND
D2F-01L
IR_TX
IR_RX
TP8
VDD
C36
T7/T8/P4/H
2G/T3/2E/2F
2B/2D/2C/2A
3G/T2/3E/3F
3B/3D/3C/3A
4G/T1/4E/4F
4B/4D/4C/4A
5G/T4/5E/5F
5B/5D/5C/5A
6G/P1/6E/6F
6B/6D/6C/6A
7G/P2/7E/7F
7B/7D/7C/7A
8G/COL1-COL2/8E/8F
8B/8D/8C/8A
9G/P3/9E/9F
9B/9D/9C/9A
0.1UF
MRAM
CS
TP9
MK40X256VLQ100
Power section
95
96
97
98
99
100
101
102
1
2
3
4
7
8
9
10
11
12
13
14
15
MRAM_CTRL
SPI0_SIN
C13
SO
SCK
GND
LCD0
LCD1
LCD2
LCD3
LCD17
LCD16
LCD15
LCD14
LCD13
LCD12
LCD11
LCD10
139
140
141
142
143
144
VDD
SI
MR25H10CDC
81
82
83
84
85
86
87
88
89
90
91
92
129
130
131
132
133
134
135
138
LINE_OUT
ADC0_DP1
ADC0_DM1
75
76
77
78
79
80
U2
5
SPI0_SOUT
SPI0_SCK
SPI0_CS0
MMSD4148T1G
V_OUT
PTA24/FB_AD14
PTA25/FB_AD13
PTA26/FB_AD12
PTA27/FB_AD11
PTA28/FB_AD10
PTA29/FB_AD19
VREF_OUT
23
24
0.1UF
LPF CUTOFF
3.4MHz
VSSA
37
1.2V
Optical Interface
BAV99LT1
2
B
J3
Shunt
GNDA
VREF_OUT
C10
Port C
2
A
C9
1000pF
R6
1K
GNDA
CON_2_TB
34
VDDAMCU
GNDA
VREFL
0.6V+/-0.5V
D4
VDDAMCU
Current
measurement
5(120)A
33
Port D
2
GND
R10
47
R9
100K
R11
100K
R5
220K
R7
220K
RS1
20S0271
CON_2_TB
4.7K
BAV99LT1
1
VREFH
Port E
VDDA
32
C8
GNDA
0.1UF
Port A
C7
0.1UF
TP2
R4
J2
VDD
GND
HDR_19P
VDDMRAM
CMP2_IN0
CMP2_IN1
31
LED_USR
VDDAMCU
V_BIAS
LED_kWh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AL/PTA19/FTM1_FLT0/FTM_CLKIN1/LPT0_ALT1
VDD1
VDD2
VDD3
VDD4
VDD5
VDD6
VDD7
TSAL4400
5
16
43
56
70
94
137
C6
0.1UF
GND
Infrared interface
C5
D1
C
A
R2
390
WP7104LSRD
D2
C
A
R3
390
WP7104LSRD
D3
C
A
R8
390
LED RED
LED_kVarh
C1
1
3
5
C4
VDDMCU
J1
2
4
6
8
/RESET 10
12
14
16
18
20
C3
VDDMCU
R1
10K
RS232_TXD
RS232_RXD
C12
JTAG
EOC
C2
Port B
C11
R32
47K
TP1
U1
VDDMCU
VDDMCU
GND
150020254
VDDMCU
C11
C2
C12
C3
C4
C5
5
16
43
56
70
94
137
C6
31
C7
0.1UF
TP2
BAV99LT1
2
GNDA
1
2
LINE_OUT
R14
100
R18
100
LINE_IN
V_OUT
GNDA
D5 25mV+20.4mV
75mV+20.4mV
R15
4.7K
R17
4.7K
25mV-20.4mV
D8 75mV-20.4mV
L_DP
L_DM
TP5
DAC1_OUT
74
/RESET
R20
4.7K
VREF_OUT
V_BIAS
22
TP18
VREGIN
21
TP19
VOUT33
19
20
USB0_DP
USB0_DM
C19
VDDA
GND
0.1UF
42
40
41
VDDMCU
3 PAD JUMPER
Y1
SJ1
1-2
2-3
R4 4K7
2K2
R6 1K
2K2
R11 100K 220K
R22 4K7
4K7
R24 1K
4K7
C20
LCD_P20/ADC0_SE14/TSI0_CH13/PTC0/SPI0_PCS4/PDB0_EXTRG/I2S0_TXD
LCD_P21/ADC0_SE15/TSI0_CH14/PTC1/SPI0_PCS3/UART1_RTS/FTM0_CH0
LCD_P22/ADC0_SE4b/CMP1_IN0/TSI0_CH15/PTC2/SPI0_PCS2/UART1_CTS/FTM0_CH1
LCD_P23/CMP1_IN1/PTC3/SPI0_PCS1/UART1_RX/FTM0_CH2
LCD_P24/PTC4/SPI0_PCS0/UART1_TX/FTM0_CH3/CMP1_OUT
LCD_P25/PTC5/SPI0_SCK/LPT0_ALT2/CMP0_OUT
LCD_P26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
24
25
26
27
28
29
30
31
32
33
34
35
110
109
108
LCD18
LCD19
LCD20
LCD21
LCD22
LCD23
LCD24
LCD25
LCD26
LCD27
LCD28
LCD29
LCD30
LCD31
LCD32
LCD34
LCD4
C31
C28
VLL1
VLL2
VLL3
C32
GND
112
111
C33
VCAP1
VCAP2
0.1UF
6
17
44
57
71
93
107
136
VSS2
VSS3
VSS4
VSS5
VSS6
VSS7
VSS8
VSS9
150020254
Display
GND
LCD9
LCD8
LCD7
LCD6
LCD5
LCD4
LCD34
LCD33
103
104
105
106
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
LCD32
LCD31
LCD30
LCD29
LCD28
LCD27
LCD26
LCD25
LCD24
LCD23
LCD22
LCD21
LCD20
LCD19
LCD18
D1
C
A
R2
390
WP7104LSRD
D2
C
A
R3
390
WP7104LSRD
D3
LED_kVarh
LED_kWh
VDD
Optical Interface
SW1
VCC_PRESENT
SW1
C23 3
GND
0.1UF
LIGHT TOUCH PUSH BUTTON
TAMPER1
TAMPER2
C35
0.1UF
C34
0.1UF
SW2
J5
A
2
RS232_TXD
B
RS232_RXD
LED_kVarh
CON_2_TB
LED_kWh
GND
LED_USR
3
2
GND
D2F-01L
Tamper Detection
BT1
BATTERY
1
3V
MMSZ5231BT1G
CON_2_TB
External
isolated
+3.7V,200mA GND GND
SMPS
C40
47UF
GND
GND
TP13
VDD
C41
0.1UF
GND
TP10
VDDA
1
C43
C44
L3
1
MMSZ5231BT1G
R30
10K
GNDA
R31
47K
1uH
D13
0.1UF 10UF
TP15
TP17
GND
BAT54CLT1
C42
100PF
VDDAMCU
L2
1uH
C45
C46
0.1UF
100PF
GND
SFH6106-4
R16
1.0K
+ C47
47UF
TP11
VDDAMCU
TP14
TP16
VCC_PRESENT
3.3V
GNDA
TP12
VDDMCU
R13
4.7K
VDD
3.3V VDDMCU
3
3.6V
D12
D11
3V
C15
2.2UF
ISO2
D6
1 1
2
GND
RTS
SFH6106-4
GNDA
RS232
Interface
J8
D7
R19
470
D9
MMSD4148T1G
C39
(+12V)
2
1
C38
390
C37
VDD
R12
ISO1
2
MMSD4148T1G
VDDA
RS232_TXD
RS232_RXD
1uH
L1
95
96
97
98
99
100
101
102
45
46
47
48
49
ADC0_SE17/PTE24/CAN1_TX/UART4_TX/EWM_OUT
ADC0_SE18/PTE25/CAN1_RX/UART4_RX/FB_AD23/EWM_IN
PTE26/UART4_CTS/FB_AD22/RTC_CLKOUT/USB_CLKIN
PTE27/UART4_RTS/FB_AD21
PTE28/FB_AD20
MK40X256VLQ100
9
11
13
15
17
19
GND
Power section
J4
LCD0
LCD1
LCD2
LCD3
LCD17
LCD16
LCD15
LCD14
LCD13
LCD12
LCD11
LCD10
1
2
3
4
7
8
9
10
11
12
13
14
15
ADC1_SE4a/PTE0/SPI1_PCS1/UART1_TX/SDHC0_D1/FB_AD27/I2C1_SDA
ADC1_SE5a/PTE1/SPI1_SOUT/UART1_RX/SDHC0_D0/FB_AD26/I2C1_SCL
ADC1_SE6a/PTE2/SPI1_SCK/UART1_CTS/SDHC0_DCLK/FB_AD25
ADC1_SE7a/PTE3/SPI1_SIN/UART1_RTS/SDHC0_CMD/FB_AD24
PTE4/SPI1_PCS0/UART3_TX/SDHC0_D3/FB_CS3/FB_BE7_0_BLS31_24/FB_TA
PTE5/SPI1_PCS2/UART3_RX/SDHC0_D2/FB_TBST/FB_CS2/FB_BE15_8_BLS23_16
PTE6/SPI1_PCS3/UART3_CTS/I2S0_MCLK/FB_ALE/FB_CS1/FB_TS/I2S0_CLKIN
PTE7/UART3_RTS/I2S0_RXD/FB_CS0
PTE8/UART5_TX/I2S0_RX_FS/FB_AD4
PTE9/UART5_RX/I2S0_RX_BCLK/FB_AD3
PTE10/UART5_CTS/I2S0_TXD/FB_AD2
PTE11/UART5_RTS/I2S0_TX_FS/FB_AD1
PTE12/I2S0_TX_BCLK/FB_AD0
Port E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
LCD0
LCD1
LCD2
LCD3
LCD33
LCD5
LCD10
LCD17
LCD14
LCD11
LCD8
LCD6
LCD16
LCD15
LCD13
LCD12
LCD9
LCD7
0.1UF
HDR_19P
139
140
141
142
143
144
PTD10/UART5_RTS/FB_AD9
PTD11/SPI2_PCS0/UART5_CTS/SDHC0_CLKIN/FB_AD8
PTD12/SPI2_SCK/SDHC0_D4/FB_AD7
PTD13/SPI2_SOUT/SDHC0_D5/FB_AD6
PTD14/SPI2_SIN/SDHC0_D6/FB_AD5
PTD15/SPI2_PCS1/SDHC0_D7/FB_RW
DS1
C1
1
3
5
CMP2_IN0
CMP2_IN1
81
82
83
84
85
86
87
88
89
90
91
92
129
130
131
132
133
134
135
138
LCD_P40/PTD0/SPI0_PCS0/UART2_RTS
LCD_P41/ADC0_SE5b/PTD1/SPI0_SCK/UART2_CTS
LCD_P42/PTD2/SPI0_SOUT/UART2_RX
LCD_P43/PTD3/SPI0_SIN/UART2_TX
LCD_P44/PTD4/SPI0_PCS1/UART0_RTS/FTM0_CH4/EWM_IN
LCD_P45/ADC0_SE6b/PTD5/SPI0_PCS2/UART0_CTS/FTM0_CH5/EWM_OUT
LCD_P46/ADC0_SE7b/PTD6/SPI0_PCS3/UART0_RX/FTM0_CH6/FTM0_FLT0
LCD_P47/PTD7/CMT_IRO/UART0_TX/FTM0_CH7/FTM0_FLT1
GND
VDDMCU
J1
2
4
6
8
/RESET 10
12
14
16
18
20
75
76
77
78
79
80
PTA24/FB_AD14
PTA25/FB_AD13
PTA26/FB_AD12
PTA27/FB_AD11
PTA28/FB_AD10
PTA29/FB_AD19
VREF_OUT
23
24
TP3
BAV99LT1
J3
Shunt
VSSA
37
1.2V
0.1UF
LPF CUTOFF
3.4MHz
GNDA
GNDA
VREF_OUT
C10
VDDAMCU
CON_2_TB
C9
1000pF
R6
1K
VDDAMCU
Current
measurement
5(120)A
VREFL
34
D4
GND
VREFH
33
0.6V+/-0.5V
Port C
RS1
20S0271
R10
47
32
C8
GNDA
0.1UF
R9
100K
R11
100K
R5
220K
R7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TM1_FLT0/FTM_CLKIN1/LPT0_ALT1
VDD1
VDD2
VDD3
VDD4
VDD5
VDD6
VDD7
VDDAMCU
Voltage measurement
J2
U1
Port B
VDDMCU
JTAG
TP1
RXD
TXD
DTR
GND
1
3
5
7
9
2
4
6
8
10
CON_2X5
MMSD4148T1G
RS232 isolated
(Half Duplex,
max 19200 Bd)
GND
61
Appendix B
Layouts
63
Appendix B Layouts
65
67
Appendix C
BOM
C.1 Bill of materials for full configuration of the metering
board
Table C-1. BOM report for full configuration
Part Reference
Quantity
Description
Manufacturer
Part Number
BT1
Renata Batteries
SMTU2032-LF
C1 C2 C3 C4 C5 C6 C7
C8 C10 C11 C12 C13
C16 C18 C19 C22 C23
C25 C26 C27 C28 C29
C30 C31 C32 C33 C34
C35 C36 C37 C41 C43
C45
33
SMEC
MCCC104K2NRTF
C9
AVX
08055C102KAT2A
C14
AVX
08051A221JAT2A
C15
KEMET
T491A225K016AT
AVX
08055A101KAT2A
C20 C21
AVX
08055A180JAT2A
C24
KEMET
C0805C105K3RAC7800
C38 C44
AVX
0805YD106KAT2A
C40 C47
PANASONIC
EEE0JA470SR
D1 D2
Kingbright
WP7104LSRD
D3
Kingbright
KPT-3216ID
69
Quantity
Description
Manufacturer
Part Number
D4 D5 D8
ON SEMICONDUCTOR
BAV99LT1G
D6 D7 D9
DIODE SW 100V
SOD-123
ON SEMICONDUCTOR
MMSD4148T1G
D10
VISHAY
INTERTECHNOLOGY
TSAL4400
D11
ON SEMICONDUCTOR
BAT54CLT1G
D12 D13
ON SEMICONDUCTOR
MMSZ5231BT1G
IC OPTOCOUPLER
100MA 70V SMD
VISHAY
INTERTECHNOLOGY
SFH6106-4
J1
SAMTEC
ASP-159234-03
J2 J3 J4 J5 J6
LUMBERG INC
DON'T POPULATE
J7 J9
SAMTEC
TSW-103-07-S-D
J8
ADAM TECHNOLOGIES
BRH-10-VUA
L1 L2 L3
TDK
MLZ2012A1R0PT
DS1
MAK-SAY
150020254
Q1
OPTEK TECHNOLOGY
INC
OP506B
R1 R21 R30
VENKEL COMPANY
CR0805-8W-103JT
R2 R3 R8 R12 R23
BOURNS
CR0805-JW-391ELF
WELWYN
COMPONENTS LIMITED
WRM0204C-4K7FI
R5 R7
WELWYN
COMPONENTS LIMITED
WRM0204C-220KFI
R6 R24
RES MF 1K 1/4W 1%
MELF0204
WELWYN
COMPONENTS LIMITED
WRM0204C-1K0FI
R9 R11
WELWYN
COMPONENTS LIMITED
WRM0204C-100KFI
R10
Rohm
MCR10EZPJ470
BOURNS
CR0805-FX-4701ELF
Appendix C BOM
Quantity
Description
Manufacturer
Part Number
R14 R18
WELWYN
COMPONENTS LIMITED
WRM0204C-100RFI
R16 R29
KOA SPEER
RK73H2ATTD1001F
R19
BOURNS
CR0805-JW-471ELF
R27
YAGEO AMERICA
RC0805FR-07680RL
R28
BOURNS
CR0805-JW-223ELF
R31 R32
SMEC
RC73L2D473JTF
RS1
RES VARISTOR
275VRMS 10% 4.5kA
151J TH
EPCOS
B72220S0271K101
SJ1
N/A
NO PART TO ORDER
SJ2
N/A
NO PART TO ORDER
SW1
SW SPST MOM NO PB
20MA 15V TH
PANASONIC
EVQPAC05R
SW2
OMRON
D2F-01L
19
N/A
NO PART TO ORDER
U1
IC MCU P2 MARCONI
32BIT 96K FLASH 16K
RAM 2.7-5.5V LQFP144
FREESCALE
SEMICONDUCTOR
PK40X256VLQ100
U2
EVERSPIN
TECHNOLOGIES, INC
MR25H10CDC
U3
IC 3-AXIS DIGITAL
MAGNETOMETER
1.95-3.6V DFN10
FREESCALE
SEMICONDUCTOR
MAG3110
Y1
Citizen
CMR200T32.768KDZFUT
71
Part Reference
Quantity
Description
Manufacturer
Part Number
BT1
Renata Batteries
SMTU2032-LF
C1 C2 C3 C4 C5 C6 C7
C8 C10 C11 C12 C16
C18 C19 C23 C28 C31
C32 C33 C34 C35 C37
C41 C43 C45
25
SMEC
MCCC104K2NRTF
C9
AVX
08055C102KAT2A
C14
AVX
08051A221JAT2A
C15
KEMET
T491A225K016AT
AVX
08055A101KAT2A
C20 C21
AVX
08055A180JAT2A
C38 C44
AVX
0805YD106KAT2A
C40 C47
PANASONIC
EEE0JA470SR
D1 D2
Kingbright
WP7104LSRD
D4 D5 D8
ON SEMICONDUCTOR
BAV99LT1G
D6 D7 D9
DIODE SW 100V
SOD-123
ON SEMICONDUCTOR
MMSD4148T1G
D11
ON SEMICONDUCTOR
BAT54CLT1G
D12 D13
ON SEMICONDUCTOR
MMSZ5231BT1G
ISO1 ISO2
IC OPTOCOUPLER
100MA 70V SMD
VISHAY
INTERTECHNOLOGY
SFH6106-4
J1
SAMTEC
ASP-159234-03
J2 J3 J4 J5
N/A
DON'T POPULATE
J8
ADAM TECHNOLOGIES
BRH-10-VUA
Appendix C BOM
Quantity
Description
Manufacturer
Part Number
L1 L2 L3
TDK
MLZ2012A1R0PT
DS1
MAK-SAY
150020254
R1 R21 R30
VENKEL COMPANY
CR0805-8W-103JT
R2 R3 R12
BOURNS
CR0805-JW-391ELF
WELWYN
COMPONENTS LIMITED
WRM0204C-4K7FI
R5 R7
WELWYN
COMPONENTS LIMITED
WRM0204C-220KFI
R6 R24
RES MF 1K 1/4W 1%
MELF0204
WELWYN
COMPONENTS LIMITED
WRM0204C-1K0FI
R9 R11
WELWYN
COMPONENTS LIMITED
WRM0204C-100KFI
R10
Rohm
MCR10EZPJ470
R13 R20
BOURNS
CR0805-FX-4701ELF
R14 R18
WELWYN
COMPONENTS LIMITED
WRM0204C-100RFI
R16
KOA SPEER
RK73H2ATTD1001F
R19
BOURNS
CR0805-JW-471ELF
R31 R32
SMEC
RC73L2D473JTF
RS1
RES VARISTOR
275VRMS 10% 4.5kA
151J TH
EPCOS
B72220S0271K101
SJ1
N/A
NO PART TO ORDER
SJ2
N/A
NO PART TO ORDER
SW1
SW SPST MOM NO PB
20MA 15V TH
PANASONIC
EVQPAC05R
SW2
OMRON
D2F-01L
19
N/A
NO PART TO ORDER
73
Quantity
Description
Manufacturer
Part Number
U1
IC MCU P2 MARCONI
32BIT 96K FLASH 16K
RAM 2.7-5.5V LQFP144
FREESCALE
SEMICONDUCTOR
PK40X256VLQ100
Y1
Citizen
CMR200T32.768KDZFUT
QUANTITY
DESCRIPTION
MANUFACTURER
PART NUMBER
Shunt-resistor 300
MAK-SAY
Enclosure
MAK-SAY
M310
XP Power
ECL05US03-T
Tyco Electronics
1658609-4
Tyco Electronics
1658622-1
3V battery
GP
CR2032
10 cm
Flat cable
any acceptable
1.5 m
any acceptable
Outlet 250V/16A
any acceptable
Appendix D
Technical Specification
D.1 MK30X256 power meter specifications
Parameter
Specification
Type of meter
Type of measurement
4-quadrant
Metering algorithm
IEC50470-3 Class B, 1%
Voltage range
Current range
Frequency range
47 ... 63 Hz
Functionality
V, A, kW, kVAr, kVA, kWh (import/export), kVArh (lead/lag), cos , Hz, time, date
Current sensor
Shunt-resistor 300
Tamper detection
Internal battery
< 1.4 W
Mechanical dimensions (w x l x h)
110 190 55
370 g
75
Appendix E
References
E.1 References
77
Appendix F
F.1 Glossary
Alternating CurrentAC
Advanced Encryption StandardAES
Analog-to-Digital ConverterADC
Analog Front-EndAFE
Automatic Meter ReadingAMR
Bill of MaterialsBOM
Carrier Modulator TransmitterCMT
Common-Mode Rejection RatioCMRR
Cyclic Redundancy CheckCRC
Current TransformerCT
Direct CurrentDC
Digital-to-Analog ConverterDAC
Dual Flat No leadsDFN
Dhrystone Million Instructions Per SecondDMIPS
Digital Signal ProcessingDSP
Fast Fourier TransformFFT
Flex Timer ModuleFTM
General Purpose Input/OutputGPIO
Global Positioning SystemGPS
Graphical User InterfaceGUI
MQX-Enabled MK30X256 Single-Phase Electricity Meter Reference Design, Rev. 0
Freescale Semiconductor, Inc.
79
Glossary
81
Web Support:
http://www.freescale.com/support
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
support.asia@freescale.com