基于ARM的便携式数字示波器的设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着电子测试技术的不断发展,测试技术正向自动化、智能化、数字化和网络化的方向发展。同时,数字存储示波器得到越来越广泛的应用,并逐步有取代模拟示波器的趋势。但由于台式数字示波器体积过于庞大,不方便携带进行现场测试和野外作业,己经越来越不能满足人们的生产需要。因此便携式数字存储示波器便孕育而生。
     ARM处理器的广泛应用及嵌入式操作系统的发展,使示波器的设计有了新的思路。本文结合ARM处理器的结构及特点,进行了以Intel XScale PXA255处理器为核心的便携式数字存储示波器的设计。在本文中,硬件的设计基于Intel XScale PXA255处理器,同时在外围扩展了FLASH & SDRAM存储、LCD显示、触摸屏输入等模块,并进行了数字示波器数据采集系统电路的设计。本文的软件设计方案基于嵌入式Linux操作系统,进行了Linux 2.4.18内核的移植。同时,为了实现良好的示波器用户图形界面,还进行了MiniGUI图形系统的移植及程序编写。
     本设计的实现过程显示了软硬件协同工作的特点,实现了较好的示波器数据采集及波形显示效果,经过对数字存储示波器各个部分仿真、实验及测试,基本达到了设计要求,特别是在用户图形界面GUI的设计上,采用了MiniGUI图形库进行软件开发,实现了良好的示波器人机交互界面。
With the development of the electronic measuring technology, the demand for measurement technique is higher and higher, so the traditional electronic oscillograph can hardly satisfy the need for real works. Measuring technology is geared to automated, intelligent and network directions. Digital storage oscillograph as the important measuring apparatus is widely used in various fields.
     The design of digital storage oscillograph is based on the embedded systems. In recent years, the rapid development of digitization technology centering on computer, chip technology and software engineering, greatly boosts the research of embedded technology. Powerful embedded processor and excellent embedded operating system have been developed successively, which makes the application of embedded system more and more widespread and contains each aspect of national economic construction.
     Embedded systems include embedded processor and embedded operating system. Embedded processors and the related functional expansion of the system’s circuit structure the hardware platform. Embedded operating systems include the bottom-driven software associated with hardware, system kernel, device driver, communication protocols, a graphical interface, standardization browser and so on. Embedded operating system runs on the embedded processor. Embedded operating system administers the processor and other hardware equipment in the bottom of processor, and it operates all application procedures. It shields the bottom of the details to provide a unified user interface. Application developers only need to split system development into several independent modules. This has greatly simplified the application design and shortened the development cycle, reduced repeating work, improved the efficiency of product development and improved the efficiency of knowledge innovation.
     Now the technology of digital storage oscillograph is more advanced overseas, and occupies the great majority of market. So it is indispensable to develop digital storages oscillograph ourselves. However, with the development, it can't meet the need of modern manufacture more and more. As a result, a handhold digital storage oscillograph is studied. According to these requirements, the portable digital oscillograph which can replace the general digital oscillograph is designed and realized in this paper.
     General application of ARM processor and development of embedded operating system provide new ideas for oscillograph design.
     The portable digital oscillograph designed in this paper is based on the embedded Linux OS and adopts Intel XScale PXA255 processor. It integrates the functions of signal collecting, data calculation, data communication, data storage and signal display. The system design is based on the cooperation of the hardware and the software. The system design and implementation process can be divided into the following steps :
     1. This system makes use of the Intel XScale PXA255 processor. We have designed the interface circuit of PXA255 processor and Flash, SDRAM, LCD and the touch screen A/D ADS7843 interface. Synchronously, I have designed the data collecting system hardware and realized the hardware platform of digital storage oscillograph system. Intel XScale PXA255 is a high-powerful embedded ARM processor introduced by Intel Corporation. It supports virtual memory management with MMU, pipelining, cache and the highest working frequency can be up to 400MHz; LCD do the terminals’display; Touch Screen Module uses AD7843; Terminal uses 32M bytes of FLASH and 64M bytes of SDRAM to store date and operate procedures, and the type are E28F128J3A and K4S281632C.
     2. This embedded system adopts Linux2.4.18 as the EOS (Embedded Operation System). Linux is organized with layer structure and opens its source code. Its network is power. And it supports many kinds of file systems and can operate on many kinds of embedded processors, including PXA255 processor.
     The embedded Linux OS is the heart of the whole system which controlls the operation of the whole system, and distributes the whole resource. The building of the embedded OS is the most important and complicated step which involves whether the whole system could operate reliably.
     After studying the boot process of Linux OS and the particularity of the embedded system, this system decides to use host/target cross-platform development mode. In this mode, the host takes charge of building cross-platform development environment and completes most of the development work. At last, the binary code is downloaded to the target platform and run.
     Besides, this system uses U-boot1.1.2 as the boot loader and makes JFFS2 (Journaling Flash File System) to be root file system. In software development, NFS (Network File System) is used to share file with PC. The above parts construct the basic embedded system software platform for software development and debugging.
     3. After the building of the software platform, I begin to program the applications for the digital storage oscillograph system. The applications mainly achieve the signal collecting, data storage and signal display functions. The study of application is based on the MiniGUI, and the next step is transplanting MiniGUI into the terminal platform to realize the GUI of it.
     Through debugging and testing, the hardware and embedded Linux operating system run stably, the GUI is friendly, the system carries out a good result of signal display and ultimately reaches the design request. The applications based on the embedded Linux OS are great transplantable, so we can transplant the applications of this system into other hardware platform. The system can be further expanded in terms of software and hardware to use in many other occasions.
引文
[1] 李崇德,现代数字存储示波器原理与应用,电子工业出版社,1989.
    [2] 李宛州,沈义民,数字示波器发展动态,信号处理,第 12 卷第 4 期,1996.
    [3] Allan Roger,Portable DSOs Measure up to Industrial Power Marker,Electronic Design,vol.52,no.22,2004.
    [4] 罗迎、史小春,基于 PXA255 的手持示波器的设计与实现,电子工程师,第 31 卷第 10 期,2005.
    [5] 周书信,正确选择数字示波器,宇航计测技术,第 22 卷第 3 期,2002.
    [6] J.Cerve,R.Kukuca,PC Sampling Oscillograph For Subnanosecond Time Region.Electronics Letters,vol.26,no.23,1990.
    [7] 孙建凤,数字存储示波器的原理、特点及发展动态,宇航计测技术,第16 卷第 6 期,1996.
    [8] 毛德操,胡希明,嵌入式系统采用公开源代码和 Strong ARM/XScale 处理器, 浙江大学出版社,2005.
    [9] 胡继阳,嵌入式系统导论,中国铁道出版社,2005.
    [10] 马忠梅,李善平,康慨,叶楠,ARM & Linux 嵌入式系统教程,北京航天航空大学出版社,2004.
    [11] S. Furber,ARM System-on-Chip Architecture, Addison Wesley Longman, 2000.
    [12] 孙天泽,袁文菊,张海峰,嵌入式设计及 Linux 驱动开发指南——基于ARM9 处理器,电子工业出版社,2005.
    [13] 熊江,三种嵌入式操作系统的分析与比较,单片机与嵌入式系统应用,第 5 期,2003.
    [14] 郑灵翔,嵌入式系统设计与应用开发,北京航空航天大学出版社,2006.
    [15] 慕春棣等,嵌入式系统的构建,清华大学出版社,2003.
    [16] 郭玉东,Linux 操作系统结构分析,西安电子科技大学出版社,2002.
    [17] 王学龙,嵌入式 Linux 系统设计与应用,清华大学出版社,2001.
    [18] 金西,黄汪,Linux 操作系统是嵌入式系统新的选择,微计算机信息,第16 卷第 6 期,2000.
    [19] 吴明晖,徐睿,黄健,徐辰,基于 ARM 的嵌入式系统开发与应用,人民邮电出版社,2004.
    [20] 陈章龙,嵌入式系统—Intel Strong ARM 结构与开发,北京航空航天大学出版社,2002.
    [21] 李善平,L inux 内核 2. 4 版源代码分析大全,机械工业出版社,2002.
    [22] 处理器说明书,Intel architechture reference.pdf,http://www.21ic.com.
    [23] 处理器说明书,PXA255_Develope.pdf,http://www.21ic.com.
    [24] PXA255 Design Guide,Intel Co,2003.
    [25] 王志鹏,付丽琴,可编程逻辑器件开发技术 MAX+plusII,国防工业出版社,2005.
    [26] 赵曙光,郭万有,杨颂华,可编程逻辑器件原理、开发及应用,西安电子科技大学出版社,2000.
    [27] MAX3000A Datasheet,2006.
    [28] 缪军同,鲁新平,模数转换器 AD9288 及其应用,山西电子技术,第 5期,2006.
    [29] AD9288 Datasheet,1998.
    [30] IDT72V02Datasheet,1996.
    [31] LCD 说明书,pd064vt2.pdf,http://www.21ic.com.
    [32] 熊德鹏,刘瑞娟,基于 PXA255 的彩色 LCD 驱动的设计与实现,电子器件,第 28 卷第 1 期,2005.
    [33] ADS7843.pdf,Burr-Brown,http://www.21icsearch.com/.
    [34] 李云外,胡文静等,基于 PXA255 的触摸屏控制器 ADS7843 驱动程序设计,电子器件,第 28 卷第 1 期,2005.
    [35] 魏平,夏良正,王岩,linux 体系及嵌入式 linux 的移植方法,东南大学学报,第 34 卷第 5 期,2004.
    [36] 张积红,吴强,嵌入式 linux 研究及其在 ARM 上的移植,电脑知识与技术,第 30 卷第 4 期,2005.
    [37] U-BOOT 的启动流程及移植,U-BOO 网页,http://blog.csdn.net/andyzx/archive/2006/04/19/668874.aspx.
    [38] U-BOOT 移植文档,网页, http://blog.csdn.net/yuanyufei/archive/2007/01/19/1487729.aspx.
    [39] 嵌入式 linux 的 NFS 开发环境的建立,网页, http://blog.sina.com.cn/u/48c6bd8c010007jg.
    [40] 潘巨龙,黄宁,姚伏天等,ARM9 嵌入式 Linux 系统构建与应用,北京航空航天大学出版社,2006.
    [41] 刘淼,嵌入式系统接口设计与 Linux 驱动程序开发,北京航空航天大学出版社,2006.
    [42] 周立功,陈明计,陈渝,ARM 嵌入式 Linux 系统构建与驱动开发范例,北京航空航天大学出版社,2006.
    [43] 周立功等,ARM 微控制器基础与实验,周立功单片机发展有限公司,2003.
    [44] Rubini.A,聊鸿斌等译,Linux 设备驱动程序,中国电力出版社,2000.
    [45] Tan T.K,Raghunathan A,JhaN.K.EMSIM,An energy simulation Gamework for an embeddedoperating system,IEEE International Sysmposium on Circuits and Systems,vol.2,2002.
    [46] 丁丁,习勇,魏急波,三种主流嵌入式图形用户界面的移植及性能比较,电子产品世界,第 9 期,2004.
    [47] MiniGUI,http://www.huihoo.org/,2003.
    [48] MiniGUI 用户手册,北京飞漫软件技术有限公司,2003.
    [49] 徐广毅、张晓林等,Qt/Embedded 在嵌入式 Linux 系统中的应用,单片机与嵌入式系统应用,2004.
    [50] MiniGUI 编程手册,MINIGUI-PROG-GUIDE-V1.3-C.pdf, http://www.minigui.com,2003.
    [51] 周立功,ARM 嵌入式 MiniGUI 初步与应用开发范例,北京航空航天大学 出版社,2005.