ADE7753 is very specific chip designed for specified custom job, we only manipulate according to its data sheet.
see the AENERGY register in the pic.
0X02 it address
AENERGY Reg.Name
R Read only
24 24 bits lenght
0X0 its initial value when it powered up
S It is a signed register
So I can't make it Dim R_data(4) as byte or I can't write in it. it value aromatically create by the Voltage rms and current rms I can read it is strictly 3 bytes.
any how I have enough information specially I want to try the idea of Mr. Visovian as he mention
Code:
Dim Num24 As Long ' 24-bit two's complement
Dim Result As Long ' (signed) long
Do
If Num24.23 = 0 Then
Result = Num24
Else
Result = Num24 - 16777216
End If
Thank's of all
let me check all these advices.
↧