AnsweredAssumed Answered

Problem reading laenergy register

Question asked by deepthi on Jun 10, 2017

I am working on ADE7763. I have problem reading my laenergy register. This is the code I used

 

writeRegister(0x09,0x8C);   //mode reg
delay(250);
readRegister(0x09,2);
writeRegister(0x1C,0x90);   //line cycles reg
delay(250);
readRegister(0x1C,2); delay(250);
writeRegister(0x0A,0x04);   //interrupt enable reg
delay(250);
readRegister(0x04,3);
Serial.println("The LAENERGY value got is:");
Serial.println(u.speedlong);
delay(25000);
Serial.println("status:");
readRegister(0x0B,2); //interrupt status
delay(250);
readRegister(0x0C,2);
delay(250);

 

I set the cyclemode in mode register, gave the line cyclesand enabled the interrupt When I open Serial monitor to check, it is showing laenergy as '0'. Can someone help me to solve this. Should I do something else to my circuit?#

Outcomes