ADE7880 PHASE CALIBRATION

Hi,

We have done all the calibration steps from Document (AN-1171). While doing Phase Calibration from the document( Page 12,13) we Faced an issue.

In the document It is mentioned that We need write PhaseCompensation directly to APHCAL register if  Error(°)<=0 and add 512 to PhaseCompensation if Error(°)>0. But it is working in reverses. Can you please verify that and tell us what is correct and make us correct if we are doing anything wrong.