基于AT89C51单片机的智能电流检测系统设计-毕业设计_精品.doc
文本预览下载声明
基于单片机的智能电流检测系统的设计
[摘要]:电流检测系统是一种比较成熟的技术,但是基于单片机的电流检测系统是近来新兴的一种技术,主要优点是可以一次将多个电流信号测量并显示出来。
是为了检测比如直流、交流以及脉冲电流信号的有效值或者平均值。它是在AT89C51单片机的基础上搭建硬件,配合c语言编程,通过keil软件和proteus软件将仿真结果显示出来。最后与准确电流的对比,精确程度能达到98%。
本文只是进行了理论仿真,未进行实物搭建,对后续工作还有待于进一步研究。
[关键字]:电流检测系统片机硬件编程仿真
esign of Intelligent Current Detection System Based on MCU
Abstract: The current detection system is a relatively mature technology, but the microcontroller-based current detection system is a recently emerging technology. Its main advantage is that more than current signals can be measured and displayed.
This article describes the composition and design methodology of design of intelligent current detection system based on MCU. It is in order to detect such as DC, AC and pulse current signal RMS or average. It is to build the hardware on the basis of AT89C51 microcontroller with C language programming, Keil software and Proteus software simulation results displayed. Finally, compared with accurate and current, the precision of the detection system can reach 98%.
This article run a theoretical simulation, without building physical structures. The
follow-up also needs further study.
Key word: Current detection system; single-chip; hardware; programming; simulation
目 录
绪论 1
1 电流测量系统的整体设计 2
2 电流检测系统的硬件设计 3
2.1 电流供给电路设计 3
2.2 数据采集及转换电路设计 3
2.2.1.ADC0808简介 3
2.2.2单片机与ADC0808接口设计 6
2.3 单片机显示电路设计 7
2.3.1 液晶显示器LM016L简介 7
2.3.2 LM016L与单片机接口设计 11
2.4 电流系统的转化电路 12
2.4.1 单片机I/O端口介绍 12
3 电流检测系统软件设计 15
3.1 AD转换和数据采集程序设计 15
3.2 电流检测系统的显示子程序 15
3.3 单片机内部数据传输程序和外部中断程序 15
4 数据转换计算 16
4.1数据标定 16
4.2数据采集 16
4.3数据转换计算 16
4.4 数据验算 16
5 子程序流程图 17
5.1 ad模数转换和数据采集流程图及程序附录 17
5.2 LM016L显示流程图及程序附录 19
5.3单片机内部数据传输程序和外部中断流程图及程序附录 22
5.4 单片机总流程图及程序附录 23
5.5 电流测量系统硬件电路图附录 29
结论 30
致谢 31
参考文献 32
绪论
单片机是一种集成在电路芯片,是采用超大规模集成电路技术把具有数据处理能力的中央处理器CPU随机存储器RAM、只读存储器ROM、多种I/O口和中断系统、定时器/计时器等功能(可能还包括显示驱动电路、脉宽调制电路、模拟多路转换器、A/D转换器等电路)集成到一块硅片上构成的一个小而完善的计算机系统。
基于单片机的电流智能检测系统的设计是利用单片机的多处理性能,来完成电流测量系统的智能控制。这样可以很方便的实现快速的对多个电流信号进行实时检测。
国外对基于单片机的智能电流测量系统的技术研究
显示全部