以TMS320F2812 DSP为核心处理器,利用Q格式定标运算和IQmath函数库,提出了一种对电能进行在线高准确度计量分析的实用算法。首先采用硬件锁相环技术对电网信号同步采样控制,利用设计的FIR低通数字抗混叠滤波器滤除高次噪声及谐波等干扰信号,最后采用FFT算法分离电网中的电压、电流基波和各高次谐波分量以进行电能的高准确度计量分析。算法在实现过程中,利用Q格式定标法解决了在定点处理器上进行高速浮点运算问题,利用实数DFT的性质,减少了运算量,提高了FFT运算的计算速度。测试结果表明该算法能够对电能进行高准确度在线计量分析。
Using TMS320F2812 DSP as core processor,combined with Q format calibration method and IQmath li-brary provided by TI,an algorithm which can meter and analyze electric power online was presented.First,hard-ware phase-locked loop technology was used to achieve synchronous sampling of the power control signal.Then the designed FIR low-pass digital anti-aliasing filter was employed to filter out noise,harmonics and other high-order interference signal.Finally,the modified FFT algorithm was used in the separation of power grid voltage,current fundamental and the high-order harmonic components to carry out high-precision measurement and analysis of the relevant energy parameters.In the process of the algorithm implementation,using a Q format calibration method to accomplish high-speed floating-point operations in the fixed-point processor,the use of properties of real DFT can greatly reduce computational complexity and improve computing speed.The testing results show the proposed algo-rithm can achieve high accuracy of power analysis and measurement.