编号:JD1024论文字数:9312,页数:47
摘 要
本设计从分析水塔水位报警器的原理和设计方法入手,主要基于单片机的硬件电路和汇编语言程序设计,实现一种能够实现水位自动控制、具有自动保护、自动声光报警功能的控制系统。本控制系统由A/D转换部分、单片机控制部分、数码显示部分、电机驱动部分、电机控制部分等构成。同时对各个部分进行了详细的论述,并给出了主要的流程图和软件设计程序。
关键词:单片机 ;水位自动控制 ; 继电器 ;自动保护
ABSTRACT
The design starts from the analysis of the water-level alarm principle and design methods of the towers,mainly based on SCM language,achieve a level to implement automatic control, with automatic protection,automatic voice-alarm function control system.The control system consists of A / D conversion, single-chip microcomputer control, digital display, motor-driven, motor control components.Meanwhile exposits various parts of the details gives the main flow chart and software design procedures.
KEY WORDS: Single chip microcomputer ;Voluntarily control the Lever level ; Relay ;Auto-protecting
目录
摘 要I
ABSTRACTII
第一章 引 言1
第二章 系统设计2
2.1方案比较2
2.1.1传感器选择方案2
2.1.2 A/D转换方案2
2.1.3单片机复位方案2
2.1.4单片机起振方案3
2.1.5驱动显示方案3
2.1.6电机驱动方案3
2.1.7电机选择方案3
2.2方案论证4
2.2.1总体思路4
2.2.2设计方案4
第三章 硬件设计5
3.1单元模块设计5
3.1.1 A/D转换设计5
3.1.2起振电路设计7
3.1.3数码显示设计7
3.1.4电机驱动设计8
3.1.5电机控制8
3.1.6报警电路10
3.2系统整机分析10
第四章 软件设计11
4.1 详细流程图11
4.1.1主程序11
4.1.2 中断子程序12
4.1.3 GAODU子程序13
4.1.4查表子程序14
4.1.5状态子程序15
4.1.6 状态控制子程序17
4.2 源程序21
结束语38
致 谢39
参考文献40
附录一41
附录二42
水塔水位自动控制装置......