欢迎来到天天文库
浏览记录
ID:32150128
大小:6.93 MB
页数:68页
时间:2019-01-31
《μc%2fos-ⅱ内核及其在纸币识别器上应用的研究》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、摘要随着电子技术,通信技术的快速发展,以及互联网的广泛应用,嵌入式系统逐渐成为计算机行业的热点。随着人们对于信息产品功能要求的不断提高,基于单片机裸机的嵌入式系统已经越来越不能满足市场的需求。金融设备纸币识别器作为嵌入式系统应用的典型代表,同样迫切需要实时操作系统(RTOS)的引入。本文首先介绍了嵌入式系统和实时操作系统的概念,比较了几种时下流行的实时操作系统,并根据纸币识别器的特点选择uC/OS-II作为我们研究和构建软件系统的对象。通过对pc/os—II内核的详细分析,包括任务管理和调度、中断和时钟、任务的同步与通信
2、等,本章通过对uC/OS-II内核的详细分析,包括任务管理和调度、中断和时钟、任务的同步与通信等,针对纸币识别系统中数据采集任务的性质,对该内核的调度机制提出了相应的改进,引入了基于优先级调度算法的时间片轮转调度机制。选用uPSD3233B微处理器和uc/os—II微内核来设计纸币识别器,根据微处理器的特点和系统功能的需要,设计了相应的硬件功能模块,并将llc/os—II移植到该硬件平台上,同时在应用层上根据系统功能进行了具体的任务划分和设计。对基于51单片机和uC/OS-II的系统网络协议栈的定制作了进一步探索,选用‘
3、RTL8019AS网络控制器作为网络接入设备,针对uC/OS—II操作系统的特点,对源代码进行了一定的裁剪和改写,并列出了主要的数据结构和数据报处理流程,以及相关的主要系统函数,以实现最基本的Internet协议功能,为纸币识别器的直接网络接入打下了基础。关键词:RTOS,pC/os—II,调度,纸币识别器,TCP/IP协议AbstractWiththefastdevelopmentofelectronictechnology,communicationtechnology,andfar-rangingapplicati
4、onoftheintemet,embeddedsystemiSbecominghotinthefieldofIT.晰ththesustainincreasingofneedfrompeopleforthefunctionofITproducts,theembeddedsystemwithsingle—chipcan’tnotmeettheneedofmarketanymoredaybyday.Asthetypicalrepresentativeofembeddedsystem,financialfacilitybilla
5、cceptorurgentlyneedstheportingofI盯OS.Atfirst,thisPaperintroducestheconceptofembeddedsystemandRealTimeOperatingSystem,comparesseveralpopularRTOSesatpresent,thenaccordingtothecharacteristicsofbillacceptor,gC/OS-IIiSchosenastheobjectofresearchtobuildthesoftwaresyste
6、m.BythedetailedanalysisofpCOS—IIkemel,includingtaskmanagementandscheduling,interruptandclock,synchronizationandcommunicationbetweentasks,animprovementforthekemel’SschedulingmechanismiSintroducedaccordingtothetraitofdataacquisitiontask,bringingintheTimeSliceCircul
7、arSchedulingalgorithm.ThemircrocontrollerI.tPSD3233BandgCOS.IIareselectedtodesignthebillacceptor.Accordingtothequalityofthemircrocontrollerandsystemfunctionwewant,correspondingfunctionmodulesofhardwarearedesigned,andtheI盯OSrtCOS.IIiSportedtothemircrocontroller.At
8、thesametime,ontheapplicationlayerdifferentapplicationtasksarecreatedaccordingtothesystemfunction.Afartherresearchintothecustomizationofnetworkprotocolstackbase
此文档下载收益归作者所有