单片机控制音乐播放-外文翻译

合集下载

基于单片机控制的MP3音乐播放器的设计

基于单片机控制的MP3音乐播放器的设计

目录1引言 (1)2硬件设计 (2)2.1硬件电路的设计框图 (2)2.2硬件电路设计模块的选定 (2)2.2.1中心模块 (2)2.2.2播放模块 (3)2.2.3显示模块 (4)2.2.4电子琴模块 (4)2.3各硬件电路的具体设计 (5)2.3.1 AT89S52控制模块的设计 (5)2.3.2按键模块的设计 (6)2.3.3扬声器播放模块的设计 (7)2.3.4 LCD显示电路的设计 (7)2.3.5彩灯伴奏电路的设计 (8)3软件设计 (9)3.1单片机发声的基本原理 (9)3.2设计的相关音乐说明 (9)3.3切换原理 (10)3.4音乐播放器软件程序设计 (10)3.4.1按键扫描子程序设计 (10)3.4.2 1ms延时程序设计 (14)3.4.3 LCD显示子程序设计 (15)3.4.4函数初始化子程序设计 (16)3.4.5系统主程序设计 (17)4结论 (19)参考文献 (20)附录一硬件原理图 (21)附录二软件主程序 (22)致谢............................................................................................................... 错误!未定义书签。

摘要目前流行的MP3播放器的音质已相当好,但略感遗憾的是除了选择歌曲和显示歌名外,绝大部分播放器没有诸如随意弹奏乐曲、乐曲节奏跳动等功能。

而随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一。

要为现代人工作、生活提供更好的更方便的服务就需要从单片机技术着手,一切向着数字化控制、智能化控制方向发展。

本设计是采用单片机为核心设计的数字音乐播放器。

本设计在实现音乐的播放及歌曲名显示等基本功能的基础上进行了扩展,添加了彩灯伴奏、按键弹奏、显示音乐节拍等功能。

本论文给出了系统方案的建立、硬件电路的详细设计及软件的程序实现。

基于单片机控制音乐播放

基于单片机控制音乐播放

硅湖职业技术学院毕业论文(设计)题目基于单片机控制的音乐播放器年级08级专业机电一体化姓名李耘学号*********指导老师李巧红2011 年 5 月 1 日基于单片机控制的音乐播放李耘【摘要】在电子技术日月更新、不断换代,计算机程序设计语言应用广泛,特别是单片机技术日趋发达的情况下,为了培养并增强设计自主性和动手能力强的人才,了解单片机强大的设计功能。

在此次设计中主要采用单片机AT89C52和一个SOUNDER(喇叭)来实现音乐的播放。

【关键词】单片机音乐播放器控制一、绪论现在各种各样的音乐播放器呈现在我们面前,外观越来越精美,功能越来越多,体积越来越小,重量也越来越小、价格越来越便宜。

同时,随着当代手机行业的快速发展,许多手机厂商为了能够吸引广大的客户受到消费者的青睐,致此他们开始研究在手机上实现音乐和视频的播放,因此现在的手机都能够轻松的播放音乐了。

这样人们就更很容易携带,随时随地都可以听,以便来缓解人们的疲劳、压抑、愉快人们的心情等,甚至有时还可以借着音乐来抒发自己的感情,传达我们对朋友的祝福。

因此,在不知不觉中它成为了人们生活的一样必需品,无论到哪里、无论什么时候都可以听到我们想听的音乐。

在实际中参照单片机相关资料,就可容易的利用单片机设计出一个音乐发生器。

在设计过程中人们还可考虑用多种方法进行实现,这样不但很好的发挥了人们的创新精神,还提高了动手能力、综合分析能力及专业知识运用能力。

二、音乐基础知识音作为一种物理现象,是由于物体振动而产生的,振动产生的声波作用于人耳,听觉系统将神经冲动传达给大脑,进而产生听觉。

人耳能听到的声音频率大约在11—20000Hz,而音乐使用的音一般在27—4100Hz。

一首音乐就是由许多不同的音符组成的,而每一个音符对应着不同的频率,这样就可以利用不同的频率的组合,加以拍数对应的延时来构成不同的音乐。

音乐的产生需要不同频率的音频脉冲,对于单片机而言,可以利用它的定时/计数器产生这样的方波频率信号。

单片机控制音乐播放毕业设计论文[管理资料]

单片机控制音乐播放毕业设计论文[管理资料]

毕业论文论文题目:单片机控制音乐播放器学号:姓名:专业:班级:指导教师:完成日期:目录摘要 (3)前言 (4) (5) (6) (7) (12)(1)单片机CPU结构 (13)(2)单片机定时器中断讲述(c语言) (14)三. 致谢 (16)参考文献 (17)摘要21世纪科技时代,,而利用单片机存储音乐,﹑价格优﹑外围电路简单的特点,,用80C51单电机及少数外围电路控制MUSIC播放。

对于单电机产生音乐,,不同的声音对应不同的频率,,有8个基本音符:do ﹑re﹑mi﹑fa﹑so﹑la﹑xi﹑do,,,并用两个键控制播放和停止.这里,我用8051单片机控制音乐。

由键盘控制播放,用运算放大器的同相放大方式驱动SPEAKER本课题设计的音乐闹钟系统结构简单,造价成本低,功能齐全,具有很强的实用性。

关键词:单片机,微处理器,LCD,89C52,AMPIRE128×64前言目前单片机渗透到我们生活的各个领域,几乎很难找到哪个领域没有单片机的踪迹。

导弹的导航装置,飞机上各种仪表的控制,计算机的网络通讯与数据传输,工业自动化过程的实时控制和数据处理,广泛使用的各种智能IC卡,民用豪华轿车的安全保障系统,录像机、摄像机、全自动洗衣机的控制,以及程控玩具、电子宠物等等,这些都离不开单开发与应用将造就一批计算机应用与智能化控制的科学家、工程师。

科技越发达,智能化的东西就越多,使用的单片机就越多。

看来学单片机是社会发展的需求。

这种控制系统具有许多优点,如:各个控制功能的分散使得每台微机的任务相应减少,功能更明确,组成更简单,可靠性更高;在多机系统中,各台微机并行工作,大部分采集和控制功能都分散到各个自系统中,运行速度快;开发、维护、扩充方便。

毕业设计是学生学完两年教学计划所规定的全部基础课和专业课后,综合运用所学的知识,与实践相结合的重要实践性教学环节。

它是大学生活最后一个里程碑,是三年大学学习的一个总结,是我们结束学生时代,踏入社会,走上工作岗位的必由之路,是对我们工作能力的一次综合性检验。

基于单片机的音乐播放系统.

基于单片机的音乐播放系统.

音乐播放系统设计李凯龙目录摘要 (1)1 绪论 (1)1.1 功能需求 (2)2 硬件设计 (2)2.1 音乐播放系统的电路原理图 (2)2.2 电源输入的电路原理图 (3)2.3 晶振电路 (3)3 系统工作原理 (4)3.1 系统的总体方案设计 (4)3.2 主控芯片AT89C51简介 (4)4 线路连接 (5)5 软件设计 (6)5.1 主程序流程图 (6)6 调试与故障分析 (8)6.1 软件程序调试 (8)6.2 硬件电路调试 (8)7 结论 (9)8 致谢 (9)参考文献 (10)附录一:电路图 (11)附录二:主程序 (11)摘要本文将介绍一种以89C51型单片机为基础元件设计的自动音乐播放器。

在当今这个科技高速发展的时代,生活节奏的加快,人们长期处于工作、学习压力过大的状态,对于调节心理压力而言音乐对于每一个人都十分重要,由此音乐播放器在国内已经开始普及。

校园里的上下课的铃声,宿舍内早晨的起床号声音,都由以前枯燥刺耳的铃音转变成了好听的音乐,公路、广场中的计时装置也逐渐开始采用音乐来充当铃声。

此装置不仅为人们日常生活的计时提供了方便,同时也为目前快节奏的生活带来了乐趣。

本文是应用MCS-51单片机原理和控制理论设计音乐演奏控制器的硬件电路,并利用C语言进行程序设计。

通过控制单片机内部的定时器来产生不同频率的方波,驱动蜂鸣器发出不同音调的音乐,再利用延迟来控制发音时间的长短。

把乐谱转化成相应的定时常数就可以从发音设备中演奏出悦耳动听的音乐。

这种控制电路结构简单,可读性高,应用性强;软件程序适应范围广,对于不同的音乐只需要改变相应的定时常数即可。

关键词:音乐播放器,51单片机,C语言1 绪论单片机,更确切地说应称为作微控制器,是20世纪70年代中期发展起来的一种面向控制的大规模集成电路模块,其特点是功能强、体积小、可靠性高、价格低廉。

它一面世便在工业控制、数据采集、智能仪表化、机电一体化、家用电器等领域得到了广泛应用,极大地提高了这些领域的技术水平和自动化程度。

PIC单片机实现音乐播放

PIC单片机实现音乐播放

PIC单片机实现音乐播放源程序:以下程序要用二个定时器资源,凡是有二个定时器的PIC单片机均可实现,该范例需要的MCU是MICROCHIP PIC16C62INCLUDE "D:\PIC\P16XX.EQU" ;该文件在MICROCHIP光盘中可找到;**************************************************#define BeepOut RC,4;**************************************************W_TEMP EQU 0X20 ;(0XA0)STATUS_TEMP EQU 0X21BeepCnt equ 30hTmrBak equ 31hBeepMode equ 32hSflag equ 33h;**************************************************CSTIME100MS equ .8;;**************************************************;SflagFg_100ms equ 0FgBeep equ 1;**************************************************ORG 000H;GOTO MAIN ; Skip over interrupt vecterORG 04H ; Interrupt VectorGOTO INTZ;**************************************************OkTab:movf BeepCnt,waddwf PCL,fretlw .255-.130;0xf6 ;1 ;retlw .255-.126;0xfa ;2 ;retlw .255-.119; 0xfd ;3 ;retlw 0;**************************************************WhisleTab:movf BeepCnt,waddwf PCL,fretlw .255-.239;523Hz ;0 ;retlw .255-.179;698Hz ;1 ;retlw .255-.159;784Hz ;2 ;retlw .255-.119;1046Hz ;3 ;retlw .0;************************************************** HangTab:movf BeepCnt,waddwf PCL,fretlw .255-.159; 784Hz ;0 ;retlw .255-.119; 1046Hz ;1 ;retlw .255-.150; 830Hz ;2 ;retlw .255-.112 ;1109Hz ;3 ;retlw .255-.142 ;880Hz ;4 ;retlw .255-.106;1174Hz ;5 ;retlw .255-.134;932Hz ;6 ;retlw .255-.100;1244Hz ;7retlw .255-.126;988Hz ;8;retlw .255-.94;1318Hz ;9;retlw .255-.119;1046Hz ;10 ;retlw .255-.89;1397Hz ;11 ;retlw .0;************************************************** WelcomTab:movf BeepCnt,waddwf PCL,fretlw .255-.89;1397Hz ;11 ;retlw .255-.119;1046Hz ;10 ;retlw .255-.94;1318Hz ;9;retlw .255-.126;988Hz ;8;retlw .255-.100;1244Hz ;7retlw .255-.134;932Hz ;6 ;retlw .255-.106;1174Hz ;5 ;retlw .255-.142 ;880Hz ;4 ;retlw .255-.112 ;1109Hz ;3 ;retlw .255-.150; 830Hz ;2 ;retlw .255-.119; 1046Hz ;1 ;retlw .255-.159; 784Hz ;0 ;retlw .0;************************************************** BeepModeJmp:addwf PCL,fb psWhisle ;0b psOk ;1b psHang ;2b psWelcom ;3;************************************************** IO_SET:MOVLW B'11001011'MOVWF TRISAMOVLW B'00001100'movwf TRISBMOVLW B'00000011'movwf TRISC ; Set Port_C to all outputsBANK0_RETURN;**************************************************SYS_SET:BANK1_MOVLW B'00000111' ; 1:256 TMR0分频MOVWF OPTION_RBSF PIE1,TMR2IE ;TMR2中断允许BANK0_MOVLW B'00000001' ;开TMR1MOVWF T1CONbsf INTCON,TOIE ;TMR0中断允许BSF INTCON,PEIE ;允许所有未被屏蔽之外围接口中断RETURN;**************************************************MAIN: ; Main rotationCALL IO_SETMOVLW B'00000000' ;关所有中断MOVWF INTCON;****************************CALL SYS_SET;****************************call PlayPsWelcom ;上电提示音MAINLOOP:bsf INTCON,GIE ;开所有中断CLRWDT ; Clear WDTcall BeepForB MAINLOOP;**************************************************INTZ:PUSH ; Push ;中断服务程序BTFSC PIR1,TMR2IF ;测试TMR2中断标志位b INT_TMR2 ;BTFSC INTCON,TOIF ;测试TMR0中断标志位GOTO INT_TMR0IntRet:POP ; Pop;************************************************** INT_TMR2:BCF PIR1,TMR2IF ;清TMR2中断标志位movf TmrBak,wmovwf TMR2CPL BeepOutBeeperEnd:b IntRet;************************************************** INT_TMR0: ;定时0中断BCF INTCON,TOIF ; clear INTFMOVLW .255-.38 ;10msMOVWF TMR0;====================decfsz T100ms,fb int_tmr0_retmovlw CSTIME100MSmovwf T100msbsf Sflag,Fg_100ms;=====================int_tmr0_ret:b IntRet;************************************************** PlayPsWhisle:bsf Fg,FgBeepclrf BeepCntmovlw .0movwf BeepModemovlw CSTIME100MSmovwf T100msretlw 0;************************************************** PlayPsOk:bsf Fg,FgBeepclrf BeepCntmovlw .1movwf BeepModemovlw CSTIME100MSmovwf T100msretlw 0;************************************************** PlayPsHang:bsf Fg,FgBeepmovlw .2movwf BeepModemovlw CSTIME100MSmovwf T100msretlw 0;************************************************** PlayPsWelcom:bsf Fg,FgBeepclrf BeepCntmovlw .3movwf BeepModemovlw CSTIME100MSmovwf T100msretlw 0;************************************************** ;音乐播放程序;BeepMode=0 : psWhisle;BeepMode=1 : psOk;BeepMode=2 : psHang;BeepMode=3 : psWelcom;************************************************** BeepFor:btfss Sflag,Fg_100msb BeepForEndbcf Sflag,Fg_100msbtfss Sflag,FgBeepb BeepForEndMOVLW B'00000101' ;开TMR2 1:4分频MOVWF T2CONmovf BeepMode,wb BeepModeJmppsWhisle:call WhisleTabb BeepPlaypsOk:call OkTabb BeepPlaypsHang:call HangTabb BeepPlaypsWelcom:call WelcomTabb BeepPlayincf BeepCnt,fmovwf TmrBakmovf TmrBak,fbtfsc status,zb BeepOffmovlw .1xorwf TmrBak,wbtfsc status,zb BeepStopb BeepForEndBeepOff:clrf BeepCntbcf Sflag,FgBeepbcf BeepOutbcf T2CON,TMR2ONb BeepForEndBeepStop:bcf T2CON,TMR2ON ;stopbcf BeepOutBeepForEnd:retlw 0;************************************************** END。

单片机控制系统外文翻译

单片机控制系统外文翻译

Microcomputer SystemsElectronic systems are used for handing information in the most general sense; this information may be telephone conversation, instrument read or a company’s accounts, but in each case the same main type of operation are involved: the processing, storage and transmission of information. in conventional electronic design these operations are combined at the function level; for example a counter, whether electronic or mechanical, stores the current and increments it by one as required. A system such as an electronic clock which employs counters has its storage and processing capabilities spread throughout the system because each counter is able to store and process numbers.Present day microprocessor based systems depart from this conventional approach by separating the three functions of processing, storage, and transmission into different section of the system. This partitioning into three main functions was devised by V on Neumann during the 1940s, and was not conceived especially for microcomputers. Almost every computer ever made has been designed with this structure, and despite the enormous range in their physical forms, they have all been of essentially the same basic design.In a microprocessor based system the processing will be performed in the microprocessor itself. The storage will be by means of memory circuits and the communication of information into and out of the system will be by means of special input/output(I/O) circuits. It would be impossible to identify a particular piece of hardware which performed the counting in a microprocessor based clock because the time would be stored in the memory and incremented at regular intervals but the microprocessor. However, the software which defined the system’s behavior wou ld contain sections that performed as counters. The apparently rather abstract approach to the architecture of the microprocessor and its associated circuits allows it to be very flexible in use, since the system is defined almost entirely software. The design process is largely one of software engineering, and the similar problems of construction and maintenance which occur in conventional engineering are encountered when producing software.The figure1.1 illustrates how these three sections within a microcomputer are connected in terms of the communication of information within the machine. The system is controlled by the microprocessor which supervises the transfer of information between itself and the memory and input/output sections. The external connections relate to the rest (that is, the non-computer part) of the engineering system.Fig.1.1 Three Sections of a Typical MicrocomputerAlthough only one storage section has been shown in the diagram, in practice two distinct types of memory RAM and ROM are used. In each case, the word ‘memory’ is rather inappropriate since a computers memory is more like a filing cabinet in concept; information is stored in a set of numbered ‘boxes’ and it is referenced by the serial number of the ‘box’ in question.Microcomputers use RAM (Random Access Memory) into which data can be written and from which data can be read again when needed. This data can be read back from the memory in any sequence desired, and not necessarily the same order in which it was written, hence the expression ‘random’ access memory. Another type of ROM (Read Only Memory) is used to hold fixed patterns of information which cannot be affected by the microprocessor; these patterns are not lost when power is removed and are normally used to hold the program which defines the behavior of a microprocessor based system. ROMs can be read like RAMs, but unlike RAMs they cannot be used to store variable information. Some ROMs have their data patterns put in during manufacture, while others are programmable by the user by means of special equipment and are called programmable ROMs. The widely used programmable ROMs are erasable by means of special ultraviolet lamps and are referred to as EPROMs, short for Erasable Programmable Read Only Memories. Other new types of device can be erased electrically without the need for ultraviolet light, which are called Electrically Erasable Programmable Read Only Memories, EEPROMs.The microprocessor processes data under the control of the program, controlling the flow of information to and from memory and input/output devices. Some input/output devices are general-purpose types while others are designed for controlling special hardware such as disc drives or controlling information transmission to other computers. Most types of I/O devices are programmable to some extent, allowing different modes of operation, while some actually contain special-purpose microprocessors to permit quite complex operations to be carried out without directly involving the main microprocessor.The microprocessor processes data under the control of the program, controlling the flow ofinformation to and from memory and input/output devices. Some input/output devices are general-purpose types while others are designed for controlling special hardware such as disc drives or controlling information transmission to other computers. Most types of I/O devices are programmable to some extent, allowing different modes of operation, while some actually contain special-purpose microprocessors to permit quite complex operations to be carried out without directly involving the main microprocessor.The microprocessor , memory and input/output circuit may all be contained on the same integrated circuit provided that the application does not require too much program or data storage . This is usually the case in low-cost application such as the controllers used in microwave ovens and automatic washing machines . The use of single package allows considerable cost savings to e made when articles are manufactured in large quantities . As technology develops , more and more powerful processors and larger and larger amounts of memory are being incorporated into single chip microcomputers with resulting saving in assembly costs in the final products . For the foreseeable future , however , it will continue to be necessary to interconnect a number of integrated circuits to make a microcomputer whenever larger amounts of storage or input/output are required.Another major engineering application of microcomputers is in process control. Here the presence of the microcomputer is usually more apparent to the user because provision is normally made for programming the microcomputer for the particular application. In process control applications the benefits lf fitting the entire system on to single chip are usually outweighed by the high design cost involved, because this sort lf equipment is produced in smaller quantities. Moreover, process controllers are usually more complicated so that it is more difficult to make them as single integrated circuits. Two approaches are possible; the controller can be implemented as a general-purpose microcomputer rather like a more robust version lf a hobby computer, or as a ‘packaged’ system, signed for replacing controllers based on older technologies such as electromagnetic relays. In the former case the system would probably be programmed in conventional programming languages such as the ones to9 be introduced later, while in the other case a special-purpose language might be used, for example one which allowed the function of the controller to be described in terms of relay interconnections, In either case programs can be stored in RAM, which allows them to be altered to suit changes in application, but this makes the overall system vulnerable to loss lf power unless batteries are used to ensure continuity of supply. Alternatively programs can be stored in ROM, in which case they virtually become part of the electronic ‘hardware’ and are often referred to as firmware. More sophisticated process controllersrequire minicomputers for their implementation, although the use lf large scale integrated circuits ‘the distinction between mini and microcomputers, Products and process controllers of various kinds represent the majority of present-day microcomputer applications, the exact figures depending on one’s interpretation of the word ‘product’. Virtually all engineering and scientific uses of microcomputers can be assigned to one or other of these categories. But in the system we most study Pressure and Pressure Transmitters. Pressure arises when a force is applied over an area. Provided the force is one Newton and uniformly over the area of one square meters, the pressure has been designated one Pascal. Pressure is a universal processing condition. It is also a condition of life on the planet: we live at the bottom of an atmospheric ocean that extends upward for many miles. This mass of air has weight, and this weight pressing downward causes atmospheric pressure. Water, a fundamental necessity of life, is supplied to most of us under pressure. In the typical process plant, pressure influences boiling point temperatures, condensing point temperatures, process efficiency, costs, and other important factors. The measurement and control of pressure or lack of it-vacuum-in the typical process plant is critical.The working instruments in the plant usually include simple pressure gauges, precision recorders and indicators, and pneumatic and electronic pressure transmitters. A pressure transmitter makes a pressure measurement and generates either a pneumatic or electrical signal output that is proportional to the pressure being sensed.In the process plant, it is impractical to locate the control instruments out in the place near the process. It is also true that most measurements are not easily transmitted from some remote location. Pressure measurement is an exception, but if a high pressure of some dangerous chemical is to be indicated or recorded several hundred feet from the point of measurement, a hazard may be from the pressure or from the chemical carried.To eliminate this problem, a signal transmission system was developed. This system is usually either pneumatic or electrical. And control instruments in one location. This makes it practical for a minimum number of operators to run the plant efficiently.When a pneumatic transmission system is employed, the measurement signal is converted into pneumatic signal by the transmitter scaled from 0 to 100 percent of the measurement value. This transmitter is mounted close to the point of measurement in the process. The transmitter output-air pressure for a pneumatic transmitter-is piped to the recording or control instrument. The standard output range for a pneumatic transmitter is 20 to 100kPa, which is almost universally used.When an electronic pressure transmitter is used, the pressure is converted to electrical signal thatmay be current or voltage. Its standard range is from 4 to 20mA DC for current signal or from 1 to 5V DC for voltage signal. Nowadays, another type of electrical signal, which is becoming common, is the digital or discrete signal. The use of instruments and control systems based on computer or forcing increased use of this type of signal.Sometimes it is important for analysis to obtain the parameters that describe the sensor/transmitter behavior. The gain is fairly simple to obtain once the span is known. Consider an electronic pressure transmitter with a range of 0~600kPa.The gain isdefined as the change in output divided by the change in input. In this case, the output is electrical signal (4~20mA DC) and the input is process pressure (0~600kPa). Thus the gain. Beside we must measure Temperature Temperature measurement is important in industrial control, as direct indications of system or product state and as indirect indications of such factors as reaction rates, energy flow, turbine efficiency, and lubricant quality. Present temperature scales have been in use for about 200 years, the earliest instruments were based on the thermal expansion of gases and liquids. Such filled systems are still employed, although many other types of instruments are available. Representative temperature sensors include: filled thermal systems, liquid-in-glass thermometers, thermocouples, resistance temperature detectors, thermostats, bimetallic devices, optical and radiation pyrometers and temperature-sensitive paints.Advantages of electrical systems include high accuracy and sensitivity, practicality of switching or scanning several measurements points, larger distances possible between measuring elements and controllers, replacement of components(rather than complete system), fast response, and ability to measure higher temperature. Among the electrical temperature sensors, thermocouples and resistance temperature detectors are most widely used.DescriptionThe A T89C51 is a low-power, high-performance CMOS 8-bit microcomputer with 4K bytes of Flash programmable and erasable read only memory (PEROM). The device is manufactur ed using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set and pinout. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPUkPamA kPa mA kPa kPa mA mA Kr 027.0600160600420==--=with Flash on a monolithic chip, the Atmel AT89C51 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications.Function characteristicThe A T89C51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator and clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning. The Power-down Mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset.Pin DescriptionVCC:Supply voltage.GND:Ground.Port 0:Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as highimpedance inputs.Port 0 may also be configured to be the multiplexed loworder address/data bus during accesses to external program and data memory. In this mode P0 has internal pullups.Port 0 also receives the code bytes during Flash programming,and outputs the code bytes during programverification. External pullups are required during programverification.Port 1Port 1 is an 8-bit bi-directional I/O port with internal pullups.The Port 1 output buffers can sink/source four TTL inputs.When 1s are written to Port 1 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pullups.Port 1 also receives the low-order address bytes during Flash programming and verification.Port 2Port 2 is an 8-bit bi-directional I/O port with internal pullups.The Port 2 output buffers can sink/source four TTL inputs.When 1s are written to Port 2 pins they are pulled high by the internal pullups and canbe used as inputs. As inputs,Port 2 pins that are externally being pulled low will source current, because of the internal pullups.Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses. In this application, it uses strong internal pullupswhen emitting 1s. During accesses to external data memory that use 8-bit addresses, Port 2 emits the contents of the P2 Special Function Register.Port 2 also receives the high-order address bits and some control signals during Flash programming and verification.Port 3Port 3 is an 8-bit bi-directional I/O port with internal pullups.The Port 3 output buffers can sink/source four TTL inputs.When 1s are written to Port 3 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 3 pins that are externally being pulled low will source current (IIL) because of the pullups.Port 3 also serves the functions of various special features of the AT89C51 as listed below:Port 3 also receives some control signals for Flash programming and verification.RSTReset input. A high on this pin for two machine cycles while the oscillator is running resets the device. ALE/PROGAddress Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming.In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external Data Memory.If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode.PSENProgram Store Enable is the read strobe to external program memory.When the AT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory.EA/VPPExternal Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset.EA should be strapped to VCC for internal program executions.This pin also receives the 12-volt programming enable voltage(VPP) during Flash programming, for parts that require12-volt VPP.XTAL1Input to the inverting oscillator amplifier and input to the internal clock operating circuit.XTAL2Output from the inverting oscillator amplifier.Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output, respectively,of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in Figure 1.Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 2.There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed.微型计算机控制系统(单片机控制系统)广义地说,微型计算机控制系统(单片机控制系统)是用于处理信息的,这种被用于处理的信息可以是电话交谈,也可以是仪器的读数或者是一个企业的帐户,但是各种情况下都涉及到相同的主要操作:信息的处理、信息的存储和信息的传递。

单片机控制音乐播放-外文翻译复习课程

单片机控制音乐播放-外文翻译复习课程

单片机控制音乐播放-外文翻译毕业设计(论文)外文翻译题目: __ 单片机控制音乐播放_ __英文题目: Single chip microcomputer to control the music player系 : _ 信息工程系_ __专业: _ _ __ 电子信息工程___ ___班级: ___ _ __ 09电信本________ _学号: ___ _____8110109053___ ______姓名: ________ 张亚峰 ______ _____指导老师: _________王乐平_________ ____填表日期 _ __ ___2012.11.16_____ ____基于51单片机的音乐播放器设计作者:Bob brown 来源:《SCM》摘要:本音乐播放器是利用STC89C51单片机结合内部定时系统及数码管显示设计一个简易的微电脑音乐盒。

本文分析了基于51单片机的音乐播放器的硬件电路和软件的设计的具体过程包括数据处理子程序的设计、显示子程序的设计最后针对仿真过程遇到的现象进行了具体的分析与说明。

关键词:播放;单片机; STC89C51随着人们物质生活水平的提高,人们越来越注重精神生活的满足,热衷于在消费中寻求快乐和娱乐体验。

音乐作为人类娱乐生活的重要组成元素,一直以来都备受关注。

而人类进入工业社会以来,将音乐播放与工业产品结合发展出了一系列的音乐播放产品,并随着技术的革新和消费者需求的变化而不断更新,为人类的娱乐生活提供了时尚便利的道具。

前两年造型时尚、小巧便携、可免费下载歌曲的MP3播放器的流行更是使音乐播放产品空前繁荣。

但是在繁荣过后,主流音乐播放产品MP3播放器在造型和系统的设计上似乎走进了一个瓶颈,新产品和旧产品比起来只是固件上的更新和硬件的更迭,而没有内容和实质的跳跃,因此在同样具有便携性特点和音乐播放功能的音乐手机出现的时候,MP3原有的功能优势不再,市场继而被迅速挤压,地位收到空前的威胁。

单片机外文文献翻译(2024)

单片机外文文献翻译(2024)

引言:单片机(Microcontroller)是一种广泛应用于嵌入式系统中的小型计算机芯片。

它集成了处理器核心、存储器、外设接口和时钟电路等核心部件,可以独立运行。

随着全球化的发展,外文文献对于学习和研究单片机领域来说至关重要。

本文翻译的外文文献《MicrocontrollerbasedTrafficLightControlSystem》详细介绍了基于单片机的交通信号灯控制系统。

概述:交通信号灯控制是现代都市交通系统中至关重要的一环。

传统的交通信号灯控制系统通常由定时器控制,不能根据实际交通情况动态调整信号灯的时间。

而基于单片机的交通信号灯控制系统可以实现根据实时交通流量来动态调整信号灯的时间,优化交通效率。

本文将详细介绍该系统的设计和实现。

正文:一、单片机选型1.1.CPU性能:本文选择了一款高性能的32位单片机作为控制核心,它具有较高的处理能力和较大的存储器容量,可以同时处理多条交通路口的信号控制。

1.2.外设接口:该单片机具有丰富的外设接口,可以与交通信号灯、传感器和通信设备等进行连接,实现信号控制和数据交互。

1.3.低功耗设计:为了节约能源和延长系统寿命,在单片机选型时考虑了低功耗设计,降低系统运行的能耗。

二、硬件设计2.1.交通信号灯:在设计交通信号灯时,考虑了日夜可见性和能耗。

采用了高亮度LED作为信号灯光源,同时添加了光敏传感器控制信号灯的亮度,以满足不同时间段的亮度需求。

2.2.传感器:通过安装车辆感应器和行人感应器等传感器,可以在实时监测交通流量的基础上,智能调整信号灯时间,提高路口的交通效率。

2.3.通信设备:在交通信号灯控制系统中引入了通信设备,可以实现各交通路口之间的信息交互和协调控制,提高整体交通系统的效率。

三、软件设计3.1.程序架构:采用了多任务的实时操作系统,将交通信号灯控制、传感器数据处理和通信设备控制等功能分别封装成不同的任务,实现了系统的高效运行和任务调度。

毕业设计(论文)-基于单片机控制的音乐播放器[管理资料]

毕业设计(论文)-基于单片机控制的音乐播放器[管理资料]

单片机音乐播放器设计报告学生:XXX 指导教师:XXX内容摘要:单片机具有体积小、功能强、成本低、应用面广等优点,可以说,智能控制与自动控制的核心就是单片机。

根据要求设计一款音乐播放器,能实现音乐播放的简单功能,同时为了美化,添加了韵律闪烁彩灯,设计时采用Keil软件编程,用protues软件仿真,核心器件采用灵活性高且价格低廉的AT89C51芯片。

设计完成后系统可播放自编歌曲,同时发光二极管随着歌曲韵律闪烁。

关键词:单片机 AT89C51 音乐播放英文标题Abstract: SCM has small, strong function, low cost, application, advantages and intelligent control and automatic control of the core is the microcontroller. According to the requirements of a music player, design of music broadcast can realize simple function, and to beautify, added rhythm flashing lights, design is used when Keil C software programming, with protues software simulation, the core device adopts high flexibility and the price is cheap AT89C51 chip. The design is completed system can play Wrote songs, and leds with songs rhythm flicker.Keywords:SCM Temperature AT89C51 Music broadcast前言:微机原理和接口技术是一门实践性强的学科,不但要求有较高的理论水平,而且还要求有实际的动手能力,其中很多的原量、规则、现象等仅仅靠学习教科书是无法完全掌握的,必须通过实践才能比较直观和深刻的理解。

单片机音乐播放___c语言程序

单片机音乐播放___c语言程序

主程序:程序中附有详尽说明#include <REG52.H>#include "SoundPlay.h"void Delay1ms(unsigned int count){unsigned int i,j;for(i=0;i<count;i++)for(j=0;j<120;j++);}//*****************************Music******************************************** **********//挥着翅膀的女孩unsigned char code Music_Girl[]={ 0x17,0x02, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x15,0x03,0x16,0x03, 0x17,0x03, 0x17,0x03, 0x17,0x03, 0x18,0x03,0x19,0x02, 0x16,0x03, 0x17,0x03, 0x18,0x02, 0x18,0x03,0x17,0x03, 0x15,0x02, 0x18,0x03, 0x17,0x03, 0x18,0x02,0x10,0x03, 0x15,0x03, 0x16,0x02, 0x15,0x03, 0x16,0x03,0x17,0x02, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x1A,0x03,0x1B,0x03, 0x1F,0x03, 0x1F,0x03, 0x17,0x03, 0x18,0x03,0x19,0x02, 0x16,0x03, 0x17,0x03, 0x18,0x03, 0x17,0x03,0x18,0x03, 0x1F,0x03, 0x1F,0x02, 0x16,0x03, 0x17,0x03,0x18,0x03, 0x17,0x03, 0x18,0x03, 0x20,0x03, 0x20,0x02,0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x20,0x03, 0x21,0x03,0x20,0x03, 0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x1F,0x03,0x1B,0x03, 0x19,0x03, 0x19,0x03, 0x15,0x03, 0x1A,0x66,0x1A,0x03, 0x19,0x03, 0x15,0x03, 0x15,0x03, 0x17,0x03,0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x20,0x03, 0x21,0x03,0x20,0x03, 0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x1F,0x03,0x1B,0x03, 0x19,0x03, 0x19,0x03, 0x15,0x03, 0x1A,0x66,0x1A,0x03, 0x19,0x03, 0x19,0x03, 0x1F,0x03, 0x1B,0x03,0x1F,0x00, 0x1A,0x03, 0x1A,0x03, 0x1A,0x03, 0x1B,0x03,0x1B,0x03, 0x1A,0x03, 0x19,0x03, 0x19,0x02, 0x17,0x03,0x15,0x17, 0x15,0x03, 0x16,0x03, 0x17,0x03, 0x18,0x03,0x17,0x04, 0x18,0x0E, 0x18,0x03, 0x17,0x04, 0x18,0x0E,0x18,0x66, 0x17,0x03, 0x18,0x03, 0x17,0x03, 0x18,0x03,0x20,0x03, 0x20,0x02, 0x1F,0x03, 0x1B,0x03, 0x1F,0x66,0x20,0x03, 0x21,0x03, 0x20,0x03, 0x1F,0x03, 0x1B,0x03,0x1F,0x66, 0x1F,0x04, 0x1B,0x0E, 0x1B,0x03, 0x19,0x03,0x19,0x03, 0x15,0x03, 0x1A,0x66, 0x1A,0x03, 0x19,0x03,0x15,0x03, 0x15,0x03, 0x17,0x03, 0x16,0x66, 0x17,0x04,0x18,0x04, 0x18,0x03, 0x19,0x03, 0x1F,0x03, 0x1B,0x03,0x1F,0x66, 0x20,0x03, 0x21,0x03, 0x20,0x03, 0x1F,0x03,0x1B,0x03, 0x1F,0x66, 0x1F,0x03, 0x1B,0x03, 0x19,0x03,0x19,0x03, 0x15,0x03, 0x1A,0x66, 0x1A,0x03, 0x19,0x03,0x19,0x03, 0x1F,0x03, 0x1B,0x03, 0x1F,0x00, 0x18,0x02,0x18,0x03, 0x1A,0x03, 0x19,0x0D, 0x15,0x03, 0x15,0x02,0x18,0x66, 0x16,0x02, 0x17,0x02, 0x15,0x00, 0x00,0x00};//同一首歌unsigned char code Music_Same[]={ 0x0F,0x01, 0x15,0x02, 0x16,0x02, 0x17,0x66, 0x18,0x03,0x17,0x02, 0x15,0x02, 0x16,0x01, 0x15,0x02,0x18,0x66,0x17,0x03, 0x19,0x02, 0x16,0x03, 0x17,0x03, 0x16,0x00,0x17,0x01, 0x19,0x02, 0x1B,0x02, 0x1B,0x70, 0x1A,0x03,0x1A,0x01, 0x19,0x02, 0x19,0x03, 0x1A,0x03, 0x1B,0x02,0x1A,0x0D, 0x19,0x03, 0x17,0x00, 0x18,0x66, 0x18,0x03,0x19,0x02, 0x1A,0x02, 0x19,0x0C, 0x18,0x0D, 0x17,0x03,0x16,0x01, 0x11,0x02, 0x11,0x03, 0x10,0x03, 0x0F,0x0C,0x10,0x02, 0x15,0x00, 0x1F,0x01, 0x1A,0x01, 0x18,0x66,0x19,0x03, 0x1A,0x01, 0x1B,0x02, 0x1B,0x03, 0x1B,0x03,0x1B,0x0C, 0x1A,0x0D, 0x19,0x03, 0x17,0x00, 0x1F,0x01,0x1A,0x01, 0x18,0x66, 0x19,0x03, 0x1A,0x01, 0x10,0x02,0x10,0x03, 0x10,0x03, 0x1A,0x0C, 0x18,0x0D, 0x17,0x03,0x16,0x00, 0x0F,0x01, 0x15,0x02, 0x16,0x02, 0x17,0x70,0x18,0x03, 0x17,0x02, 0x15,0x03, 0x15,0x03, 0x16,0x66,0x16,0x03, 0x16,0x02, 0x16,0x03, 0x15,0x03, 0x10,0x02,0x10,0x01, 0x11,0x01, 0x11,0x66, 0x10,0x03, 0x0F,0x0C,0x1A,0x02, 0x19,0x02, 0x16,0x03, 0x16,0x03, 0x18,0x66,0x18,0x03, 0x18,0x02, 0x17,0x03, 0x16,0x03, 0x19,0x00,0x00,0x00 };//两只蝴蝶unsigned char code Music_Two[] ={ 0x17,0x03, 0x16,0x03, 0x17,0x01, 0x16,0x03, 0x17,0x03,0x16,0x03, 0x15,0x01, 0x10,0x03, 0x15,0x03, 0x16,0x02,0x16,0x0D, 0x17,0x03, 0x16,0x03, 0x15,0x03, 0x10,0x03,0x10,0x0E, 0x15,0x04, 0x0F,0x01, 0x17,0x03,0x17,0x03,0x16,0x03, 0x15,0x03, 0x10,0x03, 0x15,0x03, 0x16,0x01,0x17,0x03, 0x16,0x03, 0x17,0x01, 0x16,0x03, 0x17,0x03,0x16,0x03, 0x15,0x01, 0x10,0x03, 0x15,0x03, 0x16,0x02,0x16,0x0D, 0x17,0x03, 0x16,0x03, 0x15,0x03, 0x10,0x03,0x10,0x0E, 0x15,0x04, 0x0F,0x01, 0x17,0x03, 0x19,0x03,0x19,0x01, 0x19,0x03, 0x1A,0x03, 0x19,0x03, 0x17,0x01,0x16,0x03, 0x16,0x03, 0x16,0x02, 0x16,0x0D, 0x17,0x03,0x16,0x03, 0x15,0x03, 0x10,0x03, 0x10,0x0D, 0x15,0x00,0x19,0x03, 0x19,0x03, 0x1A,0x03, 0x1F,0x03, 0x1B,0x03,0x1B,0x03, 0x1A,0x03, 0x17,0x0D, 0x16,0x03, 0x16,0x03,0x16,0x0D, 0x17,0x01, 0x17,0x03, 0x17,0x03, 0x19,0x03,0x1A,0x02, 0x1A,0x02, 0x10,0x03, 0x17,0x0D, 0x16,0x03,0x16,0x01, 0x17,0x03, 0x19,0x03, 0x19,0x03, 0x17,0x03,0x19,0x02, 0x1F,0x02, 0x1B,0x03, 0x1A,0x03, 0x1A,0x0E,0x1B,0x04, 0x17,0x02, 0x1A,0x03, 0x1A,0x03, 0x1A,0x0E,0x1B,0x04, 0x1A,0x03, 0x19,0x03, 0x17,0x03, 0x16,0x03,0x17,0x0D, 0x16,0x03, 0x17,0x03, 0x19,0x01, 0x19,0x03,0x19,0x03, 0x1A,0x03, 0x1F,0x03, 0x1B,0x03, 0x1B,0x03,0x1A,0x03, 0x17,0x0D, 0x16,0x03, 0x16,0x03, 0x16,0x03,0x17,0x01, 0x17,0x03, 0x17,0x03, 0x19,0x03, 0x1A,0x02,0x1A,0x02, 0x10,0x03, 0x17,0x0D, 0x16,0x03, 0x16,0x01,0x1F,0x02, 0x1B,0x03, 0x1A,0x03, 0x1A,0x0E, 0x1B,0x04,0x17,0x02, 0x1A,0x03, 0x1A,0x03, 0x1A,0x0E, 0x1B,0x04,0x17,0x16, 0x1A,0x03, 0x1A,0x03, 0x1A,0x0E, 0x1B,0x04,0x1A,0x03, 0x19,0x03, 0x17,0x03, 0x16,0x03, 0x0F,0x02,0x10,0x03, 0x15,0x00, 0x00,0x00 };//****************************************************************************** *****main(){InitialSound();while(1){Play(Music_Girl,0,3,360);Delay1ms(500);Play(Music_Same,0,3,360);Delay1ms(500);Play(Music_Two,0,3,360);Delay1ms(500);}}以下为h文件:/**************************************************************************SOUND PLAY FOR 51MCUCOPYRIGHT (c) 2005 BY JJJ.-- ALL RIGHTS RESERVED --File Name: SoundPlay.hAuthor: Jiang Jian JunCreated: 2005/5/16Modified: NORevision: 1.0******************************************************************************* //*说明表示结束(Important)音高由三位数字组成:个位是表示1~7 这七个音符十位是表示音符所在的音区:1-低音,2-中音,3-高音;百位表示这个音符是否要升半音: 0-不升,1-升半音。

单片机STM32外文文献翻译、中英文翻译

单片机STM32外文文献翻译、中英文翻译

外文翻译英文原文:STM32 MicrocontrollerIntroductionRequirements based STM32 family is designed for high-performance, low-cost, low-power embedded applications designed specifically for ARM Cortex-M3 core. According to the performance into two different series: STM32F103 "Enhanced" series and STM32F101 "Basic" series. Enhanced Series clock frequency of 72MHz, the highest performance of similar products product; basic clock frequency of 36MHz, 16-bit product prices get more than 16 products significantly enhance the performance and is 16 product users the best choice. Both series have built-in 32K to 128K of flash memory, the difference is the maximum capacity of the SRAM and peripheral combinations. At 72MHz, executing from Flash, STM32 power consumption 36mA, are 32 products on the market's lowest power, the equivalent of 0.5mA/MHz.STM32F103 Performance Characteristics1)Kernel. ARM32 bit CPU, the maximum operating frequency of 72MHz,1.25DMIPS/MHz. Single-cycle multiply and hardware divide.2)Memory. Integrated on-chip 32-512KB of Flash memory. 6-64KB SRAM memory.3)Clock, reset, and power management. 2.0-3.6V power supply and I / O interface, the drive voltage. POR, PDR and programmable voltage detector. 4-16MHz crystal. Embedded factory tuned 8MHz RC oscillator circuit. 40 kHz internal RC oscillator circuit. CPU clock for the PLL. With calibration for the RTC 32kHz crystal.4)Low power consumption. Three kinds of low-power mode. Sleep, stop, standby mode. For RTC and backup registers supply VBAT.5)Debug mode. Serial debugging and JTAG interface.6)Direct data storage. 12-channel direct data storage controller. Supported peripherals: timers, ADC, DAC, SPI, IIC and USART.7)Up to a maximum of 112 fast I / O ports. Depending on the model, there are 26,37,51,80, and 112 I / O ports, all ports can be mapped to 16 external interruptvectors. In addition to the analog input, all of them can accept the input of 5V or less.8)Up to a maximum of 11 timers. Four 16-bit timers, each with 4 IC / OC / PWM or pulse counter. 2 16 6-channel advanced control timer: up to 6 channels can be used for PWM output. 2 watchdog timer. Systick timer: 24 down counter. Two 16-bit basic timer for driving DAC.9)Up to a maximum of 13 communication interfaces. 2 IIC interface. 5 USART interfaces. 3 SPI interface, two and IIS reuse. CAN interface. USB 2.0 full-speed interface. SDIO interface.System Function1)Integration of embedded Flash and SRAM memory ARM Cortex-M3 core. And 8/16 equipment compared, ARM Cortex-M3 32-bit RISC processor provides a higher code efficiency. STM32F103xx microcontrollers with an embedded ARM core, so it can be compatible with all ARM tools and software.2)Embedded Flash memory and RAM memory. Built up to 512KB embedded Flash, can be used to store programs and data. Up to 64KB of embedded SRAM clock speed of the CPU can read and write.3)Variable static memory. Variable static memory with 4 chip selects, supports four modes: Flash, RAM, PSRAM, NOR and NAND. After three FSMC interrupt lines connected to the OR after the nested vector interrupt controller. No read / write FIFO, except PCCARD, the code is executed from external memory is not supported Boot, the target frequency is equal to SYSCLK / 2, so the time when the system clock is 72MHz, 36MHz conducted in accordance with external access.4)Nested Vectored Interrupt Controller. Can handle 43 maskable interrupt channels, providing 16 interrupt priority levels. Tightly coupled nested vectored interrupt controller to achieve lower latency interrupt handling directly passed to the kernel interrupt vector table entry address, tightly coupled nested vectored interrupt controller kernel interface, allowing early treatment interruption, the latter to be more high-priority interrupt processing, support tail chain, auto-save processor state terrupts automatically restored on interrupt exit, no instructions intervention.5)External interrupt / event controller. External interrupt / event controller consists for 19 to generate interrupt / event requests edge detector lines. Each line can be individually configured to select the trigger event, it can be individually masked. There is a pending interrupt request registers to maintain state. When an external line appear longer than the internal APB2 clock-cycle pulse, the external interrupt / eventcontroller is able to detect. Up to 112 GPIO connected to the 16 external interrupt lines.6)Clocks and startup. At boot time or to the system clock selection, but the reset when the internal 8MHz crystal oscillator is selected as the CPU clock. Can choose a 4-16MHz external clock, and will be monitored to determine the success. During this time, the interrupt controller is disabled and the software management is subsequently disabled. Also, if there is a need, PLL clock interrupt management fully available. Comparator can be used more pre-configuration of the AHB frequency, including high-speed and low-speed APB APB, APB highest frequency of high-speed 72MHz, low-speed APB highest frequency of 36MHz.Architectural AdvantagesIn addition to the new features Enhanced peripheral interfaces, STM32 series also interconnect with other STM32 microcontrollers offer the same standard interface, such sharing of peripherals to enhance the entire product family, application flexibility, so that developers can a plurality of design reuse the same software. New STM32 standard peripherals include 10 timers, two 12-bit ADC, two 12-bit DAC, two I2C interfaces, five USART interfaces and three SPI ports. There are 12 new products peripherals direct data storage channel, there is a CRC calculation unit, like other STM32 microcontrollers, the supports 96 unique identifier.New series also has followed the STM32 microcontroller family of products low voltage and energy saving are two advantages. 2.0V to 3.6V operating voltage range compatible with the mainstream of battery technologies such as lithium batteries and nickel-metal hydride batteries, the package also features a battery operation mode dedicated pin Vbat. 72MHz frequency to execute code from flash consumes only 27mA current. There are four low-power mode, the current consumption can be reduced to two microamps. Quick Start from low power mode to save energy too; starting circuit using STM32 internally generated 8MHz signal, the microcontroller from stop mode when you wake up with less than 6 microseconds.中文翻译:单片机STM321 STM32的介绍STM32系列基于专为要求高性能、低成本、低功耗的嵌入式应用专门设计的ARM Cortex-M3内核。

单片机外文翻译---从无线电世界到单片机世界

单片机外文翻译---从无线电世界到单片机世界

外文资料翻译From the world of radio in the world to a single chipModern computer technology, industrial revolution, the world economy from the capital into the economy to knowledge economy. Field in the electronic world, from the 20th century into the era of radio to computer technology in the 21st century as the center of the intelligent modern era of electronic systems. The basic core of modern electronic systems are embedded computer systems (referred to as embedded systems), while the microcontroller is the most typical and most extensive and most popular embedded systems.First, radio has created generations of excellence in the worldFifties and sixties in the 20th century, the most representative of the advanced electronic technology is wireless technology, including radio broadcasting, radio, wireless communications (telegraph), Amateur Radio, radio positioning, navigation and other telemetry, remote control, remote technology. Early that these electronic technology led many young people into the wonderful digital world, radio show was a wonderful life, the prospects for science and technology. Electronics began to form a new discipline. Radio electronics, wireless communications began e-world journey.Radio technology not only as a representative of advanced science and technology at that time, but also from popular to professional fields of science, attracting the young people and enable them to find a lot of fun.Ore from the bedside to the superheterodyne radio radio; report issued from the radio amateur radio stations; from the telephone, electric bell to the radio control model. Became popular youth radio technology, science and technology education is the most popular and most extensive content. So far, many of the older generation of engineers, experts, Professor of the year are radio enthusiasts. Fun radio technology, radio technology, comprehensive training, from basic principles of electronics, electronic components to the radio-based remote control, telemetry, remote electronic systems, has trained several generations of technological excellence.Second, from the popularity of the radio era to era of electronic technologyThe early radio technology to promote the development of electronic technology, most notably electronic vacuum tube technology to semiconductor electronic technology. Semiconductor technology to realize the active device miniaturization and low cost, so more popular with radio technology and innovation, and to greatly broaden the number of non-radio-control areas.The development of semiconductor technology lead to the production of integrated circuit, forming the modern electronic technology leap from discrete electronics into the era of era of integrated circuits. Electronic design engineers no longer use the discrete electronic components designed circuit modules, and direct selection of integrated circuit components constitute a single system. They freed the design of the circuit unit dedicated to system design, greatly liberating the productive forces of science and technology, promote the wider spread of electronic systems.Semiconductor integrated circuits in the basic digital logic circuits first breakthrough.A large number of digital logic circuits, such as gates, counters, timers, shift registers, and analog switches, comparators, etc., for the electronic digital control provides excellent conditions for the traditional mechanical control to electronic control. Power electronic devices and sensor technology to make the original to the radio as the center of electronic technology turned to mechanical engineering in the field of digital control systems, testing in the field of information collection, movement of electrical mechanical servo drive control object.Semiconductor and integrated circuit technology will bring us a universal age of electronic technology, wireless technology as the field of electronic technology a part of.70 years into the 20th century, large scale integrated circuit appeared to promote the conventional electronic circuit unit-specific electronic systems development. Many electronic systems unit into a dedicated integrated devices such as radios, electronic clocks, calculators, electronic engineers in these areas from the circuit, the system designed to debug into the device selection, peripheral device adapter work. Electronic technology, and electronic products enriched, electronic engineers to reduce the difficulty, but at the same time, radio technology, electronic technology has weakened the charm. The development of semiconductor integrated circuits classical electronic systems are maturing, remain in the large scale integrated circuit other than the shrinking of electronic technology, electronic technology is not the old days of radio fun times and comprehensive engineering training.Third, from the classic era of electronic technology to modern electronic technology of the times80 years into the 20th century, the century of economic change is the most important revolution in the computer. The computer revolution in the most important sign is the birth of the computer embedded applications. Modern computer numerical requirements should be born. A long period of time, is to develop the massive computer numerical duty. But the computer shows the logic operation, processing, control, attracting experts in the field of electronic control, they want development to meet the control object requirements of embedded applications, computer systems. If you meet the massive data-processing computer system known as general-purpose computer system, then the system can be the embedded object (such as ships, aircraft, motorcycles, etc.) in a computer system called the embedded computer. Clearly, both the direction of technology development are different. The former requires massive data storage, handling, processing and analysis of high-speed data transmission; while the latter requires reliable operation in the target environment, the external physical parameters on high-speed acquisition, analysis and processing logic and the rapid control of external objects. It will add an early general-purpose computer data acquisition unit, the output driver circuit reluctance to form a heat treatment furnace temperature control system. This general-purpose computer system is not possible for most of the electronic system used, and to make general-purpose computer system meets the requirements of embedded applications, will inevitably affect the development of high-speed numeric processing. In order to solve the contradiction between the development of computer technology, in the 20th century 70s, semiconductor experts another way, in full accordance with the electronic system embedded computer application requirements, a micro-computer's basic system on a chip, the formation of the early SCM (Single Chip Microcomputer). After the advent of single chip in the computer industry began to appear in the general-purpose computer systems and embedded systems the two branches. Since then, both the embedded system, or general-purpose computer systems have been developed rapidly.Although the early general-purpose computer converted the embedded computer systems, and real embedded system began in the emergence of SCM. Because the microcontroller is designed specifically for embedded applications, the MCU can only achieve embedded applications. MCU embedded applications that best meet environmental requirements, for example, chip-level physical space, large-scale integrated circuits low-cost, good peripheral interface bus and outstanding control of instruction.A computer system microcontroller core, embedded electronic systems, intelligent electronic systemsfor the foundation. Therefore, the current single chip electronic system in widespread use of electronic systems to enable rapid transition to the classical modern intelligent electronic systems.从无线电世界到单片机世界现代计算机技术的产业革命,将世界经济从资本经济带入到知识经济时代。

基于单片机的音乐播放器设计

基于单片机的音乐播放器设计

摘要单片机以其高可靠性,高性价比,低电压,低功耗等一系列优点,近几年得到迅猛发展和大范围推广,广泛应用于工业控制系统,数据采集系统,智能化仪器仪表,及通讯设备,日常消费类产品,玩具等。

[1]利用单片机设计的音乐播放器具有硬件电路简单,软件运行可靠等特点。

本文介绍了一种以AT89S52 单片机为控制核心的音乐播放器。

该设计采用2*16个点阵液晶模块LCD1602作为显示界面,蜂鸣器作为发声元件,并利用定时器进行中断控制。

关键词音乐播放器/AT89S52/LCD1602Music Player Design Based on AT89S52ABSTRACTMCU with its high reliability, high performance,low voltage,low power consumption and a series of advantages, has been the rapid development and large-scale promotion in recent years, widely used in industrial control systems, data acquisition systems, intelligent instrumentation,and communications equipment, daily consumer products, toys and so on.[1]Microchip design music player has simple hardware circuit, software and reliable operation.This paper introduces a kind of AT89S52 microcontrolle as control core music player.The design uses 2 * 16 dot matrix LCD module LCD1602 as the display interface, buzzer as the sound element, and use the timer control interrupt.KEY WORDS music player ,AT89S52 ,LCD1602目录摘要 (I)ABSTRACT (II)1绪论 (4)1.1 单片机简介 (5)1.1.1 单片机概述 (5)1.1.2 单片机的应用领域 (5)1.1.3 单片机的发展趋势 (6)1.2课题概述 (7)2 硬件设计 (7)2.1总体方案设计 (7)2.2单片机最小系统电路 (8)2.2.1 AT89S52芯片性能介绍 (8)2.2.2 电源电路 (12)2.2.3 时钟振荡电路 (12)2.2.4 复位电路 (13)2.3键盘扫描模块 (13)2.4显示模块 (15)3 系统软件设计 (17)3.1音乐编程原理及流程图 (17)3.2播放子程序设计 (20)4 调试与仿真 (22)4.1KEIL开发系统 (22)4.2 PROTEUS的操作 (25)4.3仿真结果 (26)结束语 (27)致谢 (28)参考文献 (29)附录1 源程序 (30)附录2 仿真电路图 (45)1绪论1.1单片机简介1.1.1单片机概述单片机是一种集成在电路芯片,是采用超大规模集成电路技术把具有数据处理能力的中央处理器CPU随机存储器RAM、只读存储器ROM、多种I/O口和中断系统、定时器/计时器等功能(可能还包括显示驱动电路、脉宽调制电路、模拟多路转换器、A/D转换器等电路)集成到一块硅片上构成的一个小而完善的计算机系统。

基于单片机控制的音乐播放器设计

基于单片机控制的音乐播放器设计

目录一、前言二、设计课题及要求三、控制任务及要求四、单片机的硬件设计五、单片机的软件设计及要求六、软件流程图七、程序设计八、模拟调试的过程和出现的问题分析九、调试程序所用的实验设备十、毕业设计体会十一、参考文献前言单片机自20世纪70年代问世以来,作为微型计算机的一个很重要的分支,应用非常广泛,已对人类社会产生了巨大的影响。

尤其是MCS-51系列的单片机,由于其具有集成度高、功能强、可靠性好、系统结构简单、价格低廉、易于扩展和使用等优点,在我国已得到广泛的应用并收到很好的成果。

虽然世界各大公司也有各种型号的高性能单片机问世,但MCS-51系列单片机仍然是我国在单片机应用领域的首选机型。

在这我以AT89C52单片机为基础设计音乐播放器。

一、设计课题及要求本次设计的是单片机控制的音乐播放器,要使单片机播放出一首音乐。

二、控制任务及要求在调控单片机时控制面板上的扩音器能放出音乐,能通过仿真软件实现程序的完整运行。

三、硬件设计(1)、确定机型可选用AT89C52单片机,晶振频率选择6HZ。

(2)、选择元器件根据系统要求,应具有蜂鸣器及驱动电路构成单片机音乐演奏器,拟选用蜂鸣器、LCD、三极管、电阻若干、电容若干。

(3)、硬件原理本系统通过AT89C52单片机的P1.1口控制几个9012PNP三极管、三极管、LCD、扩音器等控制电磁蜂鸣器的电源通断。

单片机控制的音乐播放器原理图:四、软件设计及要求(1)、声音三要素由于人耳听觉系统非常复杂,迄今为止人类对它的生理结构和听觉特性还不能从生理解剖角度完全解释清楚。

所以,对人耳听觉特性的研究目前仅限于在心理声学和语言声学。

人耳对不同强度、不同频率声音的听觉范围称为声域。

在人耳的声域范围内,声音听觉心理的主观感受主要有响度、音高、音色等特征和掩蔽效应、高频定位等特性。

其中响度、音高、音色可以在主观上用来描述具有振幅、频率和相位三个物理量的任何复杂的声音,故又称为声音“三要素”;而在多种音源场合,人耳掩蔽效应等特性更重要,它是心理声学的基础。

基于单片机控制的电子音乐盒课程设计

基于单片机控制的电子音乐盒课程设计

摘要为了实现单片机控制音乐播放,此次毕业设计做出了尝试,即电子音乐盒的设计。

本设计采用了蜂鸣器发声来实现歌曲的播放,能保持基本音调不变,流畅播放出歌曲。

现选用AT89S51单片机。

主要设计模块包括数码管显示部分,功能键盘部分,蜂鸣器发声部分,彩灯部分。

数码管采用共阳极数码管,通过单片机P1口控制,实现歌曲序号的显示;功能键盘采用按键开关,通过单片机P3口控制,实现歌曲播放顺序的调换和暂停播放功能;蜂鸣器由单片机的P2口控制,实现歌曲播放;彩灯是由普通发光二极管代替,能实现单色长亮和闪烁效果。

主要工作过程是通过按下功能键实现上一首和下一首及暂停播放,同时有数码管显示当前播放歌曲的序号,蜂鸣器播放出音乐,当播放最后一首夜曲时还伴有彩灯闪烁。

此次设计要利用单片机及KeilC51编程软件编程和PROTEUS单片机仿真软件和电子电工等方面知识,用KeilC51编程软件编程,用PROTEUS单片机仿真软件仿真。

最后制作实物,将程序下载到单片机中,利用I/O口产生一定频率的方波,驱动蜂鸣器,发出不同的音调,从而演奏乐曲。

关键词:AT89S51单片机方波音调目录摘要 (I)目录 (II)第 1 章绪论 (1)第2章音乐盒总体设计 (2)2.1设计功能要求 (2)2.2总体设计原理 (2)2.3总体设计框图 (2)第3章芯片的选择和介绍 (4)3.1MCS-51系列单片机简介 (4)3.2单片机的选择 (4)3.2.1 AT89S51芯片介绍 (5)第4章系统硬件设计 (8)4.1电源电路 (8)4.2单片机最小系统 (9)4.3数码管显示部分 (10)4.4键盘部分 (11)4.4.1 按键开关 (11)4.4.2 轻触开关 (12)4.5蜂鸣器部分 (12)第5章系统软件设计 (13)5.1软件系统介绍 (13)5.2编程语言的选择..................................... 错误!未定义书签。

单片机【经典外文翻译】--单片机基础(译文+英文)—-毕业论文设计

单片机【经典外文翻译】--单片机基础(译文+英文)—-毕业论文设计

Fundamentals of Single-chip MicrocomputerTh e si ng le-ch i p mi cr oc om pu ter is t he c ul mi nat i on o f bo th t h e d ev el op me nt o f th e d ig it al com p ut er an d t he int e gr at ed ci rc ui ta r gu ab ly th e t ow m os t s i gn if ic ant i nv en ti on s o f t h e 20t h c en tury[1].Th es e to w typ e s of a rc hi te ctu r e ar e fo un d i n s in gl e-ch ip m i cr oc om pu te r. So m e em pl oy t he sp l it p ro gr am/d ata me mo ry o f th e H a rv ar d ar ch it ect u re, sh ow n in Fi g.3-5A-1, o th ers fo ll ow t hep h il os op hy, wi del y a da pt ed f or ge n er al-p ur po se co m pu te rs a ndm i cr op ro ce ss or s, of ma ki ng no lo gi c al di st in ct io n be tw ee n p ro gram a n d da ta m em or y a s i n th e Pr in cet o n ar ch it ec tu re,sh ow n inF i g.3-5A-2.In g en er al te r ms a s in gl e-chi p m ic ro co mp ut er i sc h ar ac te ri zed b y the i nc or po ra tio n of al l t he uni t s o f a co mp ut er i n to a s in gl e dev i ce, as s ho w n in Fi g3-5A-3.Fig.3-5A-1 A Harvard typeFig.3-5A-2. A conventional Princeton computerFig3-5A-3. Principal features of a microcomputerRead only memory (ROM).R OM i s u su al ly f or th e p er ma ne nt,n o n-vo la ti le s tor a ge o f an a pp lic a ti on s pr og ra m .M an ym i cr oc om pu te rs an d mi cr oc on tr ol le r s a re in t en de d fo r h ig h-v olume a p pl ic at io ns a nd h en ce t he e co nom i ca l ma nu fa ct ure of t he d ev ic es r e qu ir es t ha t the co nt en ts o f the pr og ra m me mo ry b e co mm it te dp e rm an en tl y d ur in g th e m an uf ac tu re o f c hi ps . Cl ear l y, th is im pl iesa ri g or ou s a pp roa c h t o R OM co de d e ve lo pm en t s in ce c ha ng es ca nnotb e m ad e af te r man u f a ct ur e .T hi s d e ve lo pm en t pr oce s s ma y in vo lv e e m ul at io n us in g a s op hi st ic at ed deve lo pm en t sy st em w i th a ha rd wa re e m ul at io n ca pa bil i ty a s we ll a s th e u se of po we rf ul so ft wa re t oo ls.So me m an uf act u re rs p ro vi de ad d it io na l RO M opt i on s byi n cl ud in g i n th ei r r a ng e de vi ce s wi th (or i nt en de d fo r us e with) u s er pr og ra mm ab le m em or y. Th e s im p le st of th es e i s us ua ll y d evice w h ic h ca n op er ate in a m ic ro pr oce s so r mo de b y usi n g so me o f th e i n pu t/ou tp ut li ne s as a n ad dr es s an d da ta b us f or acc e ss in g e xt er na l m e mo ry. T hi s t ype o f d ev ic e c an b e ha ve fu nc ti on al l y a s t he si ng le c h ip mi cr oc om pu te r fr om wh ic h i t i s de ri ve d a lb eit w it h r es tr ic ted I/O an d a mo di fie d e xt er na l ci rcu i t. T he u se o f t h es e RO Ml es sd e vi ce s is c om mo n e ve n in p ro du ct io n c ir cu it s wh er e t he v ol um e does n o t j u st if y th e d e ve lo pm en t co sts of c us to m on-ch i p RO M[2];t he re c a n st il l b e a si g ni fi ca nt s a vi ng in I/O a nd ot he r c hi ps co mp ared t o a c on ve nt io nal mi cr op ro ce ss or b as ed c ir cu it. M o re e xa ctr e pl ac em en t fo r RO M d ev ic es c an b e o bt ai ne d in t he f o rm o f va ri antsw i th 'pi gg y-ba ck'EP RO M(Er as ab le p ro gr am ma bl e ROM)s oc ke ts o rd e vi ce s w it h EP ROM i ns te ad o f R OM 。

[试题]基于51单片机的音乐播放器设计外文翻译

[试题]基于51单片机的音乐播放器设计外文翻译

[试题]基于51单片机的音乐播放器设计外文翻译基于51单片机的音乐播放器设计原文:Author: Bob brown sources: the SCM”Abstract: the music player is to use STC89C51 SCM combining internal timing system and digital tube display design a simple microcomputer music box. This paper analyzes the music player based on 51 single chip hardware circuit and software design of the specific process including data processing procedure design, display subrouOne design finally based on the simulation process meet phenomenon was carried on the concrete analysis and description.Keywords: player; SCM; STC89C51Along with the horizontal exaltation in people physical life, people pay more and more attention to the spiritual life satisfaction, keen to seek happiness in consumption and entertainment experience. Music as a human entertainment life important elements, has been all concern. But humans into the industrial society since, will music play and industrial products combined with developed a series of music play products, and with the innovation of technology and customers' demands change constantly updated, for human entertainment life provides fashion convenience items. Before two years fashion modeling, small portable, free download songs popular MP3 player is to make music play product unprecedented prosperity. But in the prosperity, the mainstream musicplay products MP3 player in the model and the design of the system seems to be into a bottleneck, new products and old products than just the firmware update and hardware alternating, and no content and essence of the jump, therefore in the same with portable sexual characteristics and music play function of music cell phone appeared, MP3 0riginalfunctional advantages of no longer, the market and then be quickly extrusion, status, received an unprecedented threat. Throughout the history of music play products, and each time the music play product innovations are concept breakthrough or the idea of the result of innovation. As from the radio to record machine realized the listening mode from "passive listening to" to "independent choice" change, from record machine to realize the Walkman fixed to a portable leap. Therefore, how to in concept, the concept of innovation and breakthrough, find the music play products new development direction, to adapt to the new demand of consumers, it is current product designers urgent need to resolve problems. Firstly, this paper reviews the history of music play products, and analysis of the current music play product situation, this paper proposes a new concept for the importance of breakthrough point; Secondly, based on the current economic environment and social group environment analysis, as well as the music industry development present situation and trend analysis, it sums up the current consumer demand trend; Finally, according to the summary of the consumption demand and market some existing music play product guidance, puts forward thefuture music play product the development direction and the corresponding some idea concept.STC89C51 microcontroller design a music player through the singlechip microcomputer music player system design and research, to be mastered SCM related knowledge is of important theoretical and practical significance. The curriculum design of the music player is the combination of software and hardware, different notes form of expression is different frequency to voice. Through a single chip microcomputerSTC89C51 produce different frequency pulse signal, through the amplification circuit, by the buzzer release, he produced a wonderful harmony beautiful moving music. According to the thythm of the scale is given for time, finally realizes the function of play simple songs. For better life for the people provides reliable, respect, cheap method.STC89C51 single-chip microcomputer as core hardware control unit, combined with triode as amplifier, digital tube constitute a typical display circuit, key as input part and other peripheral equipment composition of music broadcast system. According to the music playing controller to achieve the display and selects and music produce function principle, system including play speaker, selects, played and display a few parts. Among them, the button AGAIN with open play tunes and repeat play the tune function, FORM key has played a song before work can, NEXT button has played a song after the function, RES key has played before the function of a song. The design music player can play many first music, songs can choose by the keyboard control, and through the displaymake its display songs serial number. Design of the music playing controller is through the control of single chip microcomputer internal timer to produce different frequency square wave, drive speakerdifferent syllable voice, and then delay to control the length of time the pronunciation, i.e., the controlling tone of the beat. At the same time set button to make the design process can be in three to four songs between performers, design display make its display songs serial number. With the traditional mechanical music box than smaller, more beautiful timbre and can play chord music. Electronic music box is the source of power batteries, simple manufacturing process, can be conducted batch production, so cheap. Based on SCM make electronic music box, control powerful, can according to need to choose songs, easy to use. According to the size of the storage capacity, can be as many store songs. In addition, can design lights appearance effect, make the music box function more nch.This design is STC89C51 chip circuit as the foundation, external and playback equipment, so as to realize music playing controller hardware circuit, through the software program to control the MCU internal timer make it play beautiful moving music. The user can choose according to oneself be fond of music and translate into machine code in SCM storage. For different types of single chip microcomputer only need the corresponding change of address can. The software and hardware system has the very good generality and high practical value in use, for the majority of SCM and music lovers to provide a good reference. Using keyswitch to play out different music. The speaker sends out the music, the use of five key, two used to switch song, a used to start, a used to stop, the other is a reset. With protel 99 se to design the circuit diagram. Song can optional written into music box. Due to the songs of memory is bigger, single-chip microcomputer memory small, will be two pieces of MCU used together, both can communication. Digital tube display the current broadcast is which song.The chart, acknowledgments and reference documents have lost (seethe original).翻译:基于51单片机的音乐播放器设计作者:Bob brown 来源:《SCM》摘要:本音乐播放器是利用STC89C51单片机结合内部定时系统及数码管显示设计一个简易的微电脑音乐盒。

at89c52单片机中英文资料对照外文翻译文献综述

at89c52单片机中英文资料对照外文翻译文献综述

D.htmlat89c52单片机中英文资料对照外文翻译文献综述at89c52单片机简介中英文资料对照外文翻译文献综述AT89C52 Single-chip microprocessor introductionSelection of Single-chip microprocessor1. Development of Single-chip microprocessorThe main component part of Single-chip microprocessor as a result of by such centralize to be living to obtain on the chip,In immediate future middle processor CPU。

Storage RAM immediately﹑memoy readROM﹑Interrupt system、Timer /'s counter along with I/O's rim electric circuit awaits the main microcomputer section,The lumping is living on the chip。

Although the Single-chip microprocessor r is only a chip,Yet through makes up and the meritorous service be able to on sees,It had haveed the calculating machine system property,calling it for this reason act as Single-chip microprocessor r minisize calculating machine SCMS and abbreviate the Single-chip microprocessor。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

毕业设计(论文)外文翻译题目: __ 单片机控制音乐播放_ __英文题目: Single chip microcomputer to control the music player系 : _ 信息工程系_ __专业: _ _ __ 电子信息工程___ ___班级: ___ _ __ 09电信本________ _学号: ___ _____8110109053___ ______姓名: ________ 张亚峰 ______ _____指导老师: _________王乐平_________ ____填表日期 _ __ ___2012.11.16_____ ____基于51单片机的音乐播放器设计作者:Bob brown 来源:《SCM》摘要:本音乐播放器是利用STC89C51单片机结合内部定时系统及数码管显示设计一个简易的微电脑音乐盒。

本文分析了基于51单片机的音乐播放器的硬件电路和软件的设计的具体过程包括数据处理子程序的设计、显示子程序的设计最后针对仿真过程遇到的现象进行了具体的分析与说明。

关键词:播放;单片机; STC89C51随着人们物质生活水平的提高,人们越来越注重精神生活的满足,热衷于在消费中寻求快乐和娱乐体验。

音乐作为人类娱乐生活的重要组成元素,一直以来都备受关注。

而人类进入工业社会以来,将音乐播放与工业产品结合发展出了一系列的音乐播放产品,并随着技术的革新和消费者需求的变化而不断更新,为人类的娱乐生活提供了时尚便利的道具。

前两年造型时尚、小巧便携、可免费下载歌曲的MP3播放器的流行更是使音乐播放产品空前繁荣。

但是在繁荣过后,主流音乐播放产品MP3播放器在造型和系统的设计上似乎走进了一个瓶颈,新产品和旧产品比起来只是固件上的更新和硬件的更迭,而没有内容和实质的跳跃,因此在同样具有便携性特点和音乐播放功能的音乐手机出现的时候,MP3原有的功能优势不再,市场继而被迅速挤压,地位收到空前的威胁。

纵观音乐播放产品的发展史,每一次音乐播放产品的革新都是概念的突破或理念的创新的结果。

如从收音机到唱片机实现了收听方式从“被动收听”到“自主选择”的变革,从唱片机到Walkman实现了固定到便携的飞跃。

因此,如何在理念上、概念上进行创新和突破,找到音乐播放产品的新发展方向,适应消费者的新需求,是目前产品设计师急需解决的问题。

本文首先简单回顾了音乐播放产品发展史,并分析了目前音乐播放产品现状,提出寻找新概念突破点的重要性;其次,通过对当前经济环境和社会群体环境的分析,以及目前音乐产业的发展现状和趋势的分析,从中总结出当前消费者的消费需求趋势;最后,根据总结的消费需求和市场现有的一些音乐播放产品的引导,提出未来音乐播放产品的发展方向以及相应的一些概念设想。

STC89C51单片机设计的一个音乐播放器通过单片机音乐播放器系统设计和研究,对于切实掌握单片机相关知识具有重要的理论和实际意义。

这次课程设计的音乐播放器是软件和硬件的结合,不同音符表现形式就是不同频率地声音。

通STC89C51过单片机产生不同的频率的脉冲信号,通过放大电路,由蜂鸣器放出,就产生了美妙和谐优美动听的乐曲。

根据节拍给出该音阶持续的时间,最终实现播放简单歌曲的功能。

为人们生活的改善提供了可靠,方面,廉价的方法。

单片机STC89C51作为硬件核心控制部件,结合三极管作为放大器,数码管构成典型的显示电路,按键作为输入部分以及其他外围设备组成的音乐播放系统。

根据音乐演奏控制器所要实现的显示与选曲及音乐产生功能原理,系统包括演奏扬声器、选曲、播放和显示几部分。

其中,AGAIN按键具有开启播放曲子和重复播放当前曲子的功能,FORM按键具有播放前一曲的工能,NEXT按键具有播放后一曲的功能,RES键具有播放前一曲的功能。

所设计音乐播放器可以播放多首音乐,曲目选择可以由键盘控制,并通过显示器使其显示歌曲序号。

设计的音乐演奏控制器是通过控制单片机内部的定时器来产生不同频率的方波,驱动喇叭发出不同音节的声音,再利用延迟来控制发音时间的长短,即控制音调中的节拍。

同时设置按钮使所设计的程序能在三到四首歌曲之间进行选曲,设计显示器使其显示歌曲序号。

与传统的机械式音乐盒相比更小巧,音质更优美且能演奏和弦音乐。

电子式音乐盒动力来源是电池,制作工艺简单,可进行批量生产,所以价格便宜。

基于单片机制作的电子式音乐盒,控制功能强大,可根据需要选歌,使用方便。

根据存储容量的大小,可以尽可能多的存储歌曲。

另外,可以设计彩灯外观效果,使音乐盒的功能更加丰富。

本设计是以STC89C51芯片的电路为基础,外部加上放音设备,以此来实现音乐演奏控制器的硬件电路,通过软件程序来控制单片机内部的定时器使其演奏出优美动听的音乐。

用户可以按照自己的喜好选择音乐并将其转化成机器码存入单片机的存储器中。

对于不同型号的单片机只需要相应的改变一下地址即可。

该软、硬件系统具有很好的通用性,很高的实际使用价值,为广大的单片机和音乐爱好者提供了很好的借鉴。

利用按键切换演奏出不同的乐曲。

扬声器发出乐曲,使用5个按键,两个用来切换歌曲,一个用来启动,一个用来停止,另一个是复位。

用protel 99se设计电路图。

歌曲可以自己随意的写进音乐盒中。

由于歌曲的内存比较大,单片机内存小,将两块单片机一同使用,两者可以通讯。

数码管显示当前播放的是哪一首歌曲。

经图表、致谢及参考文献已略去(见原文)。

Author: Bob brown sources: the SCM"Abstract: the music player is to use STC89C51 SCM combining internal timing system and digital tube display design a simple microcomputer music box. This paper analyzes the music player based on 51 single chip hardware circuit and software design of the specific process including data processing procedure design, display subroutine design finally based on the simulation process meet phenomenon was carried on the concrete analysis and description.Keywords: player; SCM; STC89C51Along with the horizontal exaltation in people physical life, people pay more and more attention to the spiritual life satisfaction, keen to seek happiness in consumption and entertainment experience. Music as a human entertainment life important elements, has been all concern. But humans into the industrial society since, will music play and industrial products combined with developed a series of music play products, and with the innovation of technology and customers' demands change constantly updated, for human entertainment life provides fashion convenience items. Before two years fashion modeling, small portable, free download songs popular MP3 player is to make music play product unprecedented prosperity. But in the prosperity, the mainstream music play products MP3 player in the model and the design of the system seems to be into a bottleneck, new products and old products than just the firmware update and hardware alternating, and no content and essence of the jump, therefore in the same with portable sexual characteristics and music play function of music cell phone appeared, MP3 original functional advantages of no longer, the market and then be quickly extrusion, status, received an unprecedented threat. Throughout the history of music play products, and each time the music play product innovations are concept breakthrough or the idea of the result of innovation. As from the radio to record machine realized the listening mode from "passive listening to" to "independent choice" change, from record machine to realize the Walkman fixed to a portable leap. Therefore, how to in concept, the concept of innovation and breakthrough, find the music play products new development direction, to adapt to the new demand of consumers, it is current product designers urgent need to resolve problems. Firstly, this paper reviews the history of music play products, and analysis of the current music play product situation, this paper proposes a new concept for the importance of breakthrough point; Secondly, based on the current economic environment and social group environment analysis, as well as the music industry development present situation and trend analysis, it sums up the current consumer demand trend; Finally, according to the summary of the consumption demand and market some existing music play product guidance, puts forward the future music play product the development direction and the corresponding some idea concept.STC89C51 microcontroller design a music player through the single chip microcomputer music player system design and research, to be mastered SCM related knowledge is of important theoretical and practical significance. The curriculum design of the music player is the combination of software and hardware, different notes form of expression is different frequency to voice. Through a single chip microcomputerSTC89C51 produce different frequency pulse signal, through the amplification circuit, by the buzzer release, he produced a wonderful harmony beautiful moving music. According to the rhythm of the scale is given for time, finally realizes the function of play simple songs. For better life for the people provides reliable, respect, cheap method.STC89C51 single-chip microcomputer as core hardware control unit, combined with triode as amplifier, digital tube constitute a typical display circuit, key as input part and other peripheral equipment composition of music broadcast system. According to the music playing controller to achieve the display and selects and music produce function principle, system including play speaker, selects, played and display a few parts. Among them, the button AGAIN with open play tunes and repeat play the tune function, FORM key has played a song before work can, NEXT button has played a song after the function, RES key has played before the function of a song. The design music player can play many first music, songs can choose by the keyboard control, and through the display make its display songs serial number. Design of the music playing controller is through the control of single chip microcomputer internal timer to produce different frequency square wave, drive speaker different syllable voice, and then delay to control the length of time the pronunciation, i.e., the controlling tone of the beat. At the same time set button to make the design process can be in three to four songs between performers, design display make its display songs serial number. With the traditional mechanical music box than smaller, more beautiful timbre and can play chord music. Electronic music box is the source of power batteries, simple manufacturing process, can be conducted batch production, so cheap. Based on SCM make electronic music box, control powerful, can according to need to choose songs, easy to use. According to the size of the storage capacity, can be as many store songs. In addition, can design lights appearance effect, make the music box function more rich.This design is STC89C51 chip circuit as the foundation, external and playback equipment, so as to realize music playing controller hardware circuit, through the software program to control the MCU internal timer make it play beautiful moving music. The user can choose according to oneself be fond of music and translate into machine code in SCM storage. For different types of single chip microcomputer only need the corresponding change of address can. The software and hardware system has the very good generality and high practical value in use, for the majority of SCM and music lovers to provide a good reference. Using key switch to play out different music. The speaker sends out the music, the use of five key, two used to switch song, a used to start, a used to stop, the other is areset. With protel 99 se to design the circuit diagram. Song can optional written into music box. Due to the songs of memory is bigger, single-chip microcomputer memory small, will be two pieces of MCU used together, both can communication. Digital tube display the current broadcast is which song.The chart, acknowledgments and reference documents have lost (see the original).。

相关文档
最新文档