Maxq 314
Maxq 314
TION KIT
EVALUA BLE
AVA A
IL
Single-Phase Power-Measurement
IC with I2C Interface
General Description Features
MAXQ314
The MAXQ314 is a dedicated power-measurement IC S High-Performance, Low-Power DSP Core
that collects and calculates voltage, current, power, and S On-Chip Digital Temperature Sensor
power factor for a single-phase load. The results can
S Precision Internal Voltage Reference
be retrieved by an external master through the internal
I2C bus. This bus is also used by the external master to S Active Power (W), < ±0.5% Error
configure the operation of the MAXQ314 and monitor the S Reactive Power (VAR), < ±0.7% Error
status of operations.
S Apparent Power (VA), < ±0.7% Error
The MAXQ314 performs voltage and current measure-
S Power Factor, < ±1% Error
ments using an integrated ADC that can measure voltage
and current. Other values such as power are calculated S Voltage RMS, < ±0.2% Error
from that data. The MAXQ314 also has an integrated S Current RMS, < ±0.5% Error
temperature sensor that provides the die temperature on
S I2C-Compatible Serial Interface
demand. The internal current amplifier produces up to
32x gain and the voltage amplifier gain is 1x. S Continuous Output of IRMS in Serial or PWM
Applications
Single-Phase AC Power Monitoring
Ordering Information
PART OPERATING VOLTAGE (V) TEMP RANGE PIN-PACKAGE
MAXQ314+ 3.0 to 3.6 -40NC to +85NC 20 TQFN-EP*
+Denotes a lead(Pb)-free/RoHS-compliant package.
*EP = Exposed pad.
Block Diagram
MAXQ314
TEMP SENSOR
WATCHDOG SCL
TIMER SDA
I2C
A0
INTERFACE
A1
16-BIT
A2
MAXQ20
RISC CPU
BUS DSP
AVDD
POWER-ON SERIAL/PWM AUX
AGND
RESET
DVDD
(AVDD, DVDD) INTERNAL
DGND
8MHz CLOCK RST
GENERATOR
For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642,
or visit Maxim’s website at www.maxim-ic.com.
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
TABLE OF CONTENTS
Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Power-Monitoring Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
I2C Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
I2C Bus Controller Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Clock Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Reset Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
External Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Voltage Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
I2C Slave Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
I2C Rate and Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
I2C Slave Address Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
I2C Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Data and Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Conversion to Physical Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
RMS Current Continuous Output (AUX Pin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Applications Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Grounds and Bypassing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Specific Design Considerations for MAXQ314-Based Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Additional Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Development and Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2 _______________________________________________________________________________________
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
LIST OF FIGURES
Figure 1. Series Resistors (RS) for Protecting Against High-Voltage Spikes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2. I2C Bus Controller Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3. Calibration Circuit Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
LIST OF TABLES
Table 1. Slave Address Determination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 2. Register Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 3. DSPCFG Register Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 4. Calibration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
_______________________________________________________________________________________ 3
Single-Phase Power-Measurement
IC with I2C Interface
ABSOLUTE MAXIMUM RATINGS
MAXQ314
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute
maximum rating conditions for extended periods may affect device reliability.
POWER-MONITORING SPECIFICATIONS
(VAVDD = VDVDD = 3.0V to 3.6V, TA = +25NC.) (Note 1)
ELECTRICAL CHARACTERISTICS
(VAVDD = VDVDD = 3.0V to 3.6V, TA = +25NC, unless otherwise noted.) (Note 2)
4 _______________________________________________________________________________________
Single-Phase Power-Measurement
IC with I2C Interface
ELECTRICAL CHARACTERISTICS (continued)
MAXQ314
(VAVDD = VDVDD = 3.0V to 3.6V, TA = +25NC, unless otherwise noted.) (Note 2)
_______________________________________________________________________________________ 5
Single-Phase Power-Measurement
IC with I2C Interface
I2C BUS CONTROLLER TIMING
MAXQ314
(VDVDD = 3.0V to 3.6V, TA = +25NC, unless otherwise noted. Typical values are at VDVDD = 3.3V, TA = +25NC.) (Note 1, Figure 2)
6 _______________________________________________________________________________________
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
VDVDD
I2C I2C
DEVICE DEVICE
MAXQ314 RP RP
RS RS RS RS
SDA
SCL
S SR P S
SDA
tBUF
tF_I2C tR_I2C
SCL
tHD:STA tHIGH
tHD:DAT tSU:STO
_______________________________________________________________________________________ 7
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
Pin Configuration
TOP VIEW
RST
REF
VN
A0
A1
15 14 13 12 11
VP 16 10 A2
AVDD 17 9 N.C.
IL 19 7 SCL
1 2 3 4 5
AUX
N.C.
DGND
DVDD
N.C.
TQFN
(5mm × 5mm)
*EXPOSED PAD.
Pin Description
PIN NAME FUNCTION
POWER PINS
3 DGND Digital Ground. AGND and DGND should be connected externally through a single point connection.
4 DVDD Digital Supply Voltage. Connect AVDD to DVDD externally. Connect a 0.1FF capacitor to DGND.
Buffered Reference Output. Connect this pin to AGND through a 1FF capacitor. No other signals should be
14 REF
connected to this pin.
17 AVDD Analog Supply Voltage. Connect AVDD to DVDD externally. Connect a 0.1FF capacitor to AGND.
18 AGND Analog Ground. AGND and DGND should be connected externally through a single point connection.
— EP Exposed Pad. Connect to AGND.
COMMUNICATION AND CONTROL PINS
RMS Current Continuous Output. This open-drain pin continuously outputs the value of the most recent 16-bit
1 AUX
RMS current measurement. If the SPCFG.PWMOUT bit is set, the value is instead output in PWM format.
7 SCL I2C Clock Line I/O
8 SDA I2C Data Line I/O
10 A2
11 A1 Device Selection Address Bits, Input. These bits select the slave address shown in Table 1.
12 A0
Active-Low Reset Input. The CPU is held in reset when this pin is low. The pin includes pullup current
13 RST
source and should be driven by an open-drain external source capable of sinking in excess of 4mA.
8 _______________________________________________________________________________________
Single-Phase Power-Measurement
IC with I2C Interface
Pin Description (continued)
MAXQ314
PIN NAME FUNCTION
VOLTAGE AND CURRENT MEASUREMENT PINS
15 VN Differential Voltage Negative Input
16 VP Differential Voltage Positive Input
19 IL Single-Ended Current Input, Low Frequency
NO CONNECTION PINS
2, 5, 6,
N.C. No Connection. Do not connect any signal to this pin.
9, 20
_______________________________________________________________________________________ 9
Single-Phase Power-Measurement
IC with I2C Interface
I2C Rate and Resets the most significant bit and end with the least significant
MAXQ314
10
�������������������������������������������������������������������������������������
Single-Phase Power-Measurement
IC with I2C Interface
Data and Control Registers surement values taken by the device. All the read/write
MAXQ314
registers are calculation coefficients set by the master.
All transactions consist of the master writing to or read- The only exceptions are the DSPCFG register, which
ing from data, configuration, or control registers. Each configures operating features of the device, and the
register has an 8-bit address. There are several catego- ADC_AZ register, which resets the internal ADC when it
ries of internal registers; read-only registers return mea- is written to.
READ WORD
S ADDR:7 W A CMD:8 A SR ADDR:7 R A D0:8 A D1:8 N P
READ LONG
S ADDR:7 W A CMD:8 A SR ADDR:7 R A D0:8 A D1:8 A D2:8 N P
WRITE WORD
S ADDR:7 W A CMD:8 A D0:8 A D1:8 A P
______________________________________________________________________________________ 11
Single-Phase Power-Measurement
IC with I2C Interface
Table 2. Register Set
MAXQ314
12
�������������������������������������������������������������������������������������
Single-Phase Power-Measurement
IC with I2C Interface
Table 3. DSPCFG Register Detail
MAXQ314
BIT NAME DESCRIPTION
1 = disable IL measurements
0 DISIL
0 = enable IL measurements (default)
1 RESERVED Must be set to 1
2 RESERVED Must be set to 0
1 = PEC enabled for I2C transmission
3 PECEN
0 = PEC disabled for I2C transmission (default)
1 = Begin accumulating PAVG
4 AVGP
0 = Stop accumulating PAVG (default)
1 = PAVG calculation complete
5 AVGRD 0 = PAVG calculation in progress, following AVGP 1 R 0
(This bit is automatically cleared the next time the master sets AVGP to 1.)
1 = AUX pin outputs in PWM format
6 PWMOUT
0 = AUX pin outputs in digital format (default)
1 = Disable gain switching
7 DISPGA
0 = Enable gain switching (recommended, default)
1 = PGA for IL = x4 (default)
8 ILPGA
0 = PGA for IL = x1
1 = AC mode
9 ACMODE
0 = DC mode (default)
10:11 RESERVED —
Reset Status Indicator. These bits allow the master to determine if the MAXQ314 has per-
formed a reset since the last time these bits were cleared. When these bits are 1111, the
12:15 RESET_STATUS MAXQ314 has performed a reset. After the bits have been read, the master must write 0000
to these bits to clear the reset indicator. Writing to and reading from these bits does not
affect processor operation or cause a reset; they are only status bits.
______________________________________________________________________________________ 13
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
14
�������������������������������������������������������������������������������������
Single-Phase Power-Measurement
IC with I2C Interface
MAXQ314
19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SYNC SAMPLE DATA FRAME GAP SYNC SAMPLE DATA FRAME GAP
1 1 0 0 D D D D D D D D D D D D D D D D L L L L 1 1 0 0 D D D D D D D D D D D D D D D D L L L L
RMS Current Continuous Output failure (damage to the silicon inside the device) or a soft
failure (unintentional modification of memory contents).
(AUX Pin) Voltage spikes above or below the device’s absolute
The AUX pin can be configured to output a 16-bit RMS maximum ratings can potentially cause a devastating IC
current value. Bit time is 2000 system clocks, or a typical latchup.
data rate of 4kbps. The bit format is pulse-width modula- Microcontrollers commonly experience negative volt-
tion, in which each bit cell is divided into four time slices. age spikes through either their power pins or general-
At the first time slice, the data line switches from a zero purpose I/O pins. Negative voltage spikes on power pins
state to a one state. Then, if the bit to be transmitted is a are especially problematic as they directly couple to the
zero, the data line switches back to zero after one time internal power buses. Devices such as keypads can
slice. If the bit to be transmitted is a one, the data line conduct electrostatic discharges directly into the micro-
switches back to zero after three time slices. controller and seriously damage the device. System
A data frame consists of one complete 20-bit sample designers must protect components against these tran-
word and a frame delimiter. The frame delimiter consists sients that can corrupt system memory.
of the data line idling in a low state for nominally four bit
times (tBIT). Specific Design Considerations for
MAXQ314-Based Systems
The receiver detects the first rising edge of the sync To reduce the possibility of coupling noise into the
field and synchronizes on the 1100 pattern. The receiver microcontroller, the systems that use an external crystal
should be synchronized by the time the first data bit is should be designed with a crystal in a metal case that
available. After 16 data bits, the data line becomes idle is grounded to the digital plane. Doing so reduces the
for four tBIT periods, after which the next synchronization susceptibility of the design to fast transient noise.
bit begins.
Because the MAXQ314 is used in systems where high
The AUX pin can output continuous PWM as well by voltages are present, care must be taken to route all
setting the PWMOUT (DSPCFG.6) bit. The PWM output signal paths, both analog and digital, as far away as pos-
period is 65,535 system clocks, or 8.19ms. sible from the high-voltage components. It is possible to
construct more elaborate metering designs using mul-
Applications Information tiple MAXQ314 devices. This can be accomplished by
Grounds and Bypassing using a single I2C bus, but with a different slave address
Careful PCB layout significantly minimizes system-level for each device.
digital noise that could interact with the microcontroller
or peripheral components. The use of multilayer boards Additional Documentation
is essential to allow the use of dedicated power planes. Designers must have the following documents to fully use
The area under any digital components should be a all the features of this device. This data sheet contains
continuous ground plane if possible. Keep any bypass pin descriptions, feature overviews, and electrical speci-
capacitor leads short for best noise rejection and place fications. Errata sheets contain deviations from published
the capacitors as close to the leads of the devices as specifications.
possible. • M
AXQ314 data sheet, which contains electrical/timing
CMOS design guidelines for any semiconductor require specifications and pin descriptions
that no pin be taken above supply voltage or below • M
AXQ314 revision-specific errata sheet
ground. Violation of this guideline can result in a hard (www.maxim-ic.com/errata)
______________________________________________________________________________________ 15
Single-Phase Power-Measurement
IC with I2C Interface
Development and Technical Package Information
MAXQ314
Support For the latest package outline information and land pat-
terns, go to www.maxim-ic.com/packages. Note that
Maxim offers the MAXQ314 evaluation kit (EV kit) as an
a “+”, “#”, or “-” in the package code indicates RoHS
aid in developing and prototyping applications based
status only. Package drawings may show a different suf-
on the MAXQ314. The EV kit is a reference design from
fix character, but the drawing pertains to the package
which a developer can begin designing their own sys-
regardless of RoHS status.
tem. The EV kit data sheet contains a schematic of the
board that can be reviewed by engineers who want to PACKAGE TYPE PACKAGE CODE DOCUMENT NO.
perform a preliminary investigation of the device uses 20 TQFN-EP T2055+4 21-0140
before purchasing the EV kit.
Technical support is available at https://support.maxim-
ic.com/micro.
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied.
Maxim reserves the right to change the circuitry and specifications without notice at any time.
16 Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600
© 2009 Maxim Integrated Products Maxim is a registered trademark of Maxim Integrated Products, Inc.