北京理工大学珠海学院 2018 届毕业设计 附带 MP3 功能的简易电子琴 附带 MP3 功能的电子琴摘 要本设计实现了一种可播放 MP3 歌曲的虚拟按键电子琴。硬件方面,将传统电子琴的琴键移植至 TFT 液晶屏上,一方面电子琴的琴键数量可以通过程序方便地进行修改,另一方面电子琴的便携性得到了极大的提升。本设计所实现的电子琴具有电子琴演奏和MP3 歌曲播放两种模式。通过软硬件设计,利用模式转换按键触发外部中断,使程序跳转实现演奏和歌曲播放模式的转换。在电子琴演奏模式下,通过获取 TFT 液晶屏上触摸点的坐标来确定按下的琴键实现音调的选择、音符的输入;在播放模式下,通过程序控制存储模块的读写、外部中断的触发实现歌曲的选择、播放、暂停、退出等功能。本设计的简易电子琴具有便携、功能扩展空间大、性能稳定等特点,可以满足电子琴爱好者的更多需求。关键词:电子琴;MP3 播放器;TFT 液晶屏 北京理工大学珠海学院 2018 届毕业设计 Electronic organ with MP3 functionAbstractThis design realizes a kind of electronic organ which can play like the traditional electronic organ and can play MP3 songs. In terms of hardware, the keyboard of electronic organ is directly moved to TFT LCD screen, so that the number of keyboard of electronic organ can be easily modified by program, and the portability of simple electronic organ can be increased. The electronic organ with MP3 function in this design has two modes: electronic organ playing and MP3 song playing. Through the software and hardware design, the mode conversion button triggers the external interrupt, which makes the program jump and realizes the mode conversion. In the electronic piano playing mode, by obtaining the coordinates of the touch points on the TFT LCD screen to determine the pressed keys to achieve the tone selection and the input of the notes; in the playing mode, through the program control of the reading and writing of the memory module, the triggering of external interruption t...