摘 要
嵌入式系统和嵌入式操作系统经过多年的发展,已经形成了一套完整的体系。嵌入式系统已经融入了人们的生活中,在人们的生活中可以说是无处不在,应用十分广泛,小到电脑芯片,手机,自动小机器人,大到各种高精度控制芯片。
飞思卡尔K60处理器是一种性能很好的嵌入式系统,本课题的研究目的就是设计一款软件,用于监控飞思卡尔K60处理器的状态。
在本次课题中,我们主要使用了飞思卡尔K60处理器,微软VS 2010编译器,
Kinetis Design Studio 3.0.0 IDE 程序烧录。VS 2010用来开发软件,主要负责设计界面,各种功能模块,主要模块有:串口选择打开,串口数据显示;LED 功能测试;ADC功能测试;RTC功能测试;FLASH功能测试;数据组帧解帧、数据发送。K60处理器则是我们用来实验,查看整体软件运行情况的工具。Kinetis Design Studio 3.0.0 IDE 用来在K60端写入程序,又称为烧录程序。
经过调试,检验本次课题设计的软件,可以实现预定的功能,能够打开和关闭串口;显示命令数据;控制LED小灯的开关;ADC,RTC,FLASH功能也能实现。
检测的成功说明了,对嵌入式系统的操作控制技术趋于成熟。
关键字:嵌入式系统、飞思卡尔K60、组帧解帧、
A project designed for managing and testing freescaleK60.
ABSTRACT
The embedded system and the embedded operation system has long time to develop. So they become a completely construction. They are everywhere in human life. They are widely useful. From computer chip, mobile phone, auto robot, to high-precision chip. It play a more and more important role in our live.FreescaleK60 is a high-performance embedded system. This program is designed on computer and it can help K60 test, send and receive data. It is designed for managing and testing freescaleK60.
In this program, I use FreescaleK60, Microsoft VS 2010, Kinetis Design Studio 3.0.0 IDE to complete my task. I use Vs 2010 to design the menu. Main functions are: Choose and open port; Display the port’s data; LED function test; ADC function test; RTC function test; Flash function test; Data framing,deframing,sending and receiving;The important part I think most is framing and deframing.
After testing, this program can realize the requirements and the functions. It can open and close the port; display the commend data; LED test;ADC , RTE and Flash functions.The success that this program achieve means the embedded system is mature.
Keywords: embedded system; package and analyze data; Data framing,deframing;
目录
1. 前 言 - 1 -
1.1本课题的产生原因 - 1 -
1.2 本课题的目的 - 1 -
1.3 本课题的意义 - 1 -
1.4 本课题中遇到的问题 - 1 -
2. 开发工具简介 - 2 -
2.1 软件介绍 - 2 -
2.2 什么是嵌入式系统? - 2 -
2.3 嵌入式系统的特点 - 2 -
2.4 什么是 ARM 处理器 - 3 -
2.5.飞思卡尔K60处理器: - 3 -
3.串口通讯设计 - 5 -
3.1.串口通讯模式设计 - 5 -
3.2 通讯命令设计 - 5 -
3.3帧协议的设计 - 5 -
3.3.1组帧与解帧描述 - 6 -
4.软件结构分析 - 8 -
4.1 结构简述 - 8 -
4.2 功能方法概述 - 8 -
4.3资源类概述 - 9 -
4.4窗口界面概述 - 10 -
5.软件功能分析 - 11 -
5.1串口控制模块 - 11 -
5.2 串口数据显示模块 - 13 -
5.3解帧功能描述 - 15 -
5.4 LED 功能模块描述 - 16 -
5.5 ADC 功能模块描述 - 18 -
5.6 RTC 功能描述 - 21 -
5.7 Flash 功能模块描述 - 24 -
7. 项目总结 - 27 -
致 谢 - 28 -
参考文献 - 29 -
- 前 言
1.1本课题的产生原因
嵌入式系统可以分为嵌入式操作系统和嵌入式硬件系统,两者不能分开,如果没有嵌入式操作系统,那嵌入式硬件系统就如一个没有灵魂的空壳,以飞思卡尔K60为例,飞思卡尔K60就是一个嵌入式硬件系统,但是没有操作系统的支持,它就是一块普通的硬件板子,而在本次课题中,完成了嵌入式操作系统的设计,这样操作系统与硬件相结合,才能实现一个完整的嵌入式系统。
1.2 本课题的目的
本课题的目的是设计一个在PC端运行的C#应用程序,用于协助K60应用程序的开发和调试。嵌入式现在的应用十分广泛,小到电脑芯片,手机,自动小机器人,大到各种高精度控制芯片。
1.3 本课题的意义
嵌入式系统在人们的身边无处不在,这种情况下,对嵌入式系统的控制与监测就显得尤为重要。而本次课题的研究内容就是这样的一种简单的嵌入式软件的控制系统。
1.4 本课题中遇到的问题
课题毕业论文、开题报告、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找,优先添加企业微信。