第一范文网 - 专业文章范例文档资料分享平台

基于12864液晶显示单片机音乐播放器的大学本科毕业论文

来源:用户分享 时间:2025/9/8 6:13:49 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

1)设计(论文)

2)附件:按照任务书、开题报告、外文译文、译文原文(复印件)次序装订 3)其它

目 录

摘要: .......................................................................................... 1

关键词: ...................................................................... 1 Abstract: .................................................................... 1 Keywords: .................................................................... 2

1.绪论 ......................................................................................... 3

1.1 前言 .............................................................................. 3 1.2 设计任务与要求 ............................................................ 3 2. 12864液晶概述 ...................................................................... 4

2.1名称含义 ........................................................................ 4 2.2基本参数 ........................................................................ 4 2.3电气特性 ........................................................................ 5 2.4液晶模组接口 ................................................................. 6 2.5基本用途: .................................................................... 6 2.6应用举例 ........................................................................ 7 3. AT89S51 单片机概述 ............................................................. 8

3.1 AT89S51 单片机的结构.............................................. 8

3.1.1 管脚说明 ......................................................... 11 3.1.2 主要特性 ......................................................... 14 3.1.3 振荡器特性 ..................................................... 15 3.2 AT89S51 单片机的工作周期 .................................... 16

3.3 AT89S51 单片机的工作过程和工作方式................... 17 3.4 STC12C5616AD ....................................................... 22 4.方案设计 ................................................................................ 22

4.1 系统概述 ..................................................................... 22 4.2 总体设计 ..................................................................... 24 4.3 系统硬件选择 .............................................................. 24 4.4 硬件电路实现 .............................................................. 25 4.5 软件的程序实现 .......................................................... 26 5.结论 ....................................................................................... 33

5.1 主要结论 ..................................................................... 33 参考文献 ................................................................................... 35 致 谢 ........................................................................................ 36 附录A:主函数和部分函数程序清单 ........................................... 37

A.1 主函数代码 ................................................................. 37 A.2 播放音乐部分函数代码 ............................................... 39 A.3 LCD显示部分函数代码 ............................................... 42 A.4 音乐播放部分指令代码 ............................................... 49 A.5 部分头文件中包含的代码 ........................................... 51

A.5.1 延时函数头文件 ................................................ 51 A.5.2 音乐指令头文件代码 ........................................ 51 A.5.3 LCD12864液晶头文件代码 .............................. 52

摘要: 本次课程设计是基于STC12C5616AD系列的51单片机

LCD12864液晶显示的音乐播放器。通过单片机音乐播放器系统设计和研究,对于切实掌握单片机相关知识具有重要的理论和实际意义。这次设计的音乐播放器是软件和硬件的结合,乐曲中不同的音符,实质就是不同频率的声音。通过单片机产生不同的频率的脉冲信号,经过放大电路,由功放放出,就产生了美妙和谐的乐曲。根据各音阶频率算出定时器定时常数,根据节拍给出该音阶持续的时间,最终实现播放歌曲的功能。

系统包括硬件和软件两个部分。硬件部分包括单片机控制电路,处理器采用STC51系列单片机STC12C5616AD、LCD12864液晶显示模块、功放驱动放大电路、LED控制电路等部分组成。软件部分分为以下几个模块:12864驱动显示、按键控制、播放模式和音乐播放等子程序。整个系统在软件控制下工作的。

关键词:STC12C5616AD单片机;音乐播放器;LCD12864 液

晶显示器

Abstract:The design is liquid crystal display music player

that based on the STC12C5616AD series 51 microcontroller LCD12864.The design and research of Microcontroller Music Player system has important theoretical and practical implications for effective control about microcontroller knowledge. The design of the music player is a combination of software and hardware.The inssence of different notes in music isdifferent frequencies of sound. Through the Microcontroller to generate the pulse signals of different frequencies,by the use of the amplifier circuit, released by the amplifier to produce a wonderful and harmony music. Calculated the

1

timer tinming constant by the scale frequency,then given the sustained time of the scale according to beat,and eventually achieve the function of playing a song.

The

system

includes

both

hardware

and

software.Hardwork,including microcontroller control circuit、the processor of STC51 series microcontroller STC12C5616AD、LCD12864 LCD modules、power amplifier driver amplifier circuit and LED control circuit,etc.Software,including 12 864 drivers、key control, playback mode and music player,etc. The entire system operation is under software control.

Keywords: STC12C5616AD microcontroller; Music Player; LCD12864 liquid crystal displayer

2

基于12864液晶显示单片机音乐播放器的大学本科毕业论文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c9uvto1e6h68wrp7230mk0mq5e7eayt017zj_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top