摘 要:本论文基于单片机设计一个音乐盒,首先介绍了基于单片机音乐盒设计方法与原理、软件编程思路需要把实物做出来,基于软件部分和硬件部分结合起来基本上就粗略地完成了基于单片机的音乐盒设计与制作。本设计采用STC89C52单片机芯片,在此基础上添加一些扬声器、数码管、等元件构成硬件部分,在硬件方面发音的选择是LM386加扬声器,切换键盘用的是一般的按键开关,通过单片机IO口接受按键的状态,实现歌曲之间的切换。显示设备则采用一位共阳极的LED数码管接受单片机P0口发出的数据信号,用数码管显示当前歌曲序号。在软件方面,用C语言实现整个程序软件部分的编写,可以存放多首不同的歌曲82639

毕业论文关键词: 音乐盒; STC89C52单片机; 扬声器;数码管;按键

Music Box Design Based on Single Chip Microcomputer

Abstract: This paper based on microcontroller design a music box, first introduced based on SCM music box design method and principle, software programming ideas need to work out the real, based on hardware and software combine basically is roughly completed based on SCM Music Box Design and production。 This design uses the STC89C52 microcontroller chip, based on adding some speakers, digital tube, such as components of the hardware part, LM386 and speaker is in the choice of the hardware aspects of the pronunciation, keyboard switch is general button switch, through the microcontroller IO port to accept keystrokes state, to achieve switching between songs。 Display device is using a common anode LED digital tube to accept the microcontroller P0 port of the data signal, with a digital tube display the current song serial number。 In terms of software, using C language to achieve the entire program software part of the preparation, you can store a number of different songs。

Keywords: Music Box; STC89C52 Single chip microcomputer; Speaker; Digital tube; Button 

 目  录

摘 要 1

引言 1

1。 概述 2

1。1 本课题设计意义 2

2。 总体设计 2

2。1 设计目的 2

2。2 设计要求 2

3。 系统硬件电路设计 4

3。1 整体方案设计 4

3。2 单片机最小系统电路 5

3。3 LM386功放电路介绍 8

3。4 数码管显示电路 9

3。5 按键输入模块 11

4。 软件设计 12

4。1 程序语言及开发环境 12

4。2 总体程序设计 12

4。3软件设计思路 14

5。 系统调试 15

5。1 硬件调试 16

5。2 软件调试 16

6。 结束语 16

附  录 19

附录A 元件清单 19

附录B 原理图 20

附录C PCB图 21

附录D 软件程序 22

附录E 仿真图 31

    附录F 实物图

上一篇:AT89C51单片的交通灯智能控制系统的设计+电路图+程序
下一篇:AT89C51单片机汽车雷达设计+电路图+程序

基于51单片机自动门智能控制系统设计

STC89C52单片机智能温度监测系统设计

STC89C52单片机盲人用时钟的设计+电路图+程序

粉料称重装置的单片机控...

STM32单片机的无刷直流电机控制系统设计

AT89S52单片机车内空气检测系统设计+源代码

LABVIEW+AT89C51单片机智能药箱系统设计+源代码

PCI+PID算法直流力矩电机速...

小型通用机器人控制系统设计任务书

从企业eHR建设谈管理信息...

提高小學语文課堂朗读教...

遥感土地用变化监测国内外研究现状

高效课堂教师问卷调查表

大规模MIMO系统的发展研究现状

MNL模型历史城区居民活动...

《水浒传》中血腥暴力研...

浅析施工企业保理融资成...