登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 通信工程 > 正文

基于单片机的语音存储与回放系统设计与实现毕业论文

 2021-03-29 10:03  

摘 要

针对传统语音录放系统稳定性低、结构复杂、操作不便、音质差等问题,本文提出了一种以STC89C52RC单片机芯片为核心,结合ISD4004-08语音芯片、LCD1602液晶显示器、键盘电路、LM386功放芯片、AMS1117稳压芯片等外接麦克风、扬声器组成的语音存储与回放系统,用它来实现多段语音按照相应模式的录制与播放,具有可编程、使用灵活、体积小巧、功耗低、音质好、还原度高等多方面的优点,作者的主要研究工作如下:

1.总体方案论证与设计;主要研究讨论了控制电路、显示电路、键盘电路、语音存储与回放电路、音频放大电路、电源稳压电路的选型与论证,确定了STC89C52RC作为单片机控制芯片,LCD1602液晶显示器作为字符显示输出界面,高度集成的ISD4004-08语音芯片作为语音存储与回放模块控制芯片,LM386功放芯片作为音频放大模块控制芯片,AMS1117稳压芯片作为电源稳压模块控制芯片。

2.系统硬件电路设计;主要研究讨论了STC89C52RC的功能特点,单片机最小系统的设计,LCD1602液晶显示器的性能特点,单片机与显示器的接口连接,ISD4004-08语音芯片的性能及SPI同步串行数据传输协议等,除此之外,系统加上一个功率放大电路以驱动扬声器获得更大的声音以及电位器来实现声音可调,利用Altium Designer软件完成了系统完整原理图的设计并在线调试无差错。

3.系统软件设计;主要研究讨论了编程工具软件keil uvision4,开发出了系统软件流程、按键检测流程、语音存储与回放流程、字符显示流程,首先通过键盘电路实现对单片机的控制,单片机将通过控制语音芯片进行语音存储与回放,每段录音都有其对应的地址,当播放的时候单片机只需要从语音芯片中写入地址便可播放,软件系统还实现了按照三种播放模式回放语音信号,相关要设置的参数信息也都将在液晶显示器上出现,到达操作流程的可视化。

4.系统调试与运行;主要介绍了对应的调试过程,首先打开STC-ISP下载器将程序烧写到STC89C52RC单片机芯片中,然后依次按下开始和确认键,四段语音信号即可录制完毕,下一步显示器出现模式选择界面,按下模式选择键即可切换A、B、C三种播放模式,最后通过播放键和暂停键可随时回放和停止之前录下的四段语音。

关键词STC89C52RC单片机; LCD1602液晶显示器;ISD4004-08语音芯片;语音存储与回放系统;

Abstract

Aiming at the problems of traditional voice recording and playback system, such as low stability, complicated structure, inconvenient use and poor playback, this paper presents a novel STC89C52RC chip as the core, combined with ISD4004-08 voice chip, LCD1602 liquid crystal display, keyboard circuit, LM386 Amplifier chip, AMS1117 regulator chip and other external microphones, speakers composed of voice storage and playback system, use it to achieve multi-segment voice storage and playback, with the advantages of programmable, easy to operate, small size, low power consumption, better sound quality,high degree of reduction and so on. The main work of this paper is as follows:

1. The main program demonstration and design; The main research and discussion of the main control module, display module, keyboard module, voice storage and playback module, power amplifier module, power regulator module selection and demonstration, identified STC89C52RC as a single chip master chip , LCD1602 liquid crystal display as a character display interface, highly integrated ISD4004-08 voice chip as a voice storage and playback module control chip, LM386 power amplifier chip as a power amplifier module control chip, AMS1117 regulator chip as a power regulator module control chip.

2. System hardware circuit design; Introduce the STC89C52RC pin and function, the minimum system design of the microcontroller, LCD1602 LCD principle, the microcontroller and the display interface, ISD4004-08 voice chip performance and SPI synchronous serial data transmission Protocol, etc., in addition, the system with a power amplifier circuit to drive the speaker to obtain greater sound and potentiometer to achieve sound adjustable, the use of Altium Designer software to complete the single-chip voice storage and playback system complete schematic design.

3. System software design; Introduced the programming tool software keil uvision4, developed a system software flow, key detection process, voice storage and playback process, the character display process, first through the keyboard circuit to achieve single-chip control, microcontroller will control Voice chip for voice storage and playback, each recording has its corresponding address, when playing the microcontroller only need to write address from the voice chip can play, the system also provides a variety of playback for the user to choose, related to The set of parameter information will appear on the display and reach the visualization of the operation flow.

4. System debugging and operation; mainly introduced the corresponding debugging process, first open the STC-ISP downloader program will be programmed into the STC89C52 microcontroller chip, and then press the start and confirm the key, four voice signal can be completed, The next display appears mode selection interface, press the mode selection button to switch A, B, C three modes, and finally through the play button and pause button at any time to play back and stop before recording the four voice.

Key Words:STC89C52 microcontroller; LCD1602 liquid crystal display; ISD4004-08 voice chip; voice storage and playback system;

目 录

1 绪论 1

1.1 课题研究的背景及目的、意义 1

1.2 国内外研究现状 2

1.3 本文的主要研究内容及组织结构 3

2 基于单片机的语音存储与回放系统的方案论证与总体设计 4

2.1 控制芯片的选型和论证 4

2.2 显示电路的选型和论证 5

2.3 键盘电路的选型和论证 5

2.4 语音电路的选型和论证 6

2.5 音频放大电路的选型和论证 6

2.6 电源稳压电路的选型和论证 6

2.7 系统整体设计概述 7

2.8 本章小结 7

3 基于单片机的语音存储与回放系统的硬件电路设计 8

3.1 控制电路设计 8

3.1.1 STC89C52RC单片机主要功能特点 8

3.1.2 单片机最小系统设计 9

3.2 显示电路设计 10

3.2.1 LCD液晶显示器主要功能特点 10

3.2.2 液晶显示器与单片机的接口部分 12

3.3 键盘电路设计 13

3.4 语音存储与回放电路设计 13

3.4.1 芯片引脚特点 13

3.4.2 SPI协议 14

3.5 音频放大电路的设计 15

3.5.1 LM386的引脚描述 15

3.5.2 音频放大电路 16

3.6 电源稳压模块设计 16

3.7 本章小结 17

4 基于单片机的语音存储与回放系统的软件设计 18

4.1 编程语言与编程工具软件 18

4.2 程序设计思想 19

4.3本章小结 22

5 基于单片机的语音存储与回放系统的调试与运行 23

5.1 硬件调试 23

5.2 软件调试 24

5.3 运行过程与结果分析 25

5.4 本章小结 27

6 总结与展望 28

6.1 总结 28

6.2 展望 29

参考文献 30

附录 31

致 谢 35

第一章 绪论

1.1 课题研究的背景及目的、意义

进入21世纪以来,伴随着人民生活水平的不断提高、居住环境的不断改善、劳动收入的不断增加,电影,卡拉OK等娱乐生活方式无处不在,人们对优质、清晰、立体的音乐的需求十分巨大。当前,特别是各种云计算、大数据、人工智能等新兴互联网高科技的快速发展,现在的语音系统有了“质”的提高,从以前体积大、噪音大、携带不方便的录音机、复读机发展到了音质优雅、掌心大小、存储空间大、续航时间长、节能环保的音响、智能手机、电脑等,给人们带来了舒适悦耳的听觉享受,推动了科学技术的发展进步,可以说语音技术的发展已经到了十分成熟的阶段。

传统的语音存储与回放系统因其体积大、杂音大、使用复杂、抗干扰能力低,在互联网信息领域中受到诸多方面的限制,结合其特点从目前的情况来说,传统的语音存储与回放系统显然早已无法适应时代发展的要求。掌心大小,高质量的数字化语音系统将完全可以取代它,数字化语音存储与回放系统通常有两种典型的实现方式,其中一种是以单片机为中心控制器,辅以A/D 转换、D/A 转换、带通滤波器、放大电路以及存储器等外围电路,结构简单利于电路的搭建、但同时缺点也很明显突出,主要在于噪音大、语音的存储空间有相当的限制,很容易受到外界干扰,电路不稳定等;另一种是利用语音芯片来完成语音信号的录制、储存与播放,它将模数转换电路、数模转换电路、带通滤波器电路、放大电路以及存储空间大的快速存储器直接集成在一块芯片上,如美国艾斯特公司生产的语音芯片ISD4000系列等,高度集成的语音芯片具有存储时间长、存储器的利用率高、最大化地滤除杂音,还原度高的优点;当前语音技术的应用领域已经深入到人们生活的方方面面,特别是在移动通信、视频通话、语音识别等领域有着十分严格的指标要求,研究前景十分明朗,将推动新一代互联网技术的发展,未来将满足人们对高质量语音的要求,极大地震撼人们的听觉效果,基于上述原因,本课题完成了基于单片机的语音存储与回放系统硬件电路的搭建、程序的设计编写,首先通过功能按键使单片机控制语音芯片结合麦克风完成对四段语音信号的存储,接着通过单片机进行模式的选择,最后通过语音芯片结合扬声器将存储的四段语音信号高质量、高还原度地播放出来,整个过程都将在液晶显示器上以字符的形式输出,在人们的日常生活中,本课题的研究成果可以运用到耳机、音响等语音设备,具有重要的参考价值。

1.2 国内外研究现状

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图