¥ ENERGY_PULSE_DURATION: This macro defines the duration of the LED ON time for an energy pulse. This is measured in ADC samples (that is, increments every 1/3906 s). The maximum allowed is 255, giving a pulse of about 62.5 ms, while 163 gives a pulse of 40 m. This duration might be too large with adjacent pulses overlapping when very high currents are measured. It is recommended that this value be changed to a smaller number such as 80 if overlap is seen at the pulse outputs.
¥ NEUTRAL_MONITOR_SUPPORT: This macro enables the support for neutral monitoring. The third SD24 is used for this purpose.
¥ VRMS_SUPPORT: This macro configures the meter to calculate VRMS from the voltage samples.
¥ IRMS_SUPPORT: This macro configures the meter to calculate IRMS from the current samples.
¥ REACTIVE_POWER_SUPPORT: This macro configures the meter to calculate the reactive power from the voltage and current samples.
¥ REACTIVE_POWER_BY_QUADRATURE_SUPPORT: This macro configures the meter to calculate the reactive power from the delayed voltage samples by 90° and current samples instead of using the power triangle method.
¥ APPARENT_POWER_SUPPORT: This macro configures the meter to calculate the apparent power.
¥ POWER_FACTOR_SUPPORT: This macro configures the meter to calculate the power factor for both lead and lag. A frequency-independent method, based on the ratio of scalar dot products, is used.
¥ CURRENT_LIVE_GAIN: This macro defines the gain of the SD24'sinternal programmable gain amplifier (PGA) for the line current. In this application it is set to 1.
¥ CURRENT_NEUTRAL_GAIN: This macro defines the gain of the SD24'sinternal PGA for neutral current monitoring. In this application it is set to 16.
¥ VOLTAGE_GAIN: This macro defines the gain of the SD24'sinternal PGA for the voltage. In this application it is set to 1.
¥ DEFAULT_V_RMS_SCALE_FACTOR_A: This macro holds the scaling factor for voltage at phase 1. It can be set to a value that is in an acceptable range and is fine tuned during calibration.
¥ DEFAULT_I_RMS_SCALE_FACTOR_A: This macro holds the scaling factor for current at phase 1. It can be set to a value that is in an acceptable range and is fine tuned during calibration.
¥ DEFAULT_P_SCALE_FACTOR_A_LOW: This macro holds the scaling factor for active power at phase 1. It can be set to a value that is in an acceptable range and is fine tuned during calibration.
¥ DEFAULT_I_RMS_SCALE_FACTOR_NEUTRAL: This macro holds the scaling factor for current at neutral. It can be set to a value that is in an acceptable range and is fine tuned during calibration.