I am building an energy meter based on the ADE7753. I have been trying to calculate the Vrms ,Irms and the energy over a specific period. I am trying to use the zero crossings (ZX) interrupt to sample the Vrms and Irms at the same place every time. The problem is the ZX interrupt FLAG never gets set.This resulting in the program getting stuck in the while loop waiting for the ZX interrupt. The same is happening with the CYCEND interrupt. Is there something I could be doing wrong?
The design was based on the ADE7753 Evaluation Board with Neutral used as ground. The MCU (STM32f411) communicates nicely with the ADE7753 via SPI and the reading and writing of the #raegisters works fine. (except that the MODE register changing back to default shortly after being set.)
I hope you can help me with this problem.
Thank you in advance.