膈蒅蚈肁芀蚁薄肁蒃蒄羂肀膂基于单片机的SD卡录音笔设计与实现 摘要 本文介绍的是基于单片机的SD卡录音笔的设计与实现。首先介绍了SD卡和SPCE061A的技术应用,发展趋势和研究意义;然后深入分析了单片机录音笔的基本原理,同时全面介绍了实现基于单片机的SD卡录音笔所需要的硬件和软件;接下来是详细介绍了实现基于单片机的SD卡录音笔的硬件电路设计以及软件结构设计;最后对整个系统的性能进行测试和分析。 整个系统分为硬件设计和软件设计两大模块。硬件部分由凌阳公司的SPCE061A单片机,扬声器,电池组等构成;软件环境选择的是与硬件配套的u’nsp IDE 。本系统能够实现对声音的多段录音、放音、删除等功能。 关键词:μ’nSP IDE,SPCE061A,SD卡,录音笔 Microcontroller-based SD Card Recorder Design Abstract This article is based on the SD Card Recorder MCU Design and Implementation. First introduced the SD card and SPCE061A of technology, trends and research significance; then analyzed in depth the basic principles of single chip voice recorder, while achieving prehensive introduction to microcontroller-based SD Card Recorder necessary hardware and software; followed by implementation details of the microcontroller-based SD Card Recorder hardware circuit design and software architecture design; Finally, overall system performance testing and analysis. The whole system is divided into two major hardware and software design module. Hardware used by the microcontroller control chip Sunplus's SPCE061A development board, speaker, battery pack; software environment and hardware choices are supporting u'nsp IDE . The system can realize the multi sound recording, playback, delete and so on. Keyword: μ’nSP IDE,SPCE061A,SD Card,Recorder 目录 1 绪论 1 SD卡录音笔概论 1 录音器的发展历史 3 留声机 3 钢丝录音和磁带 3 数码录音笔 4 SD卡录音笔的发展趋势 5 提高录音质量 5 多功能于一身 5 降低成本减小体积 5 基于单片机的SD卡录音笔研究意义 6 2 录音笔功能分析及开发环境 7 功能概述 7 SPCE061A对SD卡的读写功能 7 录/放音及删除功能 7 设计环境介绍 8 系统硬件环境介绍 8 软件工作环境μ’nSP IDE介绍 9 工程的操作 13 创建工程过程 13 开发操作过程 13 3 录音笔总体设计方案及硬件设计 15 总体设计方案 15 硬件设计总体框图 15 系统软件设计架构 16 系统硬件设计 17 系统硬件连接实物图 17 SPCE061A最小系统 17 按键电路 19 音频输出电路 19 SD卡模组电路 20 4 系统软件设计 21 主程序设计 21 按键处理程序流程 23 按键扫描程序 29 语音录/放在SD卡上的实现 31 语音文件操作管理程序