I am working on ADE7763. I have problem reading my laenergy register. This is the code I had used
writeRegister(0x09,0x8C); //mode reg
writeRegister(0x1C,0x90); //line cycles reg
writeRegister(0x0A,0x04); //interrupt enable reg
Serial.println("The LAENERGY value got is:");
readRegister(0x0B,2); //interrupt status
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.