ElectricalMeasurement&Instrumentation46526200910Vol.46No.526Oct.20090、。(DSP)DSP。TITMS320VC5509DSP、、、、、。DSP。11DSP。、、CPLD、、。TITMS320VC5509CPU。(CT)(PT)A/DADS8364、、A/DDSP、、、DSPLCDFLASHCPLD。*121,311.4100822.4760003.458030。。DSPTM933B1001-1390200910-0034-04SoftwareDesignandImplementationofReal-timePowerQualityMonitoringSystemDINGJie1,2HOUTie-bing1,3QUANHui-min1(1.CollegeofElectricalandinformationEnginteering,HunanUniversity,Changsha410082,China.2.ShangqiuVocationalandTechnicalCollege,Shangqiu476000,Henan,China.3.HebiVocational&TechnicalCollege,Hebi458030,Henan,China)AbstractAimingthecurrentsituationofthedemandofElectricalequipmenttopowerqualityismoreandmorethedesigningofhigh-precisionpowerqualityanalysissystemisofgreatsignificance.Inthispaper,basedonthetheoreticalstudyandhardwaredesign,wediscussedthesoftwaredesignofreal-timepowerqualitymonitoringsystem,andalsoComprehensivelyintroducedthespecificdesignofeachmoduleindetail,thusprovidedaneffectivesoftwarerealizationoftheprogramforrealizainghigh-precisionpowerdetection.Keywordspowerquality,softwaredesign,dataprocessing,DSP*(07JJ6134)34--ElectricalMeasurement&Instrumentation46526200910Vol.46No.526Oct.20092CCDSP[1,2]。2.1、[3]。DSPLCD。2。2.21TsFNNFTs。NFFT。AAB、CABCA、BCDSP。DSP50Hz。DSPDSP。A/D、、A/DADS8364、256[4]。2DSPDSP。A/DDSP。DSPFLASHA/D。、、。A/D。“”。3。1Fig.1FundamentaldiagramofsystemhardwarecircuitCTPT ADS8364TIDSP5509CPLDRAMFLASHRS232/485LCD2Fig.2ThemainprogramflowchartDSPLCD 1024??LCD! #$%#3Fig.3Samplingmoduleflowchart ?!#$%&?’()*+,-?./01.A/D23,45#6789:;NYYN35--ElectricalMeasurement&Instrumentation46526200910Vol.46No.526Oct.20092.31DSPDSP、a(M0RAMDFT,M1RAMDFT)M0,M1,L0L1,H0bPLL(PLLCR)、(HISPCP)(LOSPCP)c(PCLKCR)dPIEPIE。2。FFTFFT、、[5]。FFT6.4kHz6.4kHz128。400Hz16。St16FFT8。10。4。DSPRAM。DSP,。FFT、、DSP。。2.4。。。5。2.5。,AD8364,BUSYDSP,ABCA/D。。4Fig.4Monitoringmodulemainloopdiagram ?FFT !#$%&’()*+,-’./05Fig.5Thedatacommunicationmoduleprogramflowchart ?? 36--ElectricalMeasurement&Instrumentation46526200910Vol.46No.526Oct.20096。5509TOUT0ADS8364HOLDA/DCLKOUTADS8364CLKADS83643MHzADS8364EOC5509INT1INT16ADS83645509。3ADS8364TMS320VC5509。DSP5509MATLABCCS。[1]YangBi,JiangguoZhao,DahaiZhang.ResearchonPowerCommunicationNetworkandPowerQualityMonitoringUsingOPNET[Z].IndustrialElectronicsandApplications.2007,507-511.[2]BinghamR.P.Measurementinstrumentsforpowerqualitymonitoring[J].TransmissionandDistributionConferenceandExposition.2008,1-3.[3].[J].,2003,22143-47.OuYangsen,SongZhengxiang.Designofanewpowerqualitymonitorsystem[J].Advancedtechnologyofelectricalengineeringandenergy,2003,22143-47.[4].[J].,2008,31(6):65-71.ZhouBihong,ZhaoChunyu.Designofsynchronoussamplingclockgeneratorinpowerqualitymonitorsystem[J].Electronicmeasurementtechnology,2008,31(6):65-71.[5].[D].:,2007:46-50.XuKangping.Developentofelectricenergyqualitymonitordevice[D].Nanjing:SoutheastUniversity,amaster'sdegreethesis,2007:46-50.(1975-),、、。Email:dingjie2001@126.com1974-。Email:hbhtb888@126.com1971-、、、。Email:hmquan123@163.com2009-05-25va[k]K++vb[k]vc[k]ic[k] ia[k]K=0ib[k]K=1023?6A/DFig.6A/Dinterruptserviceroutineflowchart(21)。Matlab。[1].[M].:1997.[2].[Z].:1997.[3].[J]2004,40(2):148-149.[4].[M].:1981.[5]J.D.,.[M].1979.[6]B.B..[M].1989.[7]D.C..[M].:1992.[8].[J].2002,28(8):31-33.1970-。Email:zhao6323@sohu.com2009-08-0237--