基于单片机应用系统的多任务程序结构设计 |
| |
引用本文: | 钱宜平.基于单片机应用系统的多任务程序结构设计[J].无锡职业技术学院学报,2014(2):31-35. |
| |
作者姓名: | 钱宜平 |
| |
作者单位: | 江苏信息职业技术学院电子信息工程系,江苏无锡214153 |
| |
摘 要: | 对于多任务共享一个CPU的单片机应用系统来说,程序员在为其编写程序时都会面临系统实时性和多任务的挑战,确保每个任务都得到及时响应和处理,对于每一个单片机应用系统都是非常重要的,也是每一位程序员追求的主要目标之一。而影响程序实时性的最主要因素就是程序的结构,在分析了一些多任务调度机制特点的基础上,在平衡多任务和实时性方面做了一些探索,构造了一种基于前后台系统的单片机应用程序结构,经过实验证明,具有较强的实用性和较好的实时性。
|
关 键 词: | 单片机 程序结构 多任务 实时性 |
Designing the Software Structures with Multi-tasking for the Microcontrollers |
| |
Authors: | QIAN Yiping |
| |
Institution: | QIAN Yiping (School of Electronic and Information Engineering, Jiangsu Institute of Information Technology, Wuxi 214153, China) |
| |
Abstract: | When we design a software for a microcontroller, which has the need to time-share the CPU, we will face the challenge of multi-tasking and real time. It is very important for every system controlled by a MCU to ensure that things are happening in time. A key factor related to real time is the software struc- ture. After investigating and comparing some scheduling strategies, this paper design a software structure based on the foreground/background system, which can achieve multi-tasking. |
| |
Keywords: | MCU software structure multi-tasking real time |
本文献已被 维普 等数据库收录! |
|