具有16位AD转换U盘存储的便携式数据采集装置设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
高精度AD转换、海量数据存储与便携技术,是目前数据采集研究领域一个比较关注的热点,这些技术的实现和应用,可以很好的解决传统数据采集中精度低、数据不易保存等一些问题。
     本课题来源于太原理工大学应用力学研究所《高精度移动数据采集装置》项目,该项目是设计一台可用于施工现场的高精度、U盘存储与便携式数据采集装置。
     本文在查阅了国内外文献的基础上,研究了目前市场上便携式数据采集装置,给出了一种基于嵌入式操作系统μC/OS-Ⅱ、U盘存储与16位AD转换精度的便携式数据采集装置的设计方案。
     本套数据采集装置由主控单元与数据采集单元两部分构成,主控单元具有液晶显示、实时时钟、环境温度检测、数据存储功能,通过RS-485接口可与上位机进行数据通信;数据采集单元可采集6路模拟量信号、8路开关量信号,与主控单元用SPI接口进行数据传输。
     数据采集单元采用TI半导体公司的两片16位MSP430F425来实现16位精度的数据采集与处理,该单片机内部的SD16模块将外部模拟电压信号转换成16位数字量,同时进行数据处理和开关量的采集。为保证模拟输入信号在AD转换最佳线性范围内,还设计了量程转换电路。MSP430F425单片机采集的数据通过SPI总线传输到主控单元。
     主控单元采用菲利浦半导体公司的32位ARM内核LPC2132单片机,其数据处理能力和丰富的片内资源可满足数据采集装置的功能和性能需要。设计的U盘存储电路中,LPC2132单片机通过USB接口芯片CH375,把采集到的数据以FAT16的文件格式写入U盘,PC机可通过读取U盘对信号数据进行二次分析与处理。U盘存储数据的设计是本装置便携特性的体现。为了方便用户的观察与操作,设计了液晶显示、键盘等电路,并给出了详细的电路原理图。
     为了实现采集装置功能,设计了主控单元与数据采集单元的程序。数据采集单元的程序包括AD转换功能、数据处理、开关量采集与SPI通信功能;主控单元软件设计采用了嵌入式操作系统任务设计思想,首先将μC/OS-Ⅱ移植到LPC2132单片机中,并具体设计和实现了该装置功能的各个任务,μC/OS-Ⅱ的应用使数据采集具有更好的实时性,同时方便了系统的扩展和升级。
     试验电路验证了主要设计原理的可行性与合理性,为高精度移动数据采集装置的产品设计提供了依据。
     论文最后介绍了本文的主要工作,说明了论文的特点和意义,同时指出了系统设计的不足和改进。
The technique of portability, mass volume of data storage and high precision of A/D conversion is becoming a hot spot in data acquisition field at present. The implementation and application of this technology would solve problems such as low precision, data volatility, that can't be done by traditional data acquisition method.
     The subject originated from a project of High Precision and Portable Data Acquisition Device of Applied Mechanics Research Institute of TYUT. The subject was to design a portable device with high A/D precision and USB storage which can sample signals from application field.
     On the dissertation a solution of data acquisition device based on the embedded operation system, mass storage via USB and high precision of A/D conversion was given after massive references was consulted and popular related devices on the market investigated.
     This device consists of two parts, of which the host can function as data-storage, real-time display of LCD and ambient temperature inspection, communication with upper PC through RS485 interface while acquisition part can implement multi-channel data acquiring, including 6 analog signals and 8 switch signals, data transferring to the host through SPI bus.
     In the acquisition part, two MSP430F425 microprocessors from TI Company are employed to undertake data acquiring and 16-bit A/D conversion. for the sake of the best A/D conversion linearity of the input, a scale auto-switch circuit was made. The results of acquisition are transferred to the host through SPI bus.
     The host adopts 32 bits, ARM core LPC2132 as microcontroller, which is produced by PHILIPS Semiconductor Corporation. It has strong data processing ability and abundant resources in chip to meet the needs of data acquisition. In the circuit of data storage, LPC2132 writes data to U disk in the format of FAT16 file system by USB interface chip CH375. PC could have data further analysis and process by reading U disk. Saving data at U disk characterizes the mobility of the device. The LCD interface and keyboard circuit were devised and the schematics shown in detail to ease the observation and operation of customers.
     The software design of the acquisition part and the host were done to fulfill the device's function. The programs of acquisition part includes A/D conversion, data processing, switch signal collecting and SPI correspondence. The task management of embedded operation system was introduced to the host software design. The transplant ofμC/OS-II to LPC2132 was completed and specific task and code were done to function the device. The adoption ofμC/OS-II optimizes the real-time attribute and convenience the expansion and promotion the system.
     The system was debugged by the test circuits, which proved the designfeasible and reasonable. The experiment would support the design of highprecision mobile data acquisition device.
     At the last stage, the dissertation introduced the jobs author did, explainedthe feature and significance. the defects and the improvement was pointed outat the same time.
引文
[1] 魏睛宇.数据处理概论[M].北京:中国统计出版社,1994:1-5
    [2] 沈兰荪.数据采集与处理[M].北京:能源出版社,1987:74-89
    [3] 汪惊奇,周功业,黎书生.基于USB接口的便携式数据采集系统的实现[J].微型机与应用,2002.3(8):20-22
    [4] http://yanxintong.itb2b.com.cn/upload/Sell_Stock/2007/1/9.html
    [5] http://www.100ye.com/sort/market
    [6] http://www.atltest.net/products/html/feaeaa0648a4ad052a.htm
    [7] 刘仁普.ST62系列单片机技术手册[M].北京:冶金工业出版社,1999.
    [8] 李学海.PIC单片机实用教程[M].北京:北京航空航天大学出版社,2002
    [9] onald J. Tocci. Frank J. Ambrosio. Microprocessors and Microcomputer: Hardware and Software[C].6th Edition. Pearson Education. 2004
    [10] 魏小龙.MSP430系列单片机接口技术与系统设计实例[M].北京:北京航空航天大学出版社,2002
    [11] TI. MSP430X4XX Family user's guide[S]. Texas Instruments, 2004
    [12] 王幸之.单片机应用系统抗干扰技术[M].北京:北京航空航天大学出版社,2000
    [13] 周立功.ARM微控制器基础与实践[M].北京:北京航空航天大学,2003
    [14] 周立功,张华等.深入浅出ARM7-LPC213x/214x.北京.北京航空航天大学出版社,2005
    [15] 杨振江.A/D、D/A转换器接口技术与使用线路[M].西安电子科技大学出版社.1998
    [16] Jean J.Labrosse.邵贝贝译.μC/OS-Ⅱ源码公开的实时操作系统(第二版).北京:北京航空航天大学出版社2003-5
    [17] Lingxia Wang, Bo Yao. A Survey of Embedded Operating System[J]. Department of Computer Science. 2001, 7(16): 13-16
    [18] Darrick Addison. Embedded Linux Applications: An Overview from Wrist Watches to Cluster-Based Supercomputers[J/OL]. http://www.900.ibm.com./2001
    [19] Rex Page. Windows CE in Embedded Applications[C]. Embedded systems conference, Seattle, USA, 2001: 110-117
    [20] Jeff McLeman. Incorporating Windows CE into an Embedded System from Start to Finish[C]. Embedded systems conference, Seattle.USA, 2001 : 122-131
    [21] Joe R Williams.Embedding Linux in a Commercial Product [J]. Linux Journal.1999.2(15): 12-15
    [22] 童诗白.华成英.模拟电子技术基础(第三版)[M].北京:高等教育出版社,2001:309-317.439
    [23] 阎石.数字电子技术基础(第四版)[M].北京:高等教育出版社,2004:62-65.93-99
    [24] 何立明.低功耗单片微机系统设计[M].北京:北京航空航天大学出版社,1994
    [25] 夏路易,石宗义.电路原理图与电路板设计教程[M].北京:北京希望电子出版社,2002.6
    [26] 沈建华,杨艳琴,翟骁曙.MSP430系列16位超低功耗单片机原理与应用[M].北京:清华大学出版社,2004,11
    [27] LPC2132单片机data book[M]
    [28] SP708T datasheet
    [29] AS1117 datasheet
    [30] CH375中文手册(一)、(二)[CP].http://wch.cn
    [31] Precision. micropower operational amplifiers OP193/OP293/OP493 datasheet[J/OL]. Analog devices.2002.
    [32] DS1302 datasheet
    [33] 王明顺,吴省.可涓流充电的串行实时时钟芯片DS1302及其应用设计.电子技术应用,1996.10
    [34] 1602液晶datasheet
    [35] 易志明等.SPI总线在51系列单片机系统中的实现[J].国外电子元件.2003.(9):21-23
    [36] MSP430F425 data book[M]
    [37] 液晶选型8要素.中国工业设计咨询网http://www.china-idc.cn/home/index.php
    [38] PowerStream Li-ion Coin Cell Lir2477 datasheet[J/OL].PowerStream.2004.
    [39] 谢瑞和.串行技术大全[M].北京:清华大学出版社,2003-4.
    [40] 李华,孙晓民等.MCS-51系列单片机实用接口技术[M].北京:北京航空航天大学出版社,2003-3.
    [41] 于复生,宋现春,艾兴.时钟芯片DS1302及其在数据记录中的应用.电子技术应用, 2003.(3)
    [42] 陶海敏.利用DS1302时钟芯片实现“时间锁”的方法[J].单片机与嵌入式系统应用,2003.(3)
    [43] DS18820 datasheet
    [44] 张丹平,余海涛.基于RS-485的楼宇智能监控系统的设计[J].工业控制计算机,2001,14(6).21-22
    [45] MAXIN.MAX3485 data book[M]
    [46] 佃松宜,汪一吴,汪道辉.基于RS485总线的远程双向数据通信系统的设计与实现[J],电子技术.2001.(11):27-30
    [47] 素萍.串行通信RS232-RS485转换器[J].国外电子元气件,2001(1):62-63
    [48] 张念淮,江浩.USB总线接口开发指南[M].北京:国防工业出版社,2001
    [49] 衣晓峰.USB外设控制器固件的设计[J].微型电脑应用,2003.19(4):56-68
    [50] Ganssle. Jack G. The Art of Programming Embedded Systems 2002.4(15): 5-8
    [51] 石东海.单片机数据通信技术从入门到精通[M].西安:西安电子科技大学出版社,2003
    [52] Charles Kitchin. Lew Counts.A designer's guide to instrumentation amplifiers 2nd edition [J/OL]. Analog Devices, 2004.
    [53] Rotational. Speed. Sensors. KMI15/16ApplicationNotes[J/OL].Philips.Semiconductors,2000-9.
    [54] 杨欣荣.智能仪器原理、设计与发展[M].长沙:中南大学出版社,2003,7
    [55] MAX313 data book [M]
    [56] 74LS139 data book [M]
    [57] LTC1992 data book [M]
    [58] 王幸之等.单片机应用系统抗干扰技术[M].北京:北京航空航天大学出版社,2000
    [59] TLP521-4 datasheet
    [60] 何宏.单片机检测系统中的数字滤波[J].天津成人高等学校联合学报
    [61] 陈赜.ARM嵌入式技术实践教程[M].北京:北京航空航天大学出版社,2005.189-203.
    [62] 田泽.嵌入式开发与应用实验教程[M].北京:北京航空航天大学出版社,2004.264-270
    [63] 雷必成,吴高标,吴永良.嵌入式实时操作系统μC/OS_Ⅱ的移植探讨[J].自动化技术与应用,2003.(5):1-3
    [64] 王田苗.嵌入式系统设计与实例开发[M].北京:清华大学出版社.2003.62-89