【编者按】:网学网电子数电单片机为您提供基于AT89C51单片机的电源切换控制器的设计参考,解决您在基于AT89C51单片机的电源切换控制器的设计学习中工作中的难题,参考学习。
论文编号:JD549 附外文翻译,开题报告.原理图,论文字数:17556,页数:36
摘要
该设计介绍了用AT89C51单片机构成的电源切换系统。它是一种能在电源之间进行自动切换的装置,以保证某路正在使用的电源在出现故障时能自动切换到另外的正常电源上,保证供电不间断或间断时间在允许的范围内。该电源切换装置必须具有反应灵敏、工作可靠、功能齐全、声光指示等特点。本设计包括硬件电路的设计及分析,以及软件程序的编程及其分析,主要实现对常用电源和备用电源的自动切换。首先通过ADC0809将采集的模拟信号进行模数转换后输入单片机。单片机根据控制要求将输入信号与预设标准信号进行对比,如果采样信号与预设信号不符,单片机控制继电器进行电源切换,同时发光二极管和扬声器工作,发出声光报警。本系统成本低、可靠性高、工作模式多、对工作环境没有特殊要求,具有重要的现实意义。
关键词 电源切换 不间断电源 声光报警
Title the design of power switching controller based on AT89C51 single-chip microcomputer
Abstract
The design introduces a switching power supply system constituted by AT89C51 single chip microcomputer. It is a device that can automatically switch between different power supplys, to guarantee a certain way could automatically switch to another normal power in the event of failure, guaranteeing uninterrupted power supply or droped time with in the extent of permitted. The power switching devices must be responsive, reliable, multifunctional and acousto-optic characteristics. The design includes hardware circuit design and analysis, and software programming and analysis to switch automatically between main power and substitute power. Connection between ADC 0809 will be the first acquisition by the analog signal for analog-to-digital conversion after importation of SCM. SCM under control requires the input signal and the default standard signal contrast, If the sampling signal was inconsistent with the predetermined signal, the single chip will control relays for switching power supply. Meanwhile LEDs and loudspeakers work, sound and light warning issued . The low cost, high reliability, multi-mode, the wide working environment without special requirements of the system have important practical significance.
Keywords power switch uninterrupted power supply acousto-optic alarm
目 录
1 引言……………………………………………………………………………………1
1.1 电源切换器简介……………………………………………………………………1
1.2 开关电源的应用……………………………………………………………………1
1.3 国内外发展状况……………………………………………………………………2
1.4 课题要求……………………………………………………………………………3
2 硬件部分………………………………………………………………………………4
2.1 硬件原理图的总体设计……………………………………………………………4
2.2 光电耦合器…………………………………………………………………………4
2.3 ADC0809模数转换器………………………………………………………………7
2.4 AT89C51单片机………………………………………………………………… 10
2.5 74LS373………………………………………………………………………… 15
2.6 8255A接口电路………………………………………………………………… 16
2.7 保护电路设计…………………………………………………………………… 18
2.8 声光报警电路…………………………………………………………………… 19
2.9 继电器…………………………………………………………………………… 20
2.10 直流电源……………………………………………………………………………25
3 软件设计…………………………………………………………………………… 27
3.1 主程序流程图…………………………………………………………………… 27
3.2 A/D转换………………………………………………………………………… 27
结论 ………………………………………………………………………………………29
致谢 ………………………………………………………………………………………30
参考文献………………………………………………………………………………… 31
附录A 程序清单……………………………………………………………………… 33
附录B 硬件电路图 ……………………………………………………………………36