1、 嵌入式控制系统课程设计嵌入式控制系统课程设计 - -计算器计算器 学院:学院: 自动化学院自动化学院 班级:班级: 自自 1103 2014 年 7 月 12 日 摘要 本设计在Embedded Visual C+集成开发环境下编写程序,通过键盘或触摸 屏的输入,实现计算器的顺序计算并且实现判断优先级计算,自动判断数据的正 确性(不多于小数点、数字以0 开头、左右括号前出现数字)及合理性(被除数 为0、单个数据超过10 位) ,在4 位LED 上面轮流显示8 位计算结果,控制LED 灯和驱动LED 数码管的应用程序,并在WinCE 平台下运行,实现在PXA270 实 验箱的数码管上和对话框的
2、数字显示控件上同步显示手动输入的数字、 数码管按 照预设频率循环显示数字等功能。 关键词:WinCE 操作系统EVC 集成开发环境PXA270 实验箱LED GPIO 对话编辑框 AbstractAbstract This application is attempted implement a calculator which has the ability to orderly calculate and judge the priority of the calculation, as well as to test the validity and the rationality of
3、 the data. It is triggered by the input from the keyboard or the touch screen and programmed in Embedded Visual C+ integrated development environment. Besides, with the Wince platform, it could use 4 LED to indicate the 8-bit outcome of the calculator circularly, control the 4 LED and drive the appl
4、ication program of the digital LED, so as to complete the mission which aims to show the number keyed by the operator both on the LED of the PXA270 experimental box and the edit box of the screen simultaneously. The application also owns the function to change the color of the number showed in the e
5、dit box of the screen in a constant frequency. Key words: WinCE OS EVC IDE PXA270 experiment box LED GPIO Dialogue edit box 目录目录 1 设计目的 1 2 设计功能与设计特色 . 1 2.1 设计功能 1 2.2 设计特色 2 3 功能模块设计 . 3 3.1 计算器模块 3 3.1.1 任务要求 3 3.1.2 设计思路 3 3.1.3 程序部分 5 3.2 显示模块(LED 数码管) .12 3.2.1 任务要求 .12 3.2.2 设计思路 .12 3.2.3 程序
6、实现 .12 3.3 其他 13 4 使用手册与测试结果性能分析14 4.1 使用手册 .14 4.2 测试结果性能分析 .16 5 小结 17 6 小组中承担的任务 错误错误!未定义书签。未定义书签。 1 1 设计目的设计目的 (1)通过理论学习、查阅资料、软件设计、系统调试等环节,巩固和提高 所学的知识和应用水平,进一步学习和领悟嵌入式程序开发的方法和流程。全面 综合的应用所学基础知识,建立起一个完整的嵌入式系统开发过程的概念。 (2)了解WinCE 操作系统的概念。学会在Embedded Visual C+集成开发 环境中开发应用程序。 (3)通过做实验,测试应用程序功能,直观的了解PXA270 实验设备的组 成部分,尤其是课程设计中经常用的一些外部设备。 (4)通过课程设计,了解嵌入式编程的特点,并且通过自己的实践,解决 嵌入式编程的各种问题。 (5)通过完成这个课程设计,要培养分析问题和解决问题的能力;实际动 手操作的能力; 查阅中外文献的能力; 制定设计方案的能力; 计算机应用的能力; 设计计算和绘图的能力;语言文字