基于 AT89S52 单片机的电子琴设计龙岩学院 电子信息工程2025040313 赖志林 指导老师:王宇松【摘要】 微型电子琴的设计以 AT89S52 单片机作为系统的核心控制部分,通过制作硬件电路和软件的设计编写,然后进行软硬件的调试运行,最终达到设计电路的乐器演奏、点歌、存储及显示功能。设计中应用中断系统和定时/计数原理控制演奏器发声,对音乐发生所必须确定的音符和节拍分别用程序语言实现.可以用它来弹奏和播放乐曲。特点是设计思路简单、清楚,成本低. 【关键字】 单片机 音乐发生器 AT89S52AT89S52 microcontroller-based flower design【Abstract】: The design takes 89S52 SCM as the core of system's control section 。 In order to achieve the effect of the circuit that performancing the musical instrument, requesting a song, the function of the memory and demonstration, we can carry on software and hardware’s debugging through manufacturing hardware circuit and compiling the software’s design . The design applies the principle of the interruption system and fixed time/the counting to performance sound production, and according to the program language to realize the separation of the note and time at the same time。 We can use it to play with the broadcast music。 And the best advantage is this design is simply and clear .【key words】: SCM Music Generator AT89S52目 录1. 前 言 … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … 11.1 系 统 开 发 背 景 … … … … … … … … … … … … … … … … … … … … … … … … … … 11 。 2 系 统 开 发 意 义 … … … … … … … … … … … … … … … … … … … … … … … … … 11.3 设 计 目 标 … … … … … … … … … … … … … … … … … … … … … … … … … … … 12. 方 案 论 证 … … … … … … … … … … … … … … … ...