摘 要 本设计主要是实现减摇鳍发生故障能够自动进行声光报警的功能,减摇鳍是国内舰船上普遍使用的一种船舶减摇装置,是一种集机械、电子、液压多种技术为一体的复杂的船舶控制装置。 在本文中主要设计了各种型号的减摇鳍常出现的五种故障有油温、油位、左滤器、右滤器和滤油器1发生故障时进行声光报警。报警系统主要包括三部分:单片机、语音电路部分、液晶显示模块。其中以单片机为核心控制语音模块和显示模块,使其能够在某部位发生故障时通过语音电路播放出已录制好的相应的语音段信息,然后并通过液晶显示模块显示出相应的汉字。在该设计当中,语音段的播放和相对应的汉字的显示是设计的重点和难点。该设计的软件部分使用单片机的汇编语言编写的,语音电路的录放音子程序和LCD底层子程序采用模块化编程,具有很强的移植性,并且为以后的编程和升级带来了极大的方便。使用LCD底层的子程序库可以模仿主程序很简单的实现其他信息的显示。如果和键盘配合就可以显示很多信息,能很好的满足工业控制中对大量信息显示的要求。本设计详细给出了整个系统的硬件设计电路和软件的编写过程,该程序不仅可完成本设计的要求,只要硬件条件具备,利用它可实现任意语音信息的播放和任意汉字及波形的显示,实用性广泛。 本设计主要是对单片机8051与语音模块和液晶显示模块接口技术的一次专题性的研究,所以有关单片机或者语音模块和液晶显示模块的其他方面的应用,本设计没有涉及到。 关键词: 单片机8051 ; 语音芯片ISD2560 ; LCD ABSTRACT This design mainly is The Fin Stabilizer System is fault when can automatically carry on the alarming faction . Here mainly designed five kinds faults that each kind of The Fin Stabilizer System usually has , including the oil temperature 、the oil level 、the left filter 、the right filter and the oil filter one . The alarming system mainly include three parts : Microcontroller 、voice electric circuit and liquid crystal display module . Take the Microcontroller as the main control component to control the voice electric circuit and liquid crystal display module ,so that they can broadcast the corresponding voice section information which has been recorded and display the corresponding characters .Middle this design the displaying of the characters and the broadcasting of the voice sections are the key point and the difficulty .The design of the software part uses the assembly language of the Microcontroller, the subprograms of the voice electric circuit record and the LCD ground floor program use the modular programming , which has very strong transplant , and has brought enormous convenient for the later programming and the promotion . Use LCD subprogram storehouse of ground floor can imitate main program simple realization other message show very. If and keyboard cooperate and can show much information is can very fine to meet industrial control to a large number of request that message show. This program cannot only fulfill the request of this design but also can display whatever Chinese characters and voice information being provided with hardware. The application of the program is very widely. This text has introduced writing the course, and the concrete procedure of appendix of the design, software of the circuit in detail. This design is a monographic study of Microcontroller with the liquid crystal display and voice chip. As the result, this text has not involved the other aspects of them. Key words: Microcontroller 8051 ; voice chip ISD2560 ; LCD 目 录 第1章 绪论……………………………………………………………………1 1.1 论文的背景和意义…………………………………………………… 1 1.2 语音录放系统…………………………………………………………1 1.3 液晶显示系统…………………………………………………………2 1.4 本设计的主要任务……………………………………………………3 第2章 系统元件简介………………………………………………………3 2.1 概述……………………………………………………………………4 2.2 单片机8051……………………………………………………………4 2.2.1 主要组成部分…………………………………………………… 4 2.2.2 主要引脚功能介绍………………………………………………6 2.2.3 存储器配置………………………………………………………8 2.3 ISD2560 语音芯片……………………………………………………9 2.3.1 芯片概述…………………………………………………………9 2.3.2主要引脚功能介绍………………………………………………10 2.3.3 操作模式…………………………………………………………13 2.4 SED1520液晶显示模块………………………………………………13 2.4.1 模块功能介绍……………………………………………………13 2.4.2 指令系统…………………………………………………………16 2.5 本章小结………………………………………………………………19 第3章系统硬件电路设计…………………………………………………20 3.1 概述……………………………………………………………………20 3.2 单片机8051工作电路………………………………………………20 3.2.1 四个并行I/O口功能介绍……………………………………20 3.2.2 时钟电路及复位电路……………………………………………22 3.3 语音电路硬件设计……………………………………………………24 3.3.1 ISD2560外围接口电路…………………………………………24 3.3.2 ISD2560内部地址单元寻址……………………………………25 3.3.3 8051单片机对ISD2560的控制…………………………………26 3.4 液晶显示电路硬件设计………………………………………………27 3.4.1 液晶模块MGLS-12032电路特点………………………………27 3.4.2 单片机8051与液晶模块的接口方式…………………………27 3.5 整体硬件电路设计……………………………………………………31 3.6 本章小结………………………………………………………………32 第4章 系统软件设计……………………………………………………33 4.1总体设计思路…………………………………………………………33 4.2具体设计步骤…………………………………………………………35 4.3 本章小结………………………………………………………………42 结论……………………………………………………………………………44 参考文献………………………………………………………………………45 致谢……………………………………………………………………………46 附录A……………………………………………………………………………47 [1] [2] 下一页 |