摘要本设计是基于单片机STC而设计的纯正弦波逆变电源。额定输入电压为12V的直流电,输出为50Hz,220V的交流电。额定输出功率为300W。设计了全方位的保护电路。包含了可以根据温度来控制散热风扇的开启。实现了输入低压、过压的关断功能。当输入的电压过低时,停止逆变,可以防止损坏蓄电池,当输入的电压过高时,停止逆变,可以防止损坏芯片。拥有输入防反接功能,当输入正负极接错时,关断输入与后级电路的连接,不会烧坏芯片或蓄电池。采用了一个液晶屏来显示输出的电压,输出频率等信息。采用了两个发光二极管来指示工作状态。采用了一个蜂鸣器,当产生错误时,发出蜂鸣报警。输出的交流电为标准的正弦波,而不是方波或修正波,可以实现更宽范围的带负载能力。根据测试,转换效率在85%以上,输出稳定,达到了良好的实验效果。关键词:单片机,逆变电源,正弦波,反接保护AbstractThedesignisbasedonSTCmicrocontrollerdesignedforpuresinewaveinverter.Ratedinputvoltageof12VDC,outputis50Hz,220VAC.Ratedoutputpowerof300W.Designedafullrangeofprotectioncircuits.Canbeincludedtocontrolthetemperatureonthecoolingfan.Achieveainputvoltage,overvoltageshutdownfunction.Whentheinputvoltageistoolow,theinverterisstopped,topreventdamagetothebattery,whentheinputvoltageistoohigh,theinverterisstoppedtopreventdamagetothechip.Hastheinputanti-reversefunctionwhentheinputisnegativethenthewrongtime,andaftertheshutdowninputstagecircuitconnectionswillnotburnchipsorbatteries.Usesaliquidcrystalscreentodisplaytheoutputvoltage,outputfrequencyandotherinformation.Usestwolightemittingdiodestoindicatetheoperatingstatus.Usesabuzzerwhenanerroroccurs,thealarmbeeps.ThestandardACoutputsinewave,ratherthanasquarewaveormodifiedwave,awiderrangecanbeachievedwithaloadcapacity.Accordingtothetest,theconversionefficiencyofmorethan85%,stableoutput,toachieveagoodexperimentalresults.KeyWords:MCU,Inverter,Sinewave,reversepolarityprotection目录1引言..................................................................................................................................31.1系统研究的背景............................................................................................................41.2系统研究的意义............................................................................................................52系统的工作原理与结构.......................................................................................................52.1系统的工作原理............................................................................................................52.2系统的硬件结构............................................................................................................92.3系统的软件设计..........................................................................................................103系统的硬件设计................................................................................................................113.1主控制器......................................................................................................................113.2DC-DC模块...................................................................................................................123.3DC-AC模块...................................................................................................................163.4保护模块......................................................................................................................213.5直流5V电路设计...........................