当前位置:首页 > 基于ARM的音乐播放器的设计与实现
本科生毕业设计(论文)
摘 要
多媒体技术融计算机、声音、文本、图像、动画、视频和通信等多种功能于一体,是当今信息技术领域发展最快、最活跃的技术,是新一代电子技术发展和竞争的焦点。嵌入式设备与多媒体技术的融合使得PDA,智能手机,平板等智能终端得到快速发展。未来,智能终端与物联网的结合将推动嵌入式设备快速发展。所以,基于嵌入式终端的应用前景广阔。
设计目的是在嵌入式平台上开发一款基于开源Linux操作系统的多媒体播放器,它以mplayer作为核心播放程序,将支持更多的文件播放格式甚至可以与PC机上的媒体播放器相媲美。
多媒体播放器的硬件部分:以S3C2440开发板为硬件平台,它的外围设备可以外插U盘作为存储器、TFT-LCD触屏、key23键盘,以及外接耳机作音频设备。因为播放器开发是基于成熟的硬件平台,主要工作集中在软件部分,主要包括:搭建开发环境,配置编译mplayer可执行程序,编写触屏驱动,及key23驱动,编写主控程序等等,最后将程序移植安装到开发板,完成基于Linux的嵌入式播放器的设计。经过测试,播放器符合设计要求。 关键词: 触屏,移植,线程,嵌入式
I
本科生毕业设计(论文)
Abstract
The multimedia technology involves sound, text, image, animation, video and communications and other functions. Information technology is one of fastest growing technologies. Obviously, it is a new generation of electronic technology development and the focus of competition. The integration of embedded equipment and multimedia technology contributes a rapid development for PDA, smart phones, slab intelligent terminal. In the future, intelligent terminal will promote the network embedded equipment rapid development. So, the application that based on embedded terminal has a bright future.
The purpose of this design is to design multimedia player on an embedded platform by using the open source in Linux operating system. It is take mplayer as core broadcast program, which will support more file format, and even is more comparable with the PC media players.
The hardware part of Multimedia player takes S3C2440 development board for the hardware platform, which use the USB disk, tft-lcd touch screen, key23 keyboard, and external earphone for audio equipment. Because the player development is based on mature hardware platform, the main work focused on software part, which main includes these works, such as the development environment set up, the compiled configuration of mplayer, the drive of touch screen and key23, and the program of master control, etc. Finally, the developed program can be installed to development board based on the Linux. After testing, player can meet the design requirements.
Keywords: touch screen; transplant; thread; embedded;
II
本科生毕业设计(论文)
目录
第1章 绪论 ............................................................................................................ 1
1.1 选题背景 ................................................................................................... 1 1.2 研究意义 ................................................................................................... 2 第2章 需求分析与方案制定 ................................................................................ 4
2.1 功能性分析 ............................................................................................... 4 2.2 可行性分析 ............................................................................................... 4 2.3 设计的主要目标任务 ............................................................................... 5 2.4 系统方案制定 ........................................................................................... 5 2.5 本章小结 ................................................................................................... 5 第3章 系统功能模块介绍 .................................................................................... 6
3.1 S3C2440开发板简介 ................................................................................. 6 3.2 S3C2440芯片特性简介 ............................................................................. 6
3.2.1 S3C2440芯片参数 .......................................................................... 7 3.2.2 内核结构 ........................................................................................ 7 3.2.3 总线结构 ........................................................................................ 7 3.2.4 处理器通用模块1 ......................................................................... 8 3.2.5 处理器通用模块2 ......................................................................... 8 3.2.6 存储器接口 .................................................................................... 9 3.2.7 外围总线接口 ................................................................................ 9 3.2.8 人机接口 ........................................................................................ 9 3.3 LCD模块介绍 ........................................................................................... 9 3.4 软件模块介绍 ......................................................................................... 10 3.5 本章小结 ................................................................................................. 11 第4章 硬件系统 .................................................................................................. 12
4.1 开发板系统的硬件框架 ......................................................................... 12 4.2 LCD模块原理 ......................................................................................... 12
4.2.1 A/D转换器 .................................................................................... 12 4.2.2 触摸屏原理结构 .......................................................................... 13 4.3 系统硬件介绍 ......................................................................................... 14
III
本科生毕业设计(论文)
4.4 各个外设接口 ......................................................................................... 14
4.4.1 JTAG接口 ..................................................................................... 14 4.4.2 USB_UART转换接口 .................................................................. 15 4.4.3 RS232接口 .................................................................................... 15 4.4.4 USB主接口 ................................................................................... 15 4.4.5 USB从接口 ................................................................................... 16 4.4.6 AD输入接口 ................................................................................. 16 4.4.7 复位系统 ...................................................................................... 16 4.5 本章小结 ................................................................................................. 16 第5章 系统软件设计 .......................................................................................... 17
5.1 系统软件设计流程图 ............................................................................. 17 5.2 Bootloader内核的配置 ............................................................................ 17
5.2.1 Bootloader ...................................................................................... 17 5.2.2 配置编译bootloader---u-boot ...................................................... 18 5.2.3 裁剪编译linux-2.6.34(编译内核) .......................................... 19 5.3 制作根文件系统 ..................................................................................... 19 5.4 烧录镜像文件 ......................................................................................... 20
5.4.1 烧录Bootloader ............................................................................ 20 5.4.2 烧录Linux2.6内核和根文件系统 .............................................. 22 5.5 安装交叉编译编译工具链 ..................................................................... 24 5.6 对Mplayer源码进行重新配置编译 ...................................................... 24 5.7 编写主程序(包含触屏驱动) ............................................................. 25 5.8 设计人机交互界面 ................................................................................. 25 5.9 程序移植 ................................................................................................. 26 5.10 本章小结 ............................................................................................... 26 第6章 结论 .......................................................................................................... 27 参考文献 ................................................................................................................ 28 致谢 ........................................................................................................................ 30
IV
共分享92篇相关文档