智能型充电器的设计 下载本文

潍坊学院本科毕业设计

目 录

摘要…………………………………………………………………………………………...Ⅲ ABSTRACT…………………………………………………………………………………..Ⅳ 1 前言 ...................................................................................................................................... 1

1.1选题背景 ...................................................................................................................... 1 1.2 常见充电电池特性及其充电方式 ............................................................................. 2 1.3 主要芯片的选择 ......................................................................................................... 4 1.4液晶显示模块的选择 .................................................................................................. 6 2 硬件电路设计 ...................................................................................................................... 7

2.1 液晶显示模块两种访问方式接口电路的选择 .......................................................... 7 2.2 硬件电路主要芯片 ...................................................................................................... 9

2.2.1 ATmega16L主要引脚 ........................................................................................ 9 2.2.2 Atmega16L的存储器 ......................................................................................... 9 2.2.3 Atmega16L的时钟电路 ................................................................................... 10 2.2.4 Atmega16L的系统复位 ................................................................................... 10 2.3 LCD液晶显示 ......................................................................................................... 11

2.3.1 LCD的显示原理 .............................................................................................. 11 2.3.2 液晶显示控制驱动器 ...................................................................................... 13 2.3.3 液晶显示模块的特点 ...................................................................................... 13 2.4 电源电路的设计 ........................................................................................................ 15 2.5 硬件电路设计 ............................................................................................................ 15 2.6 PROTEL99的应用简介 ............................................................................................. 16 3 软件设计 .............................................................................................................................. 18

3.1 系统程序流程图 ........................................................................................................ 18

3.1.1 主程序流程图 .................................................................................................. 18 3.1.2控制程序流程图 ............................................................................................... 19 3.1.3显示程序流程图 ............................................................................................... 20 3.2 显示程序的设计 ........................................................................................................ 21 4 系统调试 .............................................................................................................................. 29

4.1 调试过程 .................................................................................................................... 29

I

潍坊学院本科毕业设计

4.2一个灯的闪烁 ............................................................................................................. 30 4.3灯的循环显示 ............................................................................................................. 31 结束语 ...................................................................................................................................... 32 参考文献 .................................................................................................................................. 34 致 谢 ........................................................................................................................................ 35

II

潍坊学院本科毕业设计

摘要:LCD液晶显示已经是人机界面的关键技术。本文对基于单片机的LCD液晶显示器控制系统进行了智能型充电器的研究。第一部分中介绍了本课题的课题背景、研究意义及预期研究目标。第二部分简单描述了系统硬件工作原理,且附以系统硬件设计框图,并介绍了单片机微处理器的发展史,论述了本毕业设计所用到的各硬件接口技术和各个接口模块的功能及工作过程。第三部分阐述了程序的流程和实现过程。最后对用单片机实现LCD液晶显示器控制原理的设计思想和软、硬件调试作了详细的论述。本文撰写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。 关键词:单片机;微处理器;LCD

III

潍坊学院本科毕业设计

ABSTRACT: The liquid crystal display (LCD) has been a key technique for the man-machine interface. In this paper, a study was made on the smart charger for the LCD control system based on micro controller unit (MCU) control system. In the first part, the subject background, research meaning and expected research objectives were introduced. In the second part, the working principle of the system hardware was simply described and the system block diagram of hardware design was attached. The history of the development of single chip microprocessor was introduced and the hardware interface technology and the function and work process of each interface module used in the graduation paper were also discussed. In the third part, the process and realization of the program were elaborated. Finally, the design ideas of the MCU control principle realized by single chip LCD and software or hardware debugging are discussed in detail. The main idea of this paper is the software and hardware combination, regarding hardware as the foundation, for the writing preparation of the functional modules.

KEY WORDS:Micro Controller Unit; Microprocessor; LCD

IV