Post Go back to editing

ADE78xx xWATTOS Register

Category: Software
Product Number: ADE78xx

Hello.
I would like to know something about the offset register.
I use a translator, so I write the minutes separated by as short a sentence as possible.


The calibration method using the offset register does not work.
I have carried out the Calibration of the WATTOS Registers on page 8 of AN-1076.
First, the LCYCMODE register was set to 0x09 in order to apply only to phase A.
"LINE CYCLE MODE" was used to measure the AWATTHR.

Systematically the following conditions were used
fl = 50 Hz
---------------
VN = 200 V
IN = 0.7227A
WTHRN = 2645190203 (THR0 = 11167291, THR1 = 157)
LINECYCN = 1000
AWATTHRN = 346
---------------
Vmin = 40V
Imin = 0.1449A
WTHRmin = PMAX = 33516139 (THR0 = 16738923, THR1 = 1)
LINECYCmin = 1000
AWATTHRmin = 1065
---------------
↓
AWATTOS = 1153599

After measuring AWATTOS, the power was returned to normal accumulated power mode and the THR register was also restored to its original state. (power analyser was used to compare the accumulated power)
After setting AWATTOS, the error in accumulated active power was measured and the error was about 345% at VN=40V. (Before setting AWATTOS, the error in accumulated active power was around 0.2% when VN = 200 V and around 3% when VN = 40 V.)
I think the AWATTOS setting is wrong, but I could not understand what is wrong.
Could you please tell me what is wrong?


As an aside, before setting xIRMSOS and xVRMSOS, the error in accumulated apparent power was about 3% at VN=40V, but by setting xIRMSOS and xVRMSOS, it improved to 0.01% even at VN=40V.
The accumulated active power error remains large because the AWATTOS setting does not work.

Please help us.

  • The AWATTOS = 1153599 that was listed forgot to multiply by 2 and the correct AWATTOS = 2307198.
    The calculation was based on the formula shown below.

    The accuracy will still deteriorate with this value.
    However, if we divide the obtained value by (100*sqrt(3)) and set the value in the WATTOS register, the accuracy improves.

    (Before the offset register was set, the error in the total effective power value was 3%, but after the offset register was set, the error was close to 0%.)
    Why is this?


    When I was calculating this, I remembered that, come to think of it, the GAIN register also did not work well with the calculated values listed, even when calibrated as per AN-1076.
    It took me a very long time to understand how this device works and how to set the registers.

    The operations performed when setting the gain register are as follows
    The values calculated based on the values measured with the power analyzer are written as "pwr".
    RMS" is the AD value.

    Conditions:
    VN = 200 V
    IN = 0.73A

    Each register value of ADE7858:
    VRMS = 2390180
    IRMS = 2809911

    Calculate the potential difference that would occur at the analog pins of the ADE7858A when VN = 200 V and IN = 0.73 A from the circuit constants and the current sensor used.
    If the potential difference is known, it can be calculated by 0.5/5928256 per LSB, which gives the theoretical AD value that ADE7858 should receive.
    VRMSpwr = 2374856
    IRMSpwr = 2942492

    Once we have these two AD values, we know the value that should be set in the gain register.
    xVGAIN = (VRMSpwr / VRMS - 1) x 100 x 100000
    xIGAIN = (IRMSpwr / IRMS - 1)×100×100000

    The gain register value is now obtained.
    This is what we found when we changed the value of the register in various ways. If we set the value of the gain register to 1000000, the measured AD value changed by 10%. I calculated backward from this and derived the above equation.
    The AN-1076 did not even list x100 x 100000.


    Is it really correct to still do x100 x 100000? I don't know, but I arrived at x100×100000 by changing the values of the registers and deciphering the xRMS values.
    I also arrived at the value of xWATTHR by deciphering the value of xWATTHR while changing the value of the offset register, as (100*sqrt(3)) for the value of the offset register seems to work.

    Is there something fundamentally wrong with me about the gain and offset registers so doing it as per AN-1076 won't work?
    I'm going through a translator, so sorry if some of the sentences are hard to read.

    Please tell me.

  • First how do you calibration Igain and Vgain

    Igain and vgain are used to calibrate IRMS and VRMS to expected values based on the  %of fullscale on the adc inputs. 

    IRMS expected codes at test current (test current is aprox 10% of full-scale current) = %FS current * fullscale IRMS codes. 

    VRMS expected codes at test voltage (test Voltage is aprox 70% of full-scale Voltage) = %FS current * fullscale VRMS codes. 

    Igain and Vgain should be used to match the expected values. 

    This is the calculation for WATTHR/LSB assuming Igain and vgain are set properly

    WH_LSB = ((double)(((V_TEST * I_TEST * Power_factor) / 3600) * accumulation_time) / (((double)(PMAX * Percent_FS_Current * Percent_FS_Voltage  * 8000 * accumulation_time )) / ((double)(WTHR_Value)))); 

    If we use the  denominator we get the expected Value of WATTHR register with the current and voltage provided over time . 

    WATTHR =  (((double)(PMAX * Percent_FS_Current * Percent_FS_Voltage  * 8000 * accumulation_time )) / ((double)(WTHR_Value)))); 

    "One LSB in the active power offset register is equivalent to 1 LSB in the active power multiplier output."

    You can work backwards from  watthr to wattos 

    expected WATTHR - WATTHR = offset to be corrected. 

    WATTOS = (offset to be corrected * WTHR ) / (8000 * accumulation time)

    This value is written to the WATTOS register.

    The voltage is usually kept at Vnom and the current is changed. Wattos is usually from Voltage to current crosstalk on the PCB .  Wattos is a constant that is added that is related to your nominal voltage. If you change your voltage from 200V to 40V and your current you will find the wattos might work a 40V but not at 200V with the same low current in both conditions. 

    I suggest you keep V constant 200V and change I from 10% of adc fullscale to .1% of fullscale. At lower currents is where any crosstalk will have the biggest impact. 

    Dave

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.