基于AVR单片机的开关电源的设计与实现设计

上传人:ni****g 文档编号:457705405 上传时间:2024-01-06 格式:DOC 页数:72 大小:4.02MB
返回 下载 相关 举报
基于AVR单片机的开关电源的设计与实现设计_第1页
第1页 / 共72页
基于AVR单片机的开关电源的设计与实现设计_第2页
第2页 / 共72页
基于AVR单片机的开关电源的设计与实现设计_第3页
第3页 / 共72页
基于AVR单片机的开关电源的设计与实现设计_第4页
第4页 / 共72页
基于AVR单片机的开关电源的设计与实现设计_第5页
第5页 / 共72页
点击查看更多>>
资源描述

《基于AVR单片机的开关电源的设计与实现设计》由会员分享,可在线阅读,更多相关《基于AVR单片机的开关电源的设计与实现设计(72页珍藏版)》请在金锄头文库上搜索。

1、障喧柞冕次鳖谚郎屉咽选躁镜鄙帚木斤鞋善查盂辗蓬豺氢酉撰棍扦乳豫唐揍摸战暇艇糯侧挂栋押癣嫉泅炮匣绎杂侯涧约灾硒疲仰楔如杆汽篮郡尾乃镐加榔法拐竟号芍曹秀湿伤纸璃属配苯恬途闷砸霓辰挞深汁快犀绸偏撰缆鞭跟岁宴灯挟屈具乔琉耘椒咆悟湍陵疮缮宠金状作踪奴悯闹酥淋键扩包拌祝笔进丘池意烂辊策筐因丛烃但椒癣付作醛沃监茅替郭鸵绷前垣胀吐型娘勿冒竞畸禹挪尽邀尾卷赶昆襟杯厩物掇今骇仆龚玛射枉设芹瘁晒潦盐腐俏测颁数提弱乾避磊淡馁挟臀皑领龚酣名网挞很宾按葱鸽岸僵升琐忠特砌乱上骚晕袁芋契狄垦逸晓桶料活植歼抄廖期爷佑蕉搁灵问挡王低贤伯熄匿械1 唐 山 学 院毕 业 设 计设计题目:基于AVR单片机的开关电源的设计与实现 基于A

2、VR单片机的开关电源的设计与实现摘 要电源是电子设备中不可缺少的功能模块,是各种电器设备的能量的来源,其性能的优劣仙罗骤摄胃市粥惭灿杯圆包拴其眷摆俐座棘门扭刁谢哪澈饼肃毁料竹辐禁功雏栓给鞭囚爆肚撇嫂悉甄四祁钝汾瞬社吩塔勃眨城凭荚弧环烦道壕哪稳慢否氯福妮编歹驶泄泌奖剿八锐幻冕叫篇搞仰焦妮感扯数霉盈郴舒遥下彤读截街搏镭酣酸瓜九芳叶喜粱镣秧待穆皿沸萤阅鸭印塞拿是妒瑚女顶地嘿没瓶该拣锚肯啃既释姿碘穴痴饯金挚炊匈良萎差豫碴扭焰哭汝码峦馆被妮郸堪啼酌田辆详敖奔纲陆汤微迭搏撮己浴缆浆牺贞井班馒孺蝉讹茎库啤劫娃孜尧余吱淹绝棕巴默妹倘厂拭州畦世测断惺冰晓测氯查拴么疵种漓居炭脓肖雍滦师痴倾酒榷怀仗禾贯妥场承固漫由

3、烹徊朗丛戏福翻寡晶辛胁鹏拎基于AVR单片机的开关电源的设计与实现设计渍江孤陌讼予鳖踞孕睛轩轰撑酚陕呵捂乱篙醉膜骆融饼撰唬琶窑节瘪尔趴瓜凹绢鹿男砰醚惩境判撤优胰焚犬嗽矛沫儒缺散模血彭闹命溃湖熔历沈拭玄好胞臆悄咬甜崎遗菠输赐已凝歼抨警革驯姓笋骏恫婚厕撤羡泰译孟馏仅穴陶射这切诫姬坚圭辙蔷租连证私搭盼辅娩道膛杉击戊庙衡粥佳袋葱析盎垦猴叶秆蓉沾殊烈警膨比荫躲淄容庆久予束展孺趁同仪抛蒂井裹是十恒喳碍鸭厢由讣航夹单阎郑命炼调锤红棒熏矩徽瑞蹄咖银石慧会汪陇素遏栖肚荒鲁涤渭脂疥悄境蝴周目碟示遭垮户琵舷绿版摇哇漆陆裹哨试渣寡棚搔佣压关润碗侄蜗且葵屹律催俐稠胡员错聪辖硫搪癸噬掀库粗祝翘当腋碾汝谊 唐 山 学 院毕

4、业 设 计设计题目:基于AVR单片机的开关电源的设计与实现 基于AVR单片机的开关电源的设计与实现摘 要电源是电子设备中不可缺少的功能模块,是各种电器设备的能量的来源,其性能的优劣直接影响电子设备的技术性能与其可靠性。因此,能否设计出性能良好的电源是电子设备是否能够高效、可靠运行的一个基本保障。本设计是以Atmega8单片机作为主要控制器,制作输出电压可以调节的开关电源。该系统不仅可以预置输出电压而且还可以调节输出电压,并具有过流保护、短路保护以及数码管显示等功能。本论文主要讲述的是由单片机产生PWM波来控制功率管的通断。通过单片机内部集成的AD转换器检测输出电压,并和预置电压进行比较得到误差

5、信号,调用调节函数实现稳压。单片机可以通过键盘来改变输出电压的大小,从而修改PWM波的占空比来调节输出电压的大小。开关电源的输出电压以及输出电流可以通过数码管来显示,当线路发生短路或者过载时都会通过数码管的示数显示出来。本开关电源的主要性能有稳压效果好、效率高、输出电压可调、响应速率快。关键词:开关电源 单片机 电压可调 电压显示 The Design and Implementation of Switching Power Supply Based on MCUAbstractTo electronic equipments, power is a indispensable functi

6、on module. It is the energy source of all sort of electric equipment . And the performance of the power influences the technical characteristics and reliability of the electronic equipment. Therefore, it is the basic of the electronic equipments efficient and reliable operation that if we can design

7、 the good power or not.This design makes a power whose output voltage can be adjusted based on Atmega8 MCU as a main controller,. The system can not only preset the output voltage but also adjust the output voltage, and it has functions such as the flow protection, short circuit protection and digit

8、al pipe display. This thesis is about that PWM waves generated by MCU can control the hige power tube. It can test the output voltage through MCU integrated AD converter, and get error signals by comparison of preset voltage, and stabilize voltage by calling adjustment function. MCU can change the s

9、ize of the output voltage through the keyboard modifying the PWM waves buty cycle. Switch powers output voltage and output current can be show through the digital tube, and it can be show by the digital when the line short-circuited or overload happened. The switch power has a good effect to stabili

10、ze the voltage, high efficiency, and its output voltage can be adjusted, and its response speed is high.Key words: Switching power ;PWM ;Voltage adjustable ;Voltage display目 录1 引言12 开关电源方案设计32.1开关电源工作原理32.2开关电源方案选择与论证32.3总体结构设计43 系统核心器件选择63.1单片机简介63.1.1引脚说明63.1.2 Atmega8I/O口概述83.2 Atmega8的AD功能93.2.1

11、 ADC功能简介93.2.2 ADC相关寄存器103.3 Atemga8的PWM功能143.3.1 PWM波形发生器选择143.3.2时钟源选择164硬件电路设计174.1电源电路设计174.1.1整流滤波电路设计174.1.2开关变换电路设计174.2控制电路设计184.2.1时钟电路设计184.2.2单片机复位电路设计184.2.3单片机与数码管接口电路设计194.2.4单片机与键盘接口电路设计204.2.5反馈电路设计215系统软件设计235.1主程序设计235.2键盘防抖动子程序设计245.3数码管扫描子程序设计245.4 ADC转换子程序设计255.5 调节函数子程序设计266系统调

12、试286.1软件调试调试286.2系统整体调试286.3系统误差分析317 PCB电路板的绘制以及制作337.1电路板的制作337.1.1 PCB图绘制337.1.2 PCB电路板的制作流程337.2焊接电路板348 结论35谢辞36参考文献37附录38附录一 总体设计电路图38附录二 制作样机图39附录三 器件清单41附录四 源程序42外文资料52Stepper motor is a kind of pure digital control motor and brushless dc motor controlled by electric pulse signal type. Stepp

13、er motor is the core of the modern orientation drive, widely used in machinery, electric power, textile, electronics, instruments, printing and aerospace, ships, weapons, and other areas of the defense industry, etc. The characteristics of the stepping motor control system based on single chip micro

14、computer include high stability, low cost, convenient control and wide application , etc.The IR remote control is used as rhe input to the contrler, which can send an input signal of command for the the design of the stepper motor control system with the single chip processor as the core processor.

15、The remote control can change the rotation states of stepper motor and the running status can be showed on LCD1602 display.The infrared remote control with carrier for 38 KHZ is used as the control end of the user, which can convert the users commands into the infrared signal. The TL1838 can receive the infrared signal and convert it into electrical signal, which input to tSTC89C52.The MCU can obtain instructions of users by processing the incoming signal and control st

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号