1、before measurement, it is necessary to pass high precision the resistance is calibrated;
2、Measure each frame I, Q data first through the calibration formula to calculate the measured resistance value and reactance value, and then calculate the impedance amplitude and phase Angle. Calibration formula is as follows, including 𝐼𝑅 and 𝑄𝑅 are 𝑅𝑅𝐸𝐹 measurements (calibration process obtained average) , 𝑅𝑅𝐸𝐹 = 1000, 𝐼𝑅𝑥 and 𝑄𝑅𝑥 for measurement of the resistance under test, 𝐼𝐶𝑎𝑙 and 𝑄𝐶𝑎𝑙 are the real part (resistance value) and imaginary part (reactance value) of the resistance to be measured after calibration.
Ic = (IR*RREF)/(IR2 + QR2)
Qc = -(QR*RREF)/(IR2 + QR2)
Ical = (IRx*Ic - QRx*Qc)
Qcal = (IRx*Qc + QRx*Ic)
The essential complex operation of the calibration formula (where i is the imaginary part of the complex number):
RREF * (IRx + QRxi) /(IR + QRi)
To get the above equation, multiply the numerator and denominator by 𝑰𝑹− 𝑸𝑹𝒊.
The amplitude and Phase Angle of the impedance are calculated by the following formula, where Mag and phase are represented by 32-bit signed integer data, and the calculation result is multiplied by 1000 to make the data accuracy to the third decimal place.
Mag = sqrt( ICal*ICal + QCal*QCal ) * 1000
Phase = (180/Pi)*atan2(QCal, ICal) * 1000