51单片机循环轮询多任务编程  被引量:4

The method of polling loop multitask programming in 51 single chip microcomputer

在线阅读下载全文

作  者:杜隆胤[1] 方冰[1] 郑军[1] Du Longyin;Fang Bing;Zheng Jun(College of Mathematics and Informatics,Guiyang University,Guiyang,Guizhou 550003,China)

机构地区:[1]贵阳学院数学与信息科学学院,贵州贵阳550003

出  处:《计算机时代》2018年第10期1-4,共4页Computer Era

摘  要:针对51单片机内存资源非常有限,很难布设操作系统,从而导致51单片机中多个功能有机融合比较困难的问题,首先分析了使用轻型的循环轮询多任务编程思想在51单片机编程中的优势;然后针对真实任务中存在阻塞问题,讲述了如何对真实任务进行分解以满足系统实时性要求;最后分析了循环轮询系统中周期性实时任务和非周期性实时任务的触发方式,设计出了较为通用的、以周期性实时任务和中断服务任务为基本触发源的系统实现模板。This paper is aimed at the problem that it's difficult to implement multifunctional system in 51 single chip microcomputer, because the RAM of 51 single chip microcomputer is so limited that it's impossible to place operating system into it. The advantage of the method of polling loop system multitask programming is analyzed. The really task is divided into a lot of tasks in order to ensure the real-time characteristic of the system, and avoid the task to be blocked. The trigger conditions of periodic real-time task and aperiodic real-time task are analyzed, and a software template for 51 single chip microcomputer with the basic trigger sources of periodic real-time tasks and interrupt service tasks is designed.

关 键 词:51单片机 循环轮询系统 多任务 触发条件 

分 类 号:TP368.1[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象