AnsweredAssumed Answered

PROBLEM READING LAENERGY REGISTER

Question asked by deepthi on Jun 12, 2017
Latest reply on Jul 2, 2017 by aheredia

I am working on ADE7763. I have problem reading my laenergy register. This is the code I had 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 cycles and 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 modify something in my circuit. I m using the same circuit from datasheet.

Outcomes