1、 I 编号: 毕业设计说明书 题 目: SDSD 卡存储采集卡存储采集 数据电路设计数据电路设计 题目类型:题目类型: 理论研究 实验研究 工程设计 工程技术研究 软件开发 2012 年 4 月 10 日 II 摘 要 许多工业现场需要数据采集器完成各类数据采集工作。实际应用中要求数据采集器 工作可靠,成本低廉,操作简单便于数据收集和分析;既要方便与 PC 机联机,又能独 立完成数据采集、存储工作。 随着近年来 SD 卡储存容量的大幅度提高,价格降低,其应用范围越来越广泛。当数 据采集系统需要较长的时间来捕捉和记录大量数据时,选择 SD 卡作为存储介质,是一 个非常好的选择。 例如在电能监测以
2、及无功补偿系统中, 要连续记录大量的电压、 电流、 有功功率、无功功率以及时间等参数,当单片机采集到这些数据时就可以利用 SD 作为 存储媒质。 论文介绍了 SD 卡存储采集数据电路设计原理、电路以及程序,阐述了基于 STC12C5A60S2芯片主控的DY_mini80E开发板实现数据的采集和数据的SD存储的设计电 路过程和实现方法以及运行得到的结果分析。该系统能同时采集四路周期信号波形,并 将四路模拟电压(0-5V)进行 A/D 转换,每秒钟转换一次,结果转换为 ASCII 码形式, 且四路结果分别存储到 SD 卡预先建立好的 CH1.txt、CH2.txt、CH3.txt、CH4.txt
3、文档 中。设计在 STC12C5A60S2 主控芯片的 DY_mini80E 开发板上,利用开发板上 A/D 转换模 块 PCF8591,外接 SD 接口模块,完成了调试实现。 关键词:数据采集;STC12C5A60S2;PCF8591;SD 卡;REG1117-3.3;FAT32 文件系统 III Abstract Many industry site need data collector of all kinds of data acquisition work completed. Practical application request data collector reliabl
4、e, low cost, easy to operate, easy to data collection and analysis; Both convenient and PC online, and independently complete the data acquisition, storage work. In recent years, with SD card storage capacity greatly raised, the lower prices, its application scope is more and more widely. When the d
5、ata acquisition system needs a long time to catch and records of large quantities of data, choose SD card as a storage medium, is a very good choice. For example in the electrical energy monitoring and reactive compensation system, a record a lot of voltage, current, active power, reactive power and
6、 parameters such as time, when the SCM acquisition to these data can use SD as storage medium. This paper introduces the SD card store data acquisition circuit design principle, circuit and program, this paper expounds the main control based on STC12C5A60S2 chip DY_mini80E development board realize data acquisition and data storage SD circuit design process and the realization methods and operation result analysis. The system can also collecting four ways of periodic signa