本科毕业论文(设计)
题 目嵌入式公交汉字显示系统的设计与实现 学 院 电子子信息工程学院 专 业 电子信息工程 班 级 09级电子信息工程(本)1班 学 号 091102010131 学生姓名 王梦楠 指导教师 王元一 赵金龙 完成日期 2013年五月
西安思源学院教务处制
二〇一三年五月
摘要
随着时代的进步,公交车已经成为我们学生族和工薪族出门必须的交通工具。由于单片机技术以及嵌入式技术飞速发展。目前,在公交车报站方面,也由传统的人工报站,逐渐改变为使用微电脑控制的语音文字报站系统。从以前售票员的大声报站变成现在的自动语音报站以及汉字提示等新型的报站系统,加快了现代化建设的进程。
本文介绍了一种新型的嵌入式公交车汉字显示系统的设计原理,同时提供了一种以89C52RC单片机为核心,控制ISD4004语音芯片及LED点阵显示汉字的新方案。利用89C52RC单片机作为CPU来进行总体控制,通过语音控制电路进行各种提示语音的播放,同时使用LED点阵电路进行汉字显示,实现了公共汽车的语音自动报站以及汉字提示的功能,实现了图文、语音一体化协调工作,减轻了司售人员的劳动强度,提高了车辆的服务质量,是一种科技、时尚的新产品。同时它摆脱传统电子屏\线\的束缚,使其应用更加市场化,其流动显示的特点更为广告界所推崇,是一种全新的媒体。
ISD4004语音系列芯片是美国ISD4004公司推出的产品,具有多次重复录放,存储时间长,使用时不需扩充存储器,所需外围电路简单等特点。
本系统是以C语言来进行软件设计,指令的执行速度快,节省存储空间。为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,使硬件在软件的控制下协调运作。
关键词:89C52RC单片机 LED点阵显示 语音芯片
I
Abstract
With the progress of The Times,the bus has become a general applicability and students go to the family transportation.Due to the micro controller technology and electronic voice technology rapidly develope.At present, in the bus stops,also from the traditional artificial stops, gradually changing into using the microcomputer control system of bus stop announcement. From before the loud voice stops of the conductor to be the new characters suggest and stops system,accelerating the process of modernization.It's the national symbol of automation transportation development. This paper introduces the design principle of a new kind of bus automatic stops display system and provides a new plan to control ISD4004 pronunciation chip and LED dot matrix to display Chinese characters by 89C52RC cu .Useing 89C52RC as CPU to overall control and through the speech control circuit to play various kind speech hint.Realizing the bus stops and characters of the voice of function,the text, voice integration are realized coordinationly too.Reduce the labor intensity of sales personnel department, improving the quality of bus service.It is a kind of new products of technology and fashion.At the same time,it gets rid of traditional electronic screen \make its application become more market-oriented.The characteristics of \shows is praised highly by advertising.it is a kind of new media.
ISD4004 series pronunciation chip is the products of ISD company,with the char actor of repeated recording, long time storage ,without expanded memory when using and simple circuit of the periphery, etc.
This system based on C language for software design,the instruction execute speedily and save storage space.In order to facilitate expansion and change,the design of software adopt modular structure,make the program design of logical relationship more concise,make the hardware under the control of the software operation harmoniously .
Keywords:89C52RC MCU, LED dot matrix display, pronunciation chip
II
目 录
1 绪论............................................................................................................................ 1 1.1 课题背景与意义 ................................................................................................. 1 1.2 选题的目的与研究内容 ..................................................................................... 2 1.3 国内的的动态发展趋势 ..................................................................................... 3 2 μC/OS-II操作系统移植 ............................................................................................ 5 2.1 ΜC/OS-II操作系统的工作原理.......................................................................... 5 2.2 ΜC/OS-II的组成部分.......................................................................................... 6 2.3 ΜC/OS-II操作系统移植...................................................................................... 6
2.3.1 OS_CPU.H文件的移植 ......................................................................... 6 2.3.2 OS_CPU_C.C 文件的移植 ................................................................... 9
3 系统硬件设计.......................................................................................................... 10 3.1 方案研究 ........................................................................................................... 10 3.2 方案选择 ........................................................................................................... 11 3.3 电路原理的总体设计 ....................................................................................... 11 3.3 芯片选择 ........................................................................................................... 12
3.3.1 STC89C52RC单片机芯片 .................................................................. 12 3.3.2 ISD4004语音芯片 ............................................................................... 14 3.3.3元器件清单........................................................................................... 16 3.4 硬件电路设计 ................................................................................................... 17
3.4.1电源电路............................................................................................... 17 3.4.2 LED点阵显示电路 .............................................................................. 18 3.4.3语音录放音电路................................................................................... 18 3.4.4按键控制电路....................................................................................... 19 3.5硬件电路总体设计 ............................................................................................ 20 4 系统软件设计.......................................................................................................... 21 4.1 系统软件结构 ................................................................................................... 21
III
4.2 系统软件设计 ................................................................................................... 22
4.2.1 延时设计.............................................................................................. 22 4.2.2 语音录放设计...................................................................................... 23 4.2.3 中断控制设计...................................................................................... 24 4.2.4 LED点阵汉字显示设计 ...................................................................... 25
5 软件程序调试.......................................................................................................... 26 5.1 调试软件 ........................................................................................................... 26 5.2 软件程序测试 ................................................................................................... 26 5.3 系统电路功能仿真 ........................................................................................... 27 5.4 KEIL与PROTEUS对系统联调 ........................................................................... 28 6 总结与展望.............................................................................................................. 30 6.1总结 .................................................................................................................... 30 6.2展望 .................................................................................................................... 30 参考文献...................................................................................................................... 32 致谢.............................................................................................................................. 33 附录1 系统原理图..................................................................................................... 34 附录2 源程序代码..................................................................................................... 35
IV