Ic v924x
Ic v924x
Ic v924x
Revision History
Date Version Description
Delete raw data related descriptions and other unused descriptions. User
2017.10.18 1.1 can’t read raw data registers. Change register address of T8BAUD from
0x0186 to 0x00E0.
ch
2017-11-08 1.2 Modify the definition of V9260s package pin to support only crystal free
input.
2018.03.12 3.0 performance during normal metering, Bandgap Circuit must be configured
Modify the typical value of the power down threshold to 2.7V, range
2018.09.01 3.3
2.5V~2.9V
e ch
ot
ng
Va
V924X is a multifunction, ultralow power, single-phase power measurement IC with automatic baud rate
adaption UART serial interface.
Features
- 3.3V power supply: 2.9V to 3.6V. Instantaneous /average current and
voltage RMS;
- Reference: 1.210V (typical drift 10ppm/°C).
Instantaneous /average active/reactive
- Typical power dissipation in full operation:
power;
1.3mA (+-10%).
ch
Line frequency;
- Supporting one current channel for active and
reactive energy metering simultaneously Phase
e
IEC 62053-21:2020/ IEC 62053-22:2020
and IEC 62053-23:2020;
-
No input crystal required.
- Various measurements:
- Package: 8-SOP.
DC components of voltage and current
signals;
Va
Pin Description
TX/RX
DVCC
VSS
REF
8
5
V924X
ch
1
4
VDD33
UP
IAP
IAN
No.
1
Mnemonic
VDD33
e
Type
Input
Description
Specifications
All maximum/minimum specifications apply over the entire recommended operation range (T=-40°C
~+85°C, VDD33=3.3V±10%) unless otherwise noted. All typical specifications are at TA=25°C,
VDD33=3.3V unless otherwise noted.
ch
Dynamic Range 5000:1 @ 25°C
Active Energy Metering
0.1 % Fundamental frequency deviation
Error
within ± 25%
Error
e
Reactive Energy Metering
0.1 %
Dynamic Range 5000:1 @ 25°C
within ± 25%
Frequency Measurement
Range 40 70 Hz
Error 0.01 Hz
Analog Input
ADC
DC Offset 10 mV
On-chip Reference
ppm/°
Temperature Coefficient 10 30
C
ch
Output Voltage 1.210 V
Power Supply
Power-Down
Threshold
eDetection
2.5 2.7 2.9 V
ot
Digital Power Supply (DVCC)
Current 35 mA
Logic Input RX
ng
ch
V9240 -40 +85 ˚C
Operating Temperature
V9243 -40 +105 ˚C
e
PN Junction Temperature -40 +125 ˚C
ot
ng
Va
V924X 1.2V
RMSI_Inst.
REF
RMS RMSI_Avg.
Calculation RMSU_Inst.
DC RMSU_Avg.
BIAS LPF
UP
APGA ADC
U Phase compensation LPF
- HPF AC
DPGA
Active P_Inst.
Power P_Avg.
DC
BIAS LPF
ch
Reactive Q_Inst.
IAP
APGA ADC LPF
- HPF AC
DPGA Power Q_Avg.
IAN IA
TX/RX
VDD33
ng
Va
Table of Contents
Revision History ..................................................................................................................... 1
Features ................................................................................................................................. 3
Specifications ......................................................................................................................... 5
ch
Figure List .............................................................................................................................. 2
1. Reset ............................................................................................................................. 5
1.1. Power-On Reset (POR) ................................................................................................ 5
1.2. RX Reset ................................................................................................................... 5
1.3.
1.4.
e
Global Software Reset ................................................................................................. 6
Registers ................................................................................................................... 7
ot
2. Clock ............................................................................................................................. 8
2.1. 3.2768-MHz RC Oscillator ............................................................................................ 8
2.2. 32.768-kHz RC Oscillator ............................................................................................. 8
2.3. Registers ................................................................................................................... 9
ch
8. Interrupt ..................................................................................................................... 36
8.1. Configuration Verification Interrupt ............................................................................. 37
8.2. Zero-Crossing Interrupt ............................................................................................. 38
8.3. Registers ................................................................................................................. 39
9. Registers ..................................................................................................................... 40
9.1. System Control Register ............................................................................................ 40
9.2.
9.3.
9.4.
e
Calibration Parameter Registers .................................................................................. 43
Checksum Register ................................................................................................... 45
Software Reset Control Register ................................................................................. 45
ot
9.5. System Status Registers ............................................................................................ 46
9.6. Metering Control Registers ......................................................................................... 48
Figure List
Figure 1-1 Timing of POR ............................................................................................................................................. 5
ch
Figure 6-2 Command Frame for Read/Write/Broadcast Operation ...................................................... 14
e
Figure 7-3 Phase Compensation ............................................................................................................................. 22
Figure 7-4 Digital Input and DC Removal (Current Signal is taken as an Example) .................... 23
ot
Figure 7-5 RMS Signal Processing ......................................................................................................................... 24
Table List
Table 1-1 Reset Related Registers ........................................................................................................................... 7
Table 6-2 Structure of Data Byte (B7:B0) From Master MCU to V924X on Write Operation .... 16
Table 6-3 Structure of Data Byte (B7:B0) From V924X to Master MCU on Write Operation .... 16
ch
Table 6-4 Structure of Data Byte (B7:B0) From Master MCU to V924X on Read Operation ..... 17
Table 6-5 Structure of Data Byte (B7:B0) From V924X to Master MCU on Read Operation ..... 17
Table 6-6 Structure of Data Byte (B7:B0) From Master MCU to V924X on Broadcast Operation
......................................................................................................................................................................................... 18
e
Table 7-1 Analog PGA Configuration .................................................................................................................... 20
Table 7-6 fsmpl Determines Phase Compensation Resolution and Correction Range..................... 22
Table 8-3 System Status Clr Register (0x019D, SysStsClr, R/W) ........................................................... 39
ch
Table 9-7 System Status Register (0x00CA, SysSts, R) ................................................................................ 46
Table 9-8 System Status Clr Register (0x019D, SysStsClr, R/W) ............................................................ 47
e
ot
ng
Va
1.Reset
In the V924X, the chip will be reset to Default State when POR, RX reset or global software reset occurs.
ch
When POR event occurs, bit RSTSRC (bit[5:3] of SysSts, 0x00CA) is reset to 0b001.
In the reset state, the master MCU and the specific metering architecture cannot access the RAM.
When the chip exits from the reset state, the RAM will implement self-check in about 1.25ms. If no error
occurs, the RAM can be accessed.
e
In the reset state, the UART serial interface is idle. The interface starts to run immediately once the
chip exits from the reset state.
ot
DVCC
1.45 V
VSS
When the output voltage on pin “DVCC” is higher
than 1.45 V, the reset signal Will be released and the
500 μs chip will exit from the Reset State in 500 μs.
ng
Internal reset
signal
Reset state
RAM
self-checking
RAM access 1.25 ms
// When the output voltage on pin “DVCC" is
higher than 1.45 V, RAM can be
accessed in about
Va
UART
communication
1.2. RX Reset
The input on pin RX must be driven low for at least 70ms to force the chip into the reset state. Pull the
logic high, and 900μs later the chip exits from the reset state and gets back to Default State.
When RX reset occurs, bit RSTSRC (bit[5:3] of SysSts, 0x00CA) is reset to 0b011.
In the reset state, the master MCU and the specific metering architecture cannot access the RAM.
In the reset state, the UART serial interface is idle. The interface starts to run immediately once the
chip exits from the reset state.
Reset st at e
ch
500μs
RAM
RAM Access self-check
1.25ms
//
30.9ms
When input on pin RX is pulled
high, the RAM c an be accessed in
30.9ms.
UART
e
communication
30ms
Baud rat e adaptive init ialization
ot
Figure 1-2 Timing of RX Reset
state, and the chip will exit and get back to Default State in 650μs.
When global software reset occurs, bit RSTSRC(bit[5:3]of SysSts, 0x00CA) is reset to 0b100.
In the reset state, the master MCU and the specific metering architecture cannot access the RAM.
When the chip exits from the reset state, the RAM will implement self-check in about 1.25ms. If no error
occurs, the RAM can be accessed.
Va
In the reset state, the UART serial interface is idle. The interface starts to run immediately once the
chip exits from the reset state.
Internal reset
signal
Reset state
500μs RAM
RAM Access self-check
1.25ms
//
ch
RAM can be accessed.
UART
communication
e
Figure 1-3 Timing of Global Software Reset
1.4. Registers
ot
Table 1-1 Reset Related Registers
0 1 0 Reserved.
0x01BF, SFTRST
Readable and writable, in the form of 32-bit 2’s complement.
Software Reset Control
Write 0x4572BEAF to the register to reset the system.
Register
2.Clock
There are 2 on-chip RC oscillation circuits (3.2MHz/32KHz) provide clocks for the V924X:
On-chip 3.2768MHz RC oscillator generates the clock (CLK1) that works as a clock source for the
specific metering architecture (VMA), ADCs and UART serial interface. This circuit can be disabled.
After POR, RX reset or global software reset, this circuit will be enabled automatically.
On-chip 32.768kHz RC oscillator generates the clock (CLK2) that works as the clock source for the
filters for some key IO ports. This circuit keeps on working until the system is powered off.
Metering clock
MDIV
ch
MEACLK
e
ot
CLK2
IO port filter
32.768kHz RC
ng
is within ± 20% from chip to chip for mass production. The temperature deviation from -40~85(105)
degree for each specific chip is less than 3%.) clock (CLK1) to work as a clock source for the specific
metering architecture, ADCs and UART serial interface.
2.3. Registers
Table 2-1 Clock Generation Related Registers
ch
ADCCLKSEL<1:0> 00: 819.2kHz; 01: 409.6kHz; 10: 204.8kHz; 11: 102.4kHz.
e
To select the clock frequency for the specific metering
architecture (MEACLK).
Bit19 0: 3.2768MHz; 1: 819.2kHz.
0
ot
MEACLKSEL The sampling frequency of the ADCs must be a quarter or one
0x0180 eighth of the metering clock (MEACLK) frequency when the
chip operates with full functions in Metering Mode.
SysCtrl
0: No adjustment
1: X1.2
3.Operation Mode
When the chip is working, it can be reset to Default State when POR, RX reset, or global software reset
occurs. Table 3-1 lists the states of functional units in the V924X in Default State.
In Default State, the typical load current is 500μA. Some easy configuration can drive the chip to work
in Metering Mode.
ch
3.2MHz RC oscillator Enabled.
e
Power supply monitoring circuit Enabled.
ADC Disabled.
to enable or disable the ADCs, to configure the sampling frequency to 819.2kHz or 204.8kHz;
Va
to configure MEACLK frequency to 3.2768MHz or 819.2kHz; the operating mode can be configured
to enable only the parameter configuration self-checking or to achieve all functions.
4.Power Supply
Analog
Oscillator
circuits
VDD33
0.1 μF
Power supply
POR
monitor monitor
ch
monitor
DVCCLDO DVCC
Digital circuits
4.7 μF 0.1 μF
The VDD33 is for the digital circuit power supply, and for the analog circuit power supply, oscillator,
power-on reset, and power-down detection circuit are integrated. The connection among the modules as
shown above.
ng
interrupt signal is triggered, and the flag bit PDN (bit7 of SysSts) and PDN_R(bit6 of SysSts) are set to
1. When the power down event disappears, the flag bit PDN will be cleared automatically and PDN_R(bit6
of SysSts) should be cleared manually
VDD33
Power-Down
detection
threshold
PDN flag
CLR operation
PDN_R flag
ch
Figure 4-2 Power-Down Interrupt
e
4.2. Power on Reset Circuit
ot
In the V924X, the internal power-on reset circuit supervises the output voltage on pin DVCC all the
time. When the output voltage is lower than 1.45V, the reset signal is generated and forces the chip into
reset state. When the output voltage is higher than 1.45V, the reset signal is released. Please refer to
1.1 Power-On Reset (POR).
ng
Va
5.Bandgap Circuit
In the V924X, the Bandgap circuit outputs a reference voltage and bias voltage, about 1.210V with a
typical temperature coefficient of 10ppm/˚C, for ADCs and the 3.2MHz RC oscillator.
Users can configure bit[18:16]( REST<2:0>) and bit[15:14]( RESTL<1:0>) of SysCtrl (0x0180) to
adjust the temperature coefficient to compensate the temperature coefficient error introduced by the
external components with the following steps:
1) Assume the current settings of relative bits are REST<2:0>=’010’ and RESTL<1:0>=’00’, which
ch
means an additional +20ppm for temperature coefficient of Bandgap.
2) Measure meter errors in high and low temperature conditions. Assume user has calibrated the meter
error to 0 at 20℃, and the measuring errors are 0.6% at 80℃ and -0.4% at -40℃ separately. Then a -
(0.6%-(-0.4%))/2=-0.5% measuring error needs to be compensated relative to high temperature
working condition, equivalent to -0.5%/(80-20)=-5000/60=-83ppm, rounding to -80ppm.
3) As measuring error is minus two times of REF temperature coefficient error, to compensate a -
e
80ppm error, an additional +40ppm of Bandgap REF temperature coefficient adjustment is needed.
Taking the initial +20ppm setting into consideration, the actual adjustment should be +60ppm. According
to the lookup table of RESTL<1:0> and REST<2:0>, user should set register RESTL<1:0> to ‘01’ and
ot
REST<2:0> to ‘111’, whose combination equals to a +60ppm temperature coefficient adjustment.
A temperature coefficient drift of x in the Bandgap circuit results in a drift of -2x in the measurement
error.
ng
6.UART Interface
The V924X supports communication with the master MCU as a slave via UART serial interface. The
UART serial interface has features:
A 11-bit data byte, composed of 1-bit Start bit, 8-bit Data bits, 1-bit Parity bit (odd), and 1-bit Stop
bit;
Least significant bit (LSB) shifted in or out firstly when the chip receives or transmits a byte;
Automatic baud rate adaption: support 1200bps~19200bps, and typical baud rates are 1200bps,
2400bps, 4800bps, 9600bps, and 19200bps.
ch
When a reset event, such as POR, RX reset or global software reset, occurs, the UART serial interface
is reset.
e
The data byte received and transmitted via the UART serial interface of the V924X is composed of 11
bits, including 1-bit Start bit (logic low), 8-bit Data bits, 1-bit odd Parity bit and 1-bit Stop bit (logic
high), as shown in the following figure. When the V924X receives or sends a data byte, the least
ot
significant bit always is shifted in or out firstly.
START B0 B1 B2 B3 B4 B5 B6 B7 P STOP
Address
Head Byte Control Byte Data Byte 0 Data Byte 1 Data Byte 2 Data Byte 3 Check Byte
Byte
V92xx receives a command frame and sends a respond frame Receive and send
the next frame
// //
START
RX START STOP START 8-bit data, 1-bit parity STOP
// //
tF tR
//
TX START 8-bit data, 1-bit parity STOP START STOP
//
1st to 7th bytes tRB
of the command frame
tRF tRTD tTB tTBD tTRD
tTF
ch
Table 6-1 UART Communication Timing Parameters
Parameter Description
11
tRB tRB=
baudrate
e
Where, baudrate is the actual baud rate.
The maximum time between two bytes when receiving a command frame on pin “RX”
ot
tRF tRF=20ms
After a timeout event, the UART interface is idle and waits for the next command frame.
The delay between command frame reception on pin RX and respond frame transmission
on pin TX.
ng
1ms≤tRTD≤20ms
tRTD
Please note no respond frame will be transmitted in broadcast communication, and at
least 1ms delay is recommended between two continuous command frames for broadcast
communications.
Time to transmit a respond frame in read or write operation, depending on the structure
Va
tTF
of the frame.
11
tTB tTB=
baudrate
The delay between respond frame transmission on pin TX and the next command frame
tTRD
reception on pin RX. More than 1ms is recommended.
The master MCU needs a command frame, composed of 8 data bytes, to write of a 32-bit data to the
register of the V924X. When it receives the command frame, the V924X will transmit a respond frame,
composed of 4 data bytes, to reply to the master MCU. On both transmission and reception, the LSB is
shifted in or out firstly.
ch
Table 6-2 Structure of Data Byte (B7:B0) From Master MCU to V924X on Write Operation
Order Byte B7 B6 B5 B4 B3 B2 B1 B0
1 Head Byte 0 1 1 1 1 1 0 1
e
3 Address Byte The lower 8 bits of the target register address.
The checksum. Add the above 7 data bytes, invert the sum, and then add it
8 Check Byte
ng
Table 6-3 Structure of Data Byte (B7:B0) From V924X to Master MCU on Write Operation
Order Byte B7 B6 B5 B4 B3 B2 B1 B0
1 Head Byte 0 1 1 1 1 1 0 1
Va
The checksum. Add the above 3 data bytes, invert the sum, and then add it
4 Check Byte
to 0x33 to obtain the checksum.
The master MCU needs a command frame, composed of 8 data bytes, to read of a 32-bit data of a
register of the V924X. When it receives the command frame, the V924X will transmit a respond frame,
composed of 4×N+4 (1≤N≤255) data bytes, to reply to the master MCU. On both transmission and
reception, the LSB is shifted in or out firstly.
Order Byte B7 B6 B5 B4 B3 B2 B1 B0
1 Head Byte 0 1 1 1 1 1 0 1
3 Address Byte The lower 8 bits of the target register address (D1).
The length (N, in unit of Word) of the data to be read from the registers
located at the addresses beginning with the target address (D1) given by the
Control Byte and Address Byte. When Data Byte 0 is 0, it means 1 data word
(4 bytes) is read out.
ch
4 Data Byte 0 When the master MCU reads of the target address only, N is 1.
6
Data Byte 1
Data Byte 2
e No actual function.
ot
7 Data Byte 3
The checksum. Add the above 7 data bytes, invert the sum, and then add it
8 Check Byte
to 0x33 to obtain the checksum.
Table 6-5 Structure of Data Byte (B7:B0) From V924X to Master MCU on Read Operation
ng
Order Byte B7 B6 B5 B4 B3 B2 B1 B0
1 Head Byte 0 1 1 1 1 1 0 1
N, equal to Data Byte 0 sent from master MCU to V924X on read operation.
3 Length Byte
When Data Byte 0 is 0, N is equal to 1.
… … …
The checksum. Add the above 4×N+3 data bytes, invert the sum, and then
4×N+4 Check Byte
add it to 0x33 to obtain the checksum.
ch
The master MCU needs a command frame, composed of 8 data bytes, to write a 32-bit data to the
registers of more than one V924X in broadcast communication. When receiving a command frame, the
V924X should not transmit a respond frame to reply to the master MCU to avoid communication error.
On receiving a data frame, the LSB is shifted in or out firstly.
e
When the external MCU processes two consecutive broadcast write operations to the metering chip, it
is recommended to wait for at least 1ms.
ot
Table 6-6 Structure of Data Byte (B7:B0) From Master MCU to V924X on Broadcast Operation
Order Byte B7 B6 B5 B4 B3 B2 B1 B0
1 Head Byte 0 1 1 1 1 1 0 1
The checksum. Add the above 7 data bytes, invert the sum, and then add it
8 Check Byte
to 0x33 to obtain the checksum.
*X can be 0 or 1.
7.Signal Processing
The metering clock (MEACLK) is sourced by CLK1, generated by the 3.2MHz RC oscillator. When circuit
stops running, the specific metering architecture stops working.
For the current channel, a current transformer (CT) or shunt resistor can be used for analog inputs.
The double-ended full differential input is adopted. The wiring is shown as below. The shunt resistor can
ch
also be used for the current input with AGND grounded.
CT R1
IP
C1
R3 C3
R4
C2
IN
e
R2
N L
CT
ot
Load R1
IP
C1
C3
Resistor
R2
Shunt
C2
IN
ng
N L Shunt Resistor
inputs. The current channel consists of 2 fully differential voltage inputs. And the voltage channel consists
of 2 pseudo differential voltage inputs: UP is positive input for voltage channel, and UN (inside the chip),
connected to ground, is negative input for voltage channel.
PT
UP
CF
RF
N L
Potential Transformer
UP
CF
Ra
RF
ch
L N
e
Figure 7-2 Analog Input of Voltage Channel
Each input has a maximum voltage of ±200mV, and each pair of a maximum differential voltage of ±
400mV. To match the output signal of the transformers to the measurement scale of the ADCs, analog
ot
programmable gain amplifiers (APGA) with possible gain selection of 1, 4, 16, and 32 for current input,
and of 1 and 4 for voltage input, are set. The analog PGA gain is determined by the output signal of the
transformer. The product of the output signal and PGA gain (including digital and analog PGA) must be
no higher than voltage reference. Equation 7-1 depicts the signal processing of current and voltage:
ng
Where PGAu and PGAi is the analog PGA gain for voltage and current; Au and Ai are the amplitude of
the input signals (V); DCu and DCi are the DC components of the raw voltage and current.
0x0180 To set analog PGA gain of analog input of Current Channel (IA).
SysCtrl The analog PGA gain is determined by the output signal of the
Bit[23:22]
0 sensor. The product of the output signal and PGA gain (both
GIA<1:0> analog and digital) must be no more than voltage reference.
Adjust the global bias current. 00: -33%; 01: 1; 10: -66%; 11:
0x0182 -75%.
Bit[9:8] IT<1:0>
AnaCtrl0 Under the normal metering condition, this bit must hold the
default value for proper operation.
ch
Register Bit Default Description
e 0b01.
ot
7.2. Analog-to-Digital Conversion
Second-order Σ-ΔADCs are applied in the voltage and current channels in the V924X. In the default
ng
Bit29 Set this bit to 1 to enable U Channel ADC. This bit is cleared
Va
0 by default.
0x0180 ADCUPDN
SysCtrl Bit27 Set this bit to 1 to enable IA Channel ADC. This bit is set
0 to 0 by default.
ADCIAPDN
A phase compensation circuit composed of a chain of time-delay units is applied to correct the phase
I I
PHC_U_I
PHC_U_I
Time-delay circuit
U U
ch
Register Bit Default Description
PHC(0x00F7) Bit[8:0] 0 Where Bit8 is the sign bit of IA channel phase compensation value.
The sampling frequency (fsmpl) of the phase compensation circuit is 3.2768 MHz by default. The phase
compensation resolution is 0.005°/lsb, and the maximum phase error correction range is ±1.4°. The
sampling frequency (fsmpl) of the phase compensation circuit is determined by the configuration of the
MEACLKSEL bit (bit 19, SysCtrl, 0x0180).
ng
Compensate the phase error at power factor of 0.5L . The value (N) of the phase compensation control
register can be calculated by the following formula (rounded up to the result of the calculation):
3011 fsmpl
N = Round( × E× )
2 819200 Equation 7-2
Va
Where
Table 7-6 fsmpl Determines Phase Compensation Resolution and Correction Range
Correction
N Configuration fsmpl (Hz) Resolution (°/lsb)
Range (°)
LPF2 DC
BIAS
Figure 7-4 Digital Input and DC Removal (Current Signal is taken as an Example)
The 1-bit code stream output from the oversampling Σ/ΔADC can be enabled to be sent to the
ch
decimation filter to suppress the high-frequency noise and to lower the sampling frequency to get the
raw waveform of each signal. And finally the original waveform of the 29-bit (bit[28:27] sign bit) is
received.
The signal input to the decimation filter is enabled or disabled via configuring bit[29:27] of SysCtrl,
0x0180. When this function is enabled, the code stream is accumulated to the filter; when this function
is disabled, a constant “0” is input for digital signal processing.
e
The raw waveform is transferred to a subtractor to remove the direct drift introduced by the external
components and ADCs, with the help of the DC bias preset in registers IAADCC (0x0104)and UADCC
ot
(0x0106). Then, the signals are processed as follows:
- The signals are transferred to low-pass filter LPF2 to obtain the DC components of the signals that
can be read out from registers for DC components;
- By default the signals are transferred to a high-pass filter (HPF) to remove the DC components of
the raw waveforms and obtain the AC components to calculate power and RMS;
ng
The method of obtaining the DC bias value of the oversampling ADC in the IA and U channels is:
- (2)Read the values of DC measurement register UDCINST (0x00D9), IADCINST (0x00DA)and write
into the register IAADCC (0x0104)and UADCC (0x0106).
Va
In the DC metering application scenario, the users can disable the DC removal high-pass filter by
configuring the BPHPF bit (bit2, SysCtrl, 0x0180) and configure DC bias values in register IAADCC
(0x0104)and UADCC (0x0106) to eliminate the DC drift introduced by external devices and ADCs, so
that DC power can be calculated.
The data format of the DC component register of the voltage / current signal is 32-bit complement.
The read operation is valid and the write operation is meaningless.
When the energy metering clock frequency is 3.2768MHz, the DC component register data update time
is 160ms and the settling time is 320ms.
When the energy metering clock frequency is 819.2kHz, the DC component register data update time
is 640ms and the settling time is 1280ms.
Register Description
The users can configure the digital gain of the voltage signal through the system control register
(SysCtrl, 0x0180) to amplify the AC component of the signal. It can be configured up to 4 times, but the
product of the maximum input signal and the total gain should be guaranteed to be less than the
reference voltage. It is recommended to use the analog gain for gain adjustment.
ch
Table 7-8 Digital Gain Configuration of Voltage Signal
AC of IA(t) x IAINST
LPF
ng
S
IADCC
IAC
A channel R
0x00CE IAINST instantaneous current 32-bit 2’s complement
RMS
Instantaneous voltage R
0x00CF UINST 32-bit 2’s complement
RMS
A channel average R
0x00D3 IAAVG 32-bit 2’s complement
current RMS
ch
7.5.1. RMS Calculation Equation
e
In the metering chip design, the voltage/current RMS calculation equation (Take current as an example):
2 PGAi Ai
Irms 0.99992 PGAdi Equation 7-3
ot
2 1.210
Where,
According to the above method, the raw RMS of each channel signal is obtained. After the gain
Va
calibration, the instantaneous RMS (U / I) is obtained, and then the average RMS (U / I) is obtained. All
of the above values are stored in the corresponding data registers.
When MEACLK frequency is 3.2768MHz, the data are updated in 10ms and settled in 160ms; the
update time for all voltage / current RMS values is 320ms and the settling time is 960ms.
When MEACLK frequency is 819.2kHz, the data are updated in 40ms and settled in 640ms; the update
time for all voltage / current RMS values is 1.28s and the settling time is 3.84s.
The current or voltage RMS calculated via the above equations must be gain calibrated, as depicted in
the following equation:
Where,
RMS’ is the raw current or voltage RMS, calculated via the above equations;
In order to eliminate the crosstalk noise, the metering chip supports the offset calibration of RMS, the
users can eliminate the noise power by setting the IADCC and UDCC.
ch
Take IA channel as an example, the implementation method is as follows:
Set the current input on the calibration equipment to 0. The average RMS IAAVG is read, and IAAVG
^ 2 is calculated. In the 64bit data, bit[39:8] is taken as the empirical value of the offset calibrated RMS
to write into register IADCC.
e
When the current is re-applied, the accuracy of the current RMS will be effectively improved.
AC of U(t) LPF
S
PADCC
PAC
Va
where, PGAdi and PGAdu are digital PGA gains of current and voltage; PGAi and PGAu are analog PGA
gains of current and voltage; Ai and Au are the amplitude of current and voltage inputs; θ is the phase
difference between voltage and current signals; 0.99985 is the gain introduced by the filters.
When MEACLK frequency is 3.2768MHz, registers for instantaneous active power are updated in 160ms
and settled in 480ms; and registers for average active power are updated in 640ms and settled in 1.28s.
When MEACLK frequency is 819.2kHz, registers for instantaneous active power are updated in 640ms
and settled in 1920ms; and registers for average active power are updated in 2.56s and settled in 5.12s.
A channel R
0x00CC PAINST instantaneous active 32-bit 2’s complement
power value
instantaneous reactive R
0x00CD QINST 32-bit 2’s complement
power value
A channel average R
0x00D0 PAAVG 32-bit 2’s complement
active power value
ch
Average reactive power R
0x00D1 QAVG 32-bit 2’s complement
value
0x00F8 PADCC
e Low-current
calibration of
signal
active
R/W
32-bit 2’s complement
ot
power for A channel
In the metering chip design, in order to correct the system deviation between the various channels,
the calculated active power and reactive power are required to be processed with the gain calibration
first and then be stored into the corresponding data registers.
Assuming the raw active power is P', the RMS after calibration is P, and the gain calibration value is S,
the relationship among the three is as follows:
P P’ 1 S Equation 7-6
The users can set the corresponding gain calibration values in the power gain registers (PAC, QC).
In order to eliminate the crosstalk noise, the metering chip supports the offset calibration of power.
The users can eliminate the noise power by setting the PADCC and QDCC.
BPF
u(t) From HPF ZERO
CROSSING FREQ
32
32
32
DETECTION
ch
Figure 7-7 Line Frequency Measurement Schematic Diagram
e
The V924X supports line frequency measurement. In the line frequency measurement circuit, the
fundamental voltage signal is sampled at a frequency of 6400Hz for negative-to-positive zero-crossing
ot
detection. Each cycle (20ms) outputs a frequency measurement (ie, the number of samples between
two positive zero-crossing values), stored in the frequency instantaneous value register (FREQ, 0x00CB,
read only). In order to improve the frequency measurement accuracy, the average 16 cycles operation
is proceeded toward the instantaneous frequency to get the average frequency (FREQAVG, 0x00D2
readable and writable).
ng
In the V924X, a band-pass filter is applied to remove the direct component, the noise and the harmonic
wave of the voltage signal to obtain the fundamental voltage for line frequency measurement. The
performance of the band-pass filter is affected by the number of bits to be shifted and the filter coefficient.
When fewer bits are shifted, the filter needs less time to respond, is less sensitive to the frequency
deviation, and has less capability to depress the noise and harmonics.
T8BAUD
𝑓 = 0.00390625 × K ′ × Equation 7-7
FREQAVG
Where:
When a POR reset, software reset, or RX reset occurs, the voltage frequency register will be reset.
Register Description
Instantaneous frequency value register. Read only. When the energy metering
0x00CB FREQINST
clock frequency is 3.2768MHz, it will be updated every 20ms.
ch
Frequency average value per second register. Readable and writable. When the
0x00D2 FREQAVG
energy metering clock frequency is 3.2768MHz, it will be updated every 320ms.
e
7.7.2. Voltage Phase Measurement
The metering chip supports the voltage phase measurement function. The signal processing is shown
ot
in Figure 7-7. The working principle is that the master MCU broadcasts command via UART to write 1 to
the register PHS_STT (0x0198). When it is analyzed as the phase measurement command by the chip,
6.4kHz sampling frequency will be used (At normal operating frequency, the voltage signal sampling
points per cycle is 128 points, that is, 6.4kHz sampling frequency) for counting until the positive zero-
crossing event occurs. The counting value will be written into the phase register PHDAT (0x00DE), and
ng
the positive two voltage sampling values before and after zero-crossing, ZXDATREG (0x00DC), ZXDAT
(0x00DD), will be recorded to facilitate the users to do interpolation operations for more accurate phase
values.
In the multi-metering chip system, according to the values of this register, the phase relationship and
the phase difference among each metering chips can be determined.
Va
7.8. Calibration
A channel R
0x00CC PAINST instantaneous active 32-bit 2’s complement
power value
ch
instantaneous reactive R
0x00CD QINST 32-bit 2’s complement
power value
A channel R
0x00CE IAINST instantaneous current 32-bit 2’s complement
RMS
0x00CF UINST
e Instantaneous voltage
RMS
R
32-bit 2’s complement
ot
A channel average R
0x00D0 PAAVG 32-bit 2’s complement
active power value
Average frequency R
ng
A channel average R
0x00D3 IAAVG 32-bit 2’s complement
current RMS
ch
calibration
0x00FF UC
e Voltage
calibration
RMS gain R/W
32-bit 2’s complement
ot
A channel ADC bias
0x0104 IAADCC R/W 32-bit 2’s complement
current calibration
Where, V is the RMS value of the input signal; G is the gain; and K is a coefficient, K=9.19495302×108.
Example 1: When the sampling signal of the voltage channel is 36.7mV and the gain is 4, the value of
RMS=0.0367×4×9.19495302×108=0x80BA916
Including: Average active power register (PAAVG, 0x00D0) and average reactive power register (QAVG,
0x00D1). The value of the active power register can be calculated according to the following equation:
Where, Vi and Vv are RMS of the input current and voltage; Gi and Gv are the analog PGA gains for
ch
current and voltage respectively; cosθ is the power factor; θ is the phase difference between the current
signal and the voltage signal ; Bp is a coefficient, Bp=7.09441×108.
e
Pvalue 0.000875 32 0.0367 4 7.09441 × 10 8 0x2C7EF6
The data of the current/voltage RMS/power register can be calculated according to Equation 7-8,
ng
Equation 7-9 and Equation 7-10 (there is a difference between the calculated data and the direct reading
of the corresponding register data, but not much different). This data is only ADC sampling data, if users
want to convert it into intuitive RMS/power data, the users need to calculate a fixed ratio by the following
equation, and multiply the actual reading of the register and the ratio to get the correct voltage/current
RMS/power, that is, RMS and power data shown on the LCD screen.
Vn
D= Equation 7-11
Va
Value
Where, Value is the value of voltage/current RMS/power registers acquired by Equation 7-8, Equation
7-9 and Equation 7-10; D is the ratio; and Vn is the rated voltage/current/power.
Phase compensation is to ensure that the low power factor can also maintain certain measurement
accuracy. Users must first complete the gain calibration, and then the phase compensation.
The values corresponding to the 9-bit 2’s complement of bit [8: 0] of the phase compensation register
(PHC, 0x00F7) are used to set the phase compensation values.
Compensate the phase error at power factor of 0.5L . The value (N) of the phase compensation control
register can be calculated by the following formula (rounded up to the result of the calculation):
Where
ch
Including all gain registers of power and RMS.
The values of the gain registers can be calculated according to the following equation:
1 1
S = 231 ( - 1) + S1( ) Equation 7-13
1+ e 1+ e
Where,
e
S is the content to be set in the registers for gain calibration of power or RMS, in the form of 2’s
complement;
ot
S1 is the original gain value of the registers; ie the uncalibrated RMS values/the original values of
power gain calibration registers, in the form of 2’s complement;
e is the error: When this equation is used for the power gain calibration, e is the error displayed on
the LCD screen of the calibration equipment (E); when this equation is used for the current/voltage
RMS gain calibration, e is the error (Eu/Ei) calculated by Equation 7-16 or Equation 7-17.
ng
The value of the power offset calibration value register (C) can be calculated from the following
Va
equation:
Where,
E is the error displayed on the LCD screen when a% Ib are applied at power factor of 1.0;
Users must configure the following parameters when designing an energy meter:
- Parameters for a meter, including rated current, rated voltage, pulse constant, and accuracy class,
etc.
- Parameters for design, including the current and voltage RMS when rated current and rated voltage
are applied.
ch
- The analog PGA gains of the current and voltage channels.
- The ratio (D) of RMS and power calculated via Equation 7-11.
When the above parameters are set, no changes should be done to them.
e
The step of getting the gain calibration value of the power data (E):
ot
1. Read the Pn displayed on the LCD screen of the calibration equipment.
2. Read the power data P1 from the meter LCD (P1 is the product of the value of the average power
data register and the power data scale coefficient D).
3. Calculate the gain calibration value of the power data according to the following method
ng
P1 −Pn
EP = Equation 7-15.
Pn
For example, at power fact of 1.0, apply 100% Ib and 100% Un to the calibration equipment.
Va
Get the gain calibration value of the power data (E), and read the value of the gain calibration register
(PAC, 0x00F6), (the raw value for gain calibration, S1) and then calculate the value for gain calibration
via Equation 7-13 and write it to the register PAC (0x00F6).
2. Phase compensation
After completing the power gain calibration, in the case of PF = 0.5L, apply 100% Ib and 100% Un to
the calibration equipment for the phase calibration.
During the gain calibration, the register PHC (0x00F7) must be cleared first. Get the gain calibration
value of the power data (E), calibrate the values of phase compensation according to Equation 7-12, and
write to the corresponding bit of the register.
PF = 1.0, 5% Ib (usually, 2% Ib) and 100% Un are applied to the calibration equipment. Get the gain
calibration value of the power data (E). The offset calibration values calculated according to Equation
2. When the power factor is 1.0, apply 100% Ib current to the calibration equipment;
3. Read the current RMS I1 from the LCD of meter (I1 is the product of the value of average current
RMS register and the current RMS scale coefficient D);
4. Calculate the value of gain calibration of current RMS according to the following equation:
ch
I - Ib
Calculate error first: Ei = 1 Equation 7-16, the unit of current is mA;
Ib
Calculate the value of gain calibration according to Equation 7-16, and then write to the current
RMS gain calibration register.
e
7.8.3.4. Offset Calibrating of Current RMS (optional)
When the current is re-applied, the accuracy of the current RMS will be effectively improved.
ng
3. Read the voltage RMS U1 from the meter LCD (U1 is the product of the value of the average
voltage RMS register and the voltage RMS scale coefficient D)
4. Calculate the gain calibration value of the voltage RMS according to the following method
U1 - Un
Calculate error first: Eu = U Equation 7-17, the unit of voltage is mV.
n
Then, calculate the gain calibration value according to Equation 7-17 and write to voltage RMS gain
calibration register.
8.Interrupt
In the V924X, 3 events can trigger interrupt signals that will set the flag bits to 1.
zero-crossing interrupt: the voltage sign bit is output as the zero-crossing interrupt;
ch
Register Bit Default Description
e
sign of the voltage.
0 0 0 Reserved.
0 1 1 A RX reset occurs.
0 1 0 Reserved.
ch
configurations are in their desired states. If the sum
is 0xFFFFFFFF, the verification passes, and this bit is
read out as 0; otherwise, the verification fails, and
this bit is read out as 1.
e
8.1. Configuration Verification Interrupt
The metering chip accumulates all the values of all the registers shown in the following table every
ot
5ms.
The configuration verification measure: add the content of the register CKSUM (0x0109) and that of
the other 23 registers listed in the following table. If the sum is 0xFFFFFFFF, it indicates all the
configurations are right; otherwise, it indicates some change has occurred to the registers, an interrupt
signal will be triggered, the flag bit CHKERR (bit2 of SysSts) will be set to 1. The configuration verification
ng
is executed all the time, and the sum is calculated once every 5ms. The flag bit will hold its state until
the sum of the content of 25 registers is 0xFFFFFFFF.
The register CKSUM should be written of the difference between 0xFFFFFFFF and the sum of the content
of the other 23 registers.
Va
Defaul
No Register R/W
t value
ch
10 0x0106 UADCC Voltage ADC bias DC calibration R/W 0
14
15
0x0180
0x0182
e SysCtrl
AnaCtrl0
System configuration register
R/W
0
0
ot
16 0x0183 AnaCtrl1 Analog control register 1 R/W 0
0x00FA\0x00FC
17~
\0x0100~0x01 Keep the default value. R/W 0
23
03\0x0105
ng
When the voltage signal crosses the zero point, a zero-crossing interrupt is triggered, the sign bit
USIGN (bit11, SysSts) toggles following the voltage signal.
Va
Voltage
USIGN_flag bit
ch
Figure 8-1 Zero-Crossing Interrupt
8.3. Registers
e
ot
Table 8-3 System Status Clr Register (0x019D, SysStsClr, R/W)
Bit[31:10] Reserved R/W N/A The read value is indeterminate and meaningless.
Bit9 PHSDONE_CLR R/W 0 The flag bit for whether the phase measurement ends or
not. 0: Not finished; 1: Finished. It can be cleared by
writing 0 to this bit.
Va
Bit[8:7] Reserved R/W N/A The read value is indeterminate and meaningless.
Bit6 PDN_CLR R/W 0 Power down interrupt flag. This bit is read as 1 when the
system is powered down, ie when the level on the VDD33
pin is below Power-Down detection threshold. When the
power-down event disappears, the flag is read as a value
of 1. It can be cleared by writing 0 to this bit.
Bit[5:0] Reserved R/W N/A The read value is indeterminate and meaningless.
9.Registers
ch
Table 9-1 System Control Register (0x0180, SysCtrl, R/W),
Bit29
e
ADCUPDN 0
Set this bit to 1 to enable the voltage (U) channel ADC. U
channel ADC is disabled by default.
ot
Bit28 Reserved 0
Bit[25:24] Reserved 10
Bit[23:22] GIA<1:0> 00 size. It should ensure that the product of maximum signal
and PGA is less than the reference voltage.
ch
during normal metering, it must be configured according to
Bit[18:16] REST<2:0> 0 the calculated result. The calculation method, please refer
to Bandgap Circuit chapter.
e
The temperature coefficient of the voltage reference
(Bandgap) circuit is roughly adjusted. In order to obtain the
best metering performance and temperature performance
ot
Bit[15:14] RESTL<1:0> 0 during normal metering, it must be configured according to
the calculated result. The calculation method, please refer
to Bandgap Circuit chapter.
ch
From “0b11111” to “0b10000”, the RC clock frequency
is increased by 2% per LSB.
e
60Hz system, users can increase the high frequency RC
clock default frequency of 3.2768MHZ to 1.2 times of the
original.
ot
0: No adjustment 1: X1.2
Bit5 IEHSE 0 This bit must hold the default value for proper operation.
0: Disable; 1: Enable.
0: Disable; 1: Enable.
0: ×1; 1: ×4.
Bit0 Reserved 0
Bit[31:10] Reserved 0 This bit must hold the default value for proper operation.
Adjust the global bias current. 00: -33%; 01: 1; 10: -66%; 11: -
75%.
Bit[9:8] IT<1:0> 0
Under the normal metering condition, this bit must hold the default
value for proper operation.
Bit[7:0] Reserved 0 This bit must hold the default value for proper operation.
ch
Table 9-3 Analog Control Register 1 (0x0183, AnaCtrl1, R/W)
Bit[31:30]
e
Reserved 0 This bit must hold the default value for proper operation.
Bit[27:0] Reserved 0 This bit must hold the default value for proper operation.
ng
registers will be reset to the default state. If not specifically noted, the default values in the tables of this
section are in format of hexadecimal.
R/ Default
Address Register Description
W
To set gain 0
calibration of R/
0x00F6 PAC 32-bit 2’s complement
active power for W
A channel
ch
resolution is 0.005°/bit, and the maximum
phase error correction range is ±1.4°.
e
active power for
A channel
To set gain R/ 0
ot
calibration of W
0x00F9 QAC 32-bit 2’s complement
reactive power
for A channel
A reactive R/ 0
QADC power low- W
ng
A channel R/ 0
0x00FD IAC current RMS W 32-bit 2’s complement
gain calibration
Va
A channel R/ 0
IADC current RMS W
0x00FE 32-bit 2’s complement
C low-current
calibration
Voltage RMS R/ 0
0x00FF UC 32-bit 2’s complement
gain calibration W
A channel ADC 0
IAAD R/
0x0104 bias current 32-bit 2’s complement
CC W
calibration
Voltage ADC 0
UADC R/
0x0106 bias DC 32-bit 2’s complement
C W
calibration
Voltage low- 0
R/
0x0108 UDCC current signal 32-bit 2’s complement
W
calibration
ch
9.3. Checksum Register
Table 9-5 Checksum Register (0x0109, CKSUM, R/W)
Read this bit to detect the sign of the voltage. The flag
ch
cannot be cleared. This bit toggles following the sign of the
voltage.
Bit9 PHSDONE_R R 0 The latch value of flag bit for whether the phase
measurement ends or not. 0: Not finished; 1: Finished.
Bit8
e
BISTERR R 0 The internal RAM will be self-checked immediately after a
global reset event occurs. The self-checking will be finished
in 1.25 ms. After the self-checking, if this bit is read out as
ot
‘1’, it indicates that the self-checking of the internal RAM
fails. If this bit is read out as ‘0’, it indicates that the
internal RAM is ready to be accessed; but if this bit is read
out as ‘1’ again after another reset event, it indicates that
there is something wrong with RAM.
ng
Bit6 PDN_R R 0 Power-down interrupt flag latch value. This bit is read as 1
when the system is powered down, ie when the level on the
VDD33 pin is below Power-Down detection threshold. When
the power-down event disappears, the flag bit will be read
out as 1.
Bit[5:3] RSTSRC R 0
Read the Bit [5: 3] to determine the cause of the reset.
0 0 1 A POR occurs.
0 1 1 A RX reset occurs.
0 1 0 Reserved.
ch
Bit2 CHKERR R 0 Read this bit for the state of configuration verification. The
read value is refreshed every 5ms.
Bit1 PHSDONE R 0 The flag bit for whether the phase measurement ends or
not. 0: Not finished; 1: Finished.
Bit0 REF R 0 Set this bit to high when the REF external capacitor starts
to leak. Otherwise this bit is low. The read and write
operations do not change the level of this bit.
Va
Bit[31:10] Reserved R/W N/A These values are indeterminate and meaningless.
Bit9 PHSDONE_CLR R/W 0 The flag bit for whether the phase measurement ends or
not. 0: Not finished; 1: Finished. It can be cleared.
Bit[8:7] Reserved R/W N/A These values are indeterminate and meaningless.
ch
Bit[5:0] Reserved R/W N/A These values are indeterminate and meaningless.
e
When power-on reset, RX reset or global software reset occurs, all metering control registers will be
reset.
ot
Table 9-9 Data Register (R/W)
ch
complement
time for the register
value is 10ms and the
settling time is 160ms.
e
power value frequency is
32-bit 2’s 3.2768MHz, the update
0x00D0 PAAVG
complement time for the register
ot
value is 640ms and the
settling time is
1280ms.
value frequency is
32-bit 2’s 3.2768MHz, the update
0x00D1 QAVG
complement time for the register
value is 640ms and the
settling time is
1280ms.
Va
Voltage
instantaneous 32-bit 2’s
0x00D9 UDCINST R
DC component complement
value
ch
A channel
instantaneous 32-bit 2’s
0x00DA IADCINST R
DC component complement
value
The previous 0
0x00DC
e
ZXDATREG
sampling value
of
crossing
zero-
R
32-bit 2’s
complement
ot
The sampling 0x80000000
32-bit 2’s
0x00DD ZXDAT value of zero- R
complement
crossing
data complement
T8BAUD
𝑓𝑟𝑐 = K ′ ×
8
Where:
frequency RC clock
actual frequency;
register (0x00E0);
Voltage frequency:
ch
𝑓
= 0.00390625 × K ′
T8BAUD
×
FREQAVG
Where:
e f: Actual voltage
frequency
ot
T8BAUD: Value of the
register (0x00E0)
FREQAVG: Frequency
ng
second register
(0x00D2)
θ1
h
h
A3
R1
R
A2
A
L2
B θ2
A1
θ4
L
(L1)
D
ch
b
b1
V924X c1 c
YYWW E
E1
e b
number of characters of Lot
Number varies between 8 to
11.
ot
YY: Year
WW: Week
ng
Va