基于单片机控制的交流调功器设计I基于单片机控制的交流调功器设计摘要摘要:晶闸管调整器是各种电加热装置系统中的的控制核心,它对整个控温系统的正常运行、温度调节的优劣具有重要影响。目前,国内工业应用中传统的晶闸管调整器存在着控制精度低、通讯功能差等缺点,无法满足现代化工业生产的要求。伴随着现场总线技术与智能控制技术的发展,晶闸管调整器的智能化和总线化成为该领域的必然发展趋势。因此设计一套高精度、低功耗和成本低的交流调功器具有重要意义。首先在对调功系统的调功方法、电路构成、以及系统需求的研究与分析的基础上,进行了总体方案的设计,在此基础上进行了合理的硬件设计与软件设计。由单片机作为主控制器,晶闸管调整器单元的硬件部分以单片机为主控单元,完成数据的处理、存储及显示等功能;此外,设计了相关外围电路的设计。关键词:晶闸管调整器;DP总线;SPC3基于单片机控制的交流调功器设计IIDesignofACpowerregulatorbasedonsinglechipmicrocomputerAbstractAbstract:Thyristorregulatorcontrolisthecoreofallkindsofelectricheatingdevicesinthesystem,ithasanimportantinfluenceonthenormaloperationofthetemperaturecontrolsystemoftemperatureregulationquality.Atpresent,thereexistdisadvantagesoflowcontrolprecision,poorcommunicationfunctionssuchastraditionalthyristorregulatorfordomesticandindustrialapplications,unabletomeettherequirementsofmodernindustrialproduction.Alongwiththedevelopmentoffieldbustechnologyandintelligentcontroltechnology,intelligentandbushasbecomeaninevitabletrendofthedevelopmentofthefieldofthyristorregulator.Therefore,thedesignandapplicationofsinglechipmicrocomputercontrolledACpowerregulatorbasedon,hasbecomeaveryvaluabletopic.Firstintheswappowersystempowerregulatingmethodandcircuitstructure,andresearchandanalysisofsystemrequirementsbasedon,theoverallprogramdesign,basedonthereasonablehardwaredesignandsoftwaredesign.BytheMCUasthemaincontroller,thehardwarepartofthethyristorregulatorunit,maincontrolunitMCUtocompletetheprocessing,storageanddisplayofdata;inaddition,thedesignofperipheralcircuitdesignKeywords:thyristorregulator,DPbus,SPC3基于单片机控制的交流调功器设计III目录摘要.............................................................................................................................................IAbstract....................................................................................................................................II目录........................................................................................................................................III1绪论........................................................................................................................................11.1选题背景及意义.........................................................................................................11.2系统设计原理及方案.................................................................................................11.2.1设计原理..........................................................................................................11.2.2设计方案..........................................................................................................21.3设计难点.....................................................................................................................32系统硬件电路设计................................................................................................................42.1控制器的的选择.........................................................................................................42.1.1MCS—51单片机的特征....................................................................................42.1.2系统主控芯片的介绍......................................................................................42.2系统硬件原理.............................................................................................................52.3交流调功器工作原理.................................................................................................62.4调功器主电路的硬件组成.........................................................................................82.5系统控制电路的硬件设计.......................................................................................102.5.1系统控制电路硬件原理图............................................................................102.5.2占空比显示电路............................................................................................113系统软件设计及抗干扰措施..............................................................................................153.1系统主程序流程图...................................................................................................153.2系统初始化...............................................................................................................163.3显示子程序流程图...................................................................................................193.4输入给定值中断服务程序.......................................................................................203.5抗干扰措施...............................................................................................................203.5.1硬件抗干扰....................................................................................................21基于单片机控制的交流调功器设计IV3.5.2软件抗干扰....................................................................................................214调试故障分析......................................................................................................................234.1故障分析...................................................................................................................234.2单片机系统可靠性测试...................