毕业设计(论文)-单片机控制下可变输出电压的电源设计.docx

毕业设计(论文)-单片机控制下可变输出电压的电源设计.docx

北京林业大学本科毕业论文(设计) PAGE 北京林业大学本科毕业论文(设计) 单片机控制下可变输出电压的电源设计 全套设计加扣?3012250582 摘要 本开关电源设计采用STC12C5A60S2单片机产生的两路47KHZ的PWM脉冲信号,分别经过MOS驱动IC IR2104控制两个BUCK电路。单片机内部自带的10位ADC能通过电压电流检测电流实时反馈两路的电流和电压数值,并由此调整输出的PWM的占空比,形成电压闭环控制系统。按键能设置输出电压从0V到30V的限度,0.1V步,液晶能显示实时输出电压与电流。在额定功率1A输出的情况下,满载的供电效率为82%。经测试按键设置的输出电压的误差小于0.15V。 关键词:开关电源,BUCK,STC单片机,IR2104,可调输出 PAGE PAGE II Design of power supply for variable output voltage controlled by MCU Abstract This switching power supply design uses STC12C5A60S2 microcontrollers to produce two PWM pulse signals of 47KHZ ,then go through the IC IR2104 driven by MOS,controlling the two BUCK circuits.The 10-bits internal ADC of the MCU can detect a real-time voltage and current to feedback the output current and voltage values, then adjusting the duty cycle of the output PWM according to the feedback above ,forming a closed-loop control system of Voltage.The button sets the output voltage values ranging from 0V to 30V with 0.1V per step, the LCD screen displays a real-time output voltage and current values. With 1A output current at the rated power,the full-loaded power efficiency is about 82%.Through testing the errors brought by buttons set the output voltage are less than 0.15V. Key words:Switching power, BUCK, STC microcontroller, IR2104, Adjustable output PAGE PAGE IV 目录 TOC \o 1-3 \h \u 1 绪论 1 1.1课题研究意义 1 1.2研究现状及存在问题 1 1.2.1国外研究现状 2 1.2.2国内研究现状 2 1.2.3目前存在的问题 2 1.3研究内容和方式 2 2系统分析 4 2.1 系统论述 4 2.2 Buck工作原理 4 2.2.1在电感充电的情况下 4 2.2.2在电感放电的情况下 4 2.3 Buck稳压分析 5 2.3.1 LC滤波电路参数推导 5 2.4小结 6 3硬件设计 7 3.1总体框架 7 3.2各部分电路的选择 8 3.2.1 单片机 8 3.2.2 IR2104半桥驱动电路 8 3.2.3 电路供电电源的选择 9 3.2.4 电流检测电流 9 3.2.5 电压检测电路 11 3.2.6 按键电路 11 3.2.7 液晶显示模块 12 3.3 小结 12 4软件设计 14 4.1主程序程序设计 14 4.2 按键子程序设计 14 4.3 ADC中断程序 15 5系统测试 18 5.1 实物图片 18 5.2 电压调整率测试 19 5.2.1 测试仪器 19 5.2.2 测试方式 19 5.2.3 测试结果 20 5.3 负载调整率测试 20 5.3.1 测试仪器

文档评论(0)

1亿VIP精品文档

相关文档