基于μC/os-Ⅱ的嵌入式脑电分析系统
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
21世纪是世界科学界公认的生物科学、脑科学的时代。科技的进步使人类对外在世界的认知已经相当深刻,但人类对自身大脑的认知却十分肤浅。在全球性的研究计划的推动下,有关人脑认知过程的研究已成为当代科学发展的主流方向之一。认知功能是人体大脑高级机能的重要功能之一,是非常复杂的脑活动过程。目前脑电信号分析在认知科学的研究中起着不可或缺的重要作用,但用于脑认知研究的脑电分析系统十分昂贵,难以推广使用。因此,采用嵌入式结构方式,研究一种新型高性能低价格的脑电记录分析系统十分必要。
     本文完成了基于μC/os-Ⅱ的嵌入式脑电分析系统的设计。系统整体分为上位PC机和脑电信号采集仪器两部分。上位PC机和脑电信号采集仪器之间采用USB方式进行通信。嵌入式脑电采集仪器的设计是本文工作的重点,主要介绍了嵌入式脑电采集仪器的软硬件分析设计与实现,并采用实验室自主开发的上位机脑电采集分析软件实现了数据的采集分析。
     本文主要完成了以下工作:
     1)设计了高性能的脑电预处理电路。完成了放大、滤波、A/D转换等电路的设计。脑电预处理电路的性能主要取决于前置放大器,在本设计中选择了高精密度的仪表差分运算放大器AD620来构建放大器电路。
     2)完成了嵌入式子系统的硬件设计。采用强大的ARM微处理器S3C44BOX作为嵌入式系统的核心,完成了电源、JTAG接口、复位、晶振、存储器以及USB接口电路的设计,并完成了S3C44BOX启动程序的设计,
     3)在S3C44BOX微处理器上成功移植了实时嵌入式操作系统μC/os-Ⅱ。操作系统的引入是本系统软件设计的基础,使我们对软件各部分功能的管理更加方便,也使程序结构更加清晰、易读。更重要的是可以方便的进行系统升级和增加其他功能,有利于进一步开发。在成功移植了实时嵌入式操作系统μC/os-Ⅱ后,我们用S3C44BOX微处理器开发了基于μC/os-Ⅱ的USB驱动程序,完成了通讯软件的设计,并将应用软件所需要完成的功能划分为信号采集、数据预处理、参数设置、数据传输等几个部分,实现了模块化管理。
     4)采用实验室自主研究的脑电采集软件SDUND。完成了简单的诱发脑电信号采集实验。
     本系统设计的一个特点是为诱发脑电信号的提取提供了便利机制。系统由硬件接口来处理事件的起始同步问题。针对脑认知研究要处理不同事件下的诱发相关电位的特点,采用8通道0V/5V高低电平信号区分8类不同的刺激事件。在采集脑电信号的同时获取不同事件的起始同步信号,并将其与脑电信号封装在一起。这样,上位PC机在读取了数据后能够从一连串的数据中寻找到被刺激信号描记的脑电信号部分,对其进行叠加平均,提取出有效信息。
     基于μC/os-Ⅱ的嵌入式脑电分析系统能正确检测脑电信号的变化情况,实现了诱发脑电信号与刺激信号的同步描记,为诱发脑电信号的离线分析提供了事件标志,为脑认知的研究提供了实验工具,也可为脑-机接口的研究提供可靠的实验工具和分析平台。
The 21st century is recognized by the world scientific community as the age of biological science and brain science.Advances in technology,humanity has a deep knowledge of the external world,but human awareness of its own brain is very superficial.In the promotion of global research projects,the research of human brain cognitive progress has become one of the mainstreams of contemporary scientific research.The brain cognitive function is a very complicated brain function process.EEG analyzing plays a very important part in the current research of the cognitive function.At present,the analyzing system used for brain cognitive research is too expensive to popularize. Therefore,a new high-performance and low-cost EEG analyzing system based on embedded system is very necessary.
     An EEG analyzing system based on Advanced RISC Machines(ARM)andμC/os-Ⅱreal time operating system is discussed in this paper.This system consists of two parts:EEG measurement and PC(personal computer).EEG measurement is connected with the PC by USB interface.The design of EEG measurement is the focus of this paper.The design of hardware and software of EEG measurement are completed.The data acquisition experiment is done using the EEG acquisition and analysis software SDUND which is developed by the laboratory independently.The experiment shows that the capabilities of this equipment are satisfied.
     The following works are completed in this paper.
     1)The design of high-performance EEG pretreatment circuit including amplification,filtering and A/D converter are described.The performance of EEG pretreatment circuit depends on preamplifier primarily.In this paper the high-precision instrumentation difference Operational Amplifier AD620 is selected to build amplifier circuit.
     2)The hardware design of embedded subsystem is completed.An ARM microprocessor S3C44BOX is used as the core of the embedded system.The design of power supply,JTAG interface,reset,crystal,the memory and USB interface circuit are discussed.The BootLoader program of S3C44BOX is also discussed.
     3)TheμC/os-Ⅱreal-time embedded system is transplanted in S3C44BOX successfully.In this paper software design is based onⅡC/os-Ⅱ.Introduction of an operation system can manage programs more easily and make the structure of software clear.More importantly,its software can upgrade conveniently for further development.The design of communication software is completed.The driver of USB is developed in the base ofμC/os-Ⅱ.The system function is divided into five modules,signal acquisition,data preprocessing,parameter setting,order implementing,ordinary transmission and synchronous data transmission.
     4)A simple experiment of evoked EEG acquisition is done using the EEG acquisition and analysis software SDUND.
     This system uses hardware interfaces to deal with the synchronization of events.It uses 8 channels signal 0V/5V to distinguish eight different stimulations because brain cognitive research has to deal with ERP under different stimulations.Synchronization signals of different stimulations are acquired while recording EEG signals,then these signals are processed together.
     The system can accurately measure the EEG signals and synchronize the ERP signals and the stimulating signals.Therefore,this system can provide us with the event flag in the offline analysis of ERP.So it is a considerably useful experimental tool in brain cognitive research.It also supports us with a reliable experimental tool and analyzing platform for the Brain-Computer Inteface.
引文
[1]鲁在清.国际标准脑电图术语.现代电生理学杂志.2004,9,11(3):158-164.
    [2]伍国锋,张文渊.脑电波产生的神经生理机制.临床脑电学杂志2000,8,9(3):188-190.
    [3]顾凡及,齐祥林,郭爱克,汪云九.日本脑科学的现状及发展战略.生物物理学报.1999,3,15(1):13-18.
    [4]张作生,张晓晖.脑电与认知活动的相关性.生物学杂志.1999,12,16(6):9-10.
    [5]Kutas M,Hillyard S AL.Reading Senscless Sentences:Brian Potentials Reflect Semantic Incongrulity[J].Science,1980,207:2023-2051.
    [6]Jewett D J,Williston JS.Auditory Evoked for Fields Averaged from the Scalp of Humans.Brain.1971,94:681-690.
    [7]马忠梅.ARM&Linux嵌入式系统教程—基于ARM的应用[M].北京航空航天大学出版社.2004.
    [8]胥静.嵌入式系统设计开发实例详解.北京航空航天大学出版社.2005.
    [9]姚泰.生理学.人民卫生出版社.2000.
    [10](加)P·萨伽德著,朱菁译.认知科学导论.中国科学技术大学出版社.1999.
    [11]李颖洁,樊飞燕,陈兴时.脑电分析在认知研究中的进展.北京生物医学工程.2006,6,3(25):321-324.
    [12]赵仑.ERP实验教程.天津社会科学院出版社.2004.
    [13]谭郁玲.临床脑电图学与脑电地形图学.人民卫生出版社.1999.
    [14]MOTOROL.A Low Noise,JFET Input Operational Amplifiers.MOTOROLA Analog IC Device Data.1997.
    [15]余学飞.医学电子仪器原理及设计.华南理工大学出版社.2000.
    [16]蔡建新,张唯真.生物医学电子学.北京大学出版社.1997.
    [17]Analog Devices.Low Cost,Low Power Instrumentation Amplifier AD620Datasheet.Analog Devices.1999.
    [18]Johnnie Molina and R.Mark Stitt.Fiter Design Program For The UAF42Universal Active Filter.Burr-Brown Applacation Bulletin.1993.AB-035C.
    [19]周立功等.ARM嵌入式系统基础教程[M].北京航空航天大学出版社.2005.
    [20]马文华.嵌入式系统设计与开发.科学出版社.2006.
    [24]田泽.嵌入式系统开发与应用教程.北京航空航天大学出版社.2005.
    [22]Jean J.Labross.μC/OS-Ⅱ:源码公开的实时嵌入式操作系统[M].中国电力出版社.2001.
    [23]Philips Semiconductors.PDIUSBD12 Data Sheet USB interface device with parallel bus.1999.
    [24]李肇庆,廖峰,刘建存.USB接口技术[M].国防工业出版社.2004.
    [25]张念淮,江浩.USB总线接口开发指南[M].国防工业出版社.2001.
    [26]Adorson.USB系统体系[M].中国电力出版社.2001.
    [27]王保华.生物医学测量与仪器[M]复旦大学出版社.2003.
    [28]Analog Devices.AD7683 Data Sheet.Analog Devices.2004.
    [29]邓勇,刘琪,施文康.通用有源滤波器UAF42的CAD软件-HLTER42[J].国外电子元器件.2001,10:45-46.
    [30]魏彬,贾存良.脑电信号预处理电路的设计[J].中国组织工程研究与临床康复.2007,6,11(22):4362-4364.
    [31]Geun-Young Jeong,Ju-Sung Pakk,"ARM7 compatible 32-bit RISC processor design and verification,"Science and Technology,2005.KORUS.2005.July,2005:607-610.
    [32]Bo Jing,Jie Zheng,"Design of Micro Wireless Network Measurement and Cotrol Server Based on ARM and μC/os-Ⅱ,"Intelligent Control and Automation,June,2006:4453-4457.
    [33]Ya-lin Miao,"Design and Application of Embedded System Based on ARM7LPC2104 Processor in Telemedcine," Engineering in Medicine and Biology Society,IEEE-EMBS 2005.Sept.2005 pp:802-815.
    [34]Piccini.L."Wireless DSP Architecture for Biosignals Recording," Signal Processing and Information Technology.Dec.2004:487-490.
    [35]Rai KamalJ,"Embedded Systems Architutecture,Programming and Design,"Tsinghua University Press,2005.
    [36]Philips Semiconductors.Firmware Programming Guide for PDIUSBD12.September 1998:1-22.
    [37]王田苗.嵌入式系统设计与实例开发—基于ARM微处理器与实时操作系统[M].清华大学出版社.2003.
    [38]李同磊.脑—机接口系统中实用分类技术的研究.山东大学毕业论文.2006.
    [39]SAMSUNG.S3C44BOX RISC Microprocessor Product Overview.
    [40]Silicon Storage Technology.16 Mbit(x16)Multi-Purpose Flash SST39LF160,SST39VF160 Data Sheet.2003.
    [41]Hynix Semiconductor.HYS7V641620HG-Ⅰ Series 4 Banks x 1M x 16Bit Synchronous DRAM Data Sheet.2002.
    [42]英国ARM公司.使用ADS1.2进行嵌入式软件开发[下].电子设计应用.2003,4:60-63.
    [43]英国ARM公司.使用ADS1.2进行嵌入式软件开发[下].电子设计应用.2003,5:53-56.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700