
2
6
1024 10
DEFAULT_I_AC_OFFSET
Estimated noise level
Current Scaling Factor
§
·
u
u
¨
¸
¨
¸
©
¹
Embedded Metering Library API
5.5.3.2
Setting Default Calibration Parameters
Being part of metrology but not the metrology itself, the calibration parameter default values reading and
manipulation functions is provided as source code in the application level. The user defined default
parameter is defined in metrology-calibration-template.h and metrology-capacitor-compensation.h.
NOTE:
The file metrology-calibration-defaults.c provides the source code level support for default
values to be put into the flash. Unless the code is thoroughly understood do not modify the
code in this file.
5.5.3.2.1 DEFAULT_TEMPERATURE_INTERCEPT
ADC reading at the calibration temperature in 16 bits scale
5.5.3.2.2 DEFAULT_TEMPERATURE_SLOPE
ADC counts per 0.1 degree Celsius increment
5.5.3.2.3 DEFAULT_ROOM_TEMPERATURE
Calibration temperature in 0.1 degree C unit
5.5.3.2.4 DEFAULT_BASE_PHASE_A_CORRECTION
The phase correction between voltage and current channel due to hardware
5.5.3.2.5 DEFAULT_P_SCALE_FACTOR_A
Power scaling factor
5.5.3.2.6 DEFAULT_V_RMS_SCALE_FACTOR_A
Voltage scaling factor
5.5.3.2.7 DEFAULT_V_DC_ESTIMATE_A
DC offset of voltage channel ADC
5.5.3.2.8 DEFAULT_V_AC_OFFSET_A
Square of estimated noise level on voltage channel ADC (so small to be noticeable, usually put 0)
5.5.3.2.9 DEFAULT_I_RMS_SCALE_FACTOR_A
Current scaling factor
5.5.3.2.10 DEFAULT_I_DC_ESTIMATE_A
DC offset of current channel ADC
5.5.3.2.11 DEFAULT_I_AC_OFFSET_A
Square of estimated noise level on voltage channel ADC
Calculated as
(25)
46
Firmware and Embedded Metering Library API
SLAU587 – August 2014
Copyright © 2014, Texas Instruments Incorporated