嵌入式操作系统报告
学院
专业
题目LED、按键、LCD、MPU6050任务切换
姓名学号
指导教师
日期2016年12月10日
f北京工业大学
摘要随着电子技术的发展嵌入式技术成为当今计算机应的主流技术嵌入式操作系统是嵌入式系统发展到一定阶段的产物,是为了满足日益复杂的嵌入式系统设计的要求而产生的。随着微处理器功能的不断提升,嵌入式操作系统的应用范围也变得越来越强大。对基于特定嵌入式操作系统上的软件设计研究己成为了近年来的热点,井且对于嵌入式操作系统在实际工程中的推广应用有着重要的意义。本文使用蒲公英STM32F103开发板,利用Keil软件创建工程。移植UCOS系统内核,应用C语言编写程序。完成了四个任务的创建和相互调度:LED灯、按键、LCD屏幕显示、MPU6050加速度传感器数据采集,通过按键更改LED灯的显示效果、通过实时采集MUP6050传感器的数据,显示在LCD上,并用信号量和消息邮箱进行任务之间的信息传递。
关键词:UCOSii、嵌入式系统、STM32F103、keil
f北京工业大学
ABSTRACT
Withthedevelopme
tofelectro
ictech
ologyembeddedtech
ologyhasbecomethemai
streamtech
ologyi
thecomputertheembeddedoperati
gsystemistheproductofacertai
stageofdevelopme
tofembeddedsystemisproducedi
ordertomeetthedesig
requireme
tsoftheembeddedsystemisbecomi
gmorecomplicatedWiththeco
ti
uousimproveme
tofthefu
ctio
ofthemicroprocessortheapplicatio
ofembeddedoperati
gsystembecomesmorea
dmorepowerfulTheresearchofsoftwaredesig
basedo
specificembeddedoperati
gsystemhasbecomeahotspoti
rece
tyearsa
dithasimporta
tsig
ifica
cefortheapplicatio
ofembeddedoperati
gsystemi
practicale
gi
eeri
gI
thispapertheuseofda
delio
STM32F103developme
tboardtheuseofKeilsoftwaretocreatetheprojectTra
spla
tUCOSsystemker
eltheapplicatio
ofCla
guageprogramCompletetheco
structio
offourtasksa
dscheduli
gLEDlightsbutto
sLCDdisplayscree
MPU6050acceleratio
se
sordataacquisitio
cha
getheLEDlampthroughthebutto
displaythroughrealtimeacquisitio
ofMUP6050se
sordatadisplayo
theLCDa
dthetaskoftra
smissio
ofi
formatio
betwee
sig
ala
dmessagemailboxKeywordsUCOSiiembeddedsystemSTM32F103Keil
Keywords:
f北京工业大学
目录
1绪论111研究的目的与意义112嵌入式系统概述113嵌入式操作系统特征及发展现状22uCOSII简介321uCOSII特点r