首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于时间调度算法的单片机程序设计方法
引用本文:邓柳.基于时间调度算法的单片机程序设计方法[J].湖北成人教育学院学报,2013,19(5):4-6,9.
作者姓名:邓柳
作者单位:长江职业学院,湖北武汉,430074;湖北技能型人才培养研究中心,湖北武汉,430074
基金项目:湖北省人文社科重点研究基地——湖北技能型人才培养研究中心研究成果
摘    要:以51单片机为代表的8位单片机在智能电子产品上获得了广泛的应用。单片机由于存在容量小、频率低等特点,程序设计一般不会移植操作系统,而是采用前后台的程序设计方法。当面临功能多、结构复杂的设计任务时,就对单片机的程序设计提出了更高的要求。基于时间调度的单片机程序也属于一种结构优化了的前后台程序,提出在程序设计之初就对设计任务进行任务拆解与时间规划,并在滴答时钟的驱动下按时间进行调度,使得程序运行效率更高,设计更灵活,可读性更强。

关 键 词:单片机  调度  前后台

MCU Program Design Method Based on the Time Scheduling Algorithm
Authors:Deng Liu
Institution:Deng Liu (1. Changjiang Professional College, Wuhan Hubei, 430074; 2. Skill talents cultivation in Hubei Research Center, Wuhan Hubei, 430074)
Abstract:Represented by 51 single chip microcomputer, 8 bits single chip microcomputer has been widely used in intelligent electronic products. Due to small capacity and low frequency characteristics, microcomputer programming generally does not use the RTOS, but using the foreground-background programs. Design of multiple functions and complex structure put forward higher request to MCU program design. Based on the time scheduling of MCU program belonging to a kind of structure optimization of foreground-background program, the author puts forward to design tasks in task disassemble planning with time at the beginning of the program design, and under the drive of the ticking clock according to time schedule, makes the program run more efficient and more flexible and readable.
Keywords:MCU  Schedule  Foreground-background
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号