Hi!
I'm dealing with a load controlled by a PWM controller. Sometimes the output of the controller can go to very small values, conducting only one linecycle. I tried to measure the RMS values using two strategies, one with fast RMS and the other one with Vpeak. Vpeak works perfectly but it requires me to calculate the values on Firmare to get the RMS value

Just found it weird that fast RMS register (AIRMSONE - 0x219) gives me about 4ARMS. The wave has a peak of about 7,59Amps so I was hoping to get 5,3ARMS or similar.
Sometimes I can get the right value if I time the measurements using the IRQ0 interrupt by masking the RMSONERDY bit . Still, the ADE9000 gives me wrong values as well like 3,0 - 2.04 -4.05 etc. It never outputs clean 5.36ARMS
Can I be doing something wrong?
Currently I set RMS_SRC_SEL to one on the CONFIG0 reg(0x060) and thats just it I just write 1 to RUN register and start reading.
If somehow I can get the right measurment will other parameters follow? Like THDI, PF, THDV etc. Checking the datasheet I got confused, not sure if those registers can be updated so fast as well.
