TIDUFB8 December 2024
In electricity meters, the energy consumption of the load is normally measured in a fraction of kilowatt-hour (kWh) pulses. This information can be used to accurately calibrate any meter for accuracy measurement. Typically, the measuring element (the MSPM0+ MCU) is responsible for generating pulses proportional to the energy consumed.
This application uses average power to generate these energy pulses. The average power accumulates at every DRDY port ISR interrupt, thereby spreading the accumulated energy from the previous one-second time frame evenly for each interrupt in the current one-second time frame. This accumulation process is equivalent to converting power to energy. When the accumulated energy crosses a threshold, a pulse is generated. The amount of energy above this threshold is kept and a new energy value is added on top of the threshold in the next interrupt cycle. Because the average power tends to be a stable value, this way of generating energy pulses is very steady and free of jitter.
The threshold determines the energy tick specified by meter manufacturers and is a constant. The tick is usually defined in pulses-per-kWh or just in kWh. One pulse must be generated for every energy tick. For example, in this application, the number of pulses generated per kWh is set to 6400 for active and reactive energies. The energy tick in this case is 1kWh / 6400. Energy pulses are generated and available on the ACT and REACT pin headers and also through light-emitting diodes (LEDs) on the board. GPIO pins are used to produce the ACT and REACT energy pulses.
Figure 3-6 shows the flow diagram for pulse generation with a pulse constant of 6400, though TI recommends reducing this value to 3600 or even lower if the energy meter supports currents beyond 80A.
The average power is in units of 0.001W and a 1kWh threshold is defined in Equation 14.