摘要
针对定点DSP计算高精度电能质量相关电参量时计算量不足和数据溢出的问题,提出了对电参量算法的优化方法。根据定点DSP数据最大为32bit和善于计算乘累加的特点,改进电参量算法在DSP上的实现方式,并给出了算法优化推导过程,分析了优化前后的误差。通过实验验证经过优化后可以有效的防止数据溢出,大幅度降低计算量,避免了更换DSP带来的二次开发。
To address the problem of computation insufficiency and data overflow in calculating high-precision elec-tric power quality related parameters using fixed-point DSP,we propose the optimization algorithm for electrical pa-rameters. According to the characteristic of fixed-point DSP that has maximum 32 bit data length and is efficient in multiplication and accumulation,we improve the way of implementation of electrical parameter algorithm on the DSP, then present the derivation of algorithm optimization and analyze the error before and after optimization. Finally,the experiment verifies that after optimization,the algorithm can effectively prevent data overflow and reduce the amount of calculation,therefore avoid the secondary development caused by the replacement of DSP.
出处
《电测与仪表》
北大核心
2014年第22期72-75,81,共5页
Electrical Measurement & Instrumentation
关键词
电参量
算法优化
电能质量
DSP
DSP
electric parameters
algorithm optimization
electric power quality