I have communicated with ADE7758 with my Host MCU.
SPI Works fine and to Read/Write Default Values. From HOST ADE7758 to Host MCU.
I am giving 0 to +/- 500mV to Voltage and 0 to +/- 500mV to Current channel(s)
And able to read xVRMS and xIRMS resgiter.
I have able to read xWATTHR with
1) LCYCMODE Register , RSTREAD =1 Default Mode
2) LCYCMODE Register , RSTREAD =0, LWATT = 1 and LINECYC = 0x10.
But I am unable to understand ..
1)How to Convert xWATTHR in to real Watt. With Line Accumulation or With RSTREAD in Default.
2) Or If suppose, AVRMS = 0x1243412 and AIRMS = 0xCBCD12. What should be in AWATTHR Register.
On doing energy measurements, everything is just proportional and linear, a full scale value of 0.5V in current will give a 0xd7381 IRMS and 0x1902BD for VRMS (see datasheet for the 50 Hz). Also the full scale values will give 0xCCCD WATT going into the AWATTHR register. pls see the integration under steady load section on page 33 for reference.
Now you are using Line Cycle Accumulation mode, actually you will be talking here of Wh/LSBs. This will depend now on your values. If you use the WATTHR, is is the same proportion since it comes from the same energy loop. You can read the cal section on page 49 for Wh/LSB
Hope this helps.