基于指针数组的高精度UCOSII软件定时器改进方案  

Improvement Scheme of High-precision UCOSII Software Timer Based on Pointer Array

在线阅读下载全文

作  者:曾春 蔡阳 孙周 胡杰[1] ZENG Chun;CAI Yang;SUN Zhou;HU Jie(School of Computer Science,University of Yangtse,Jingzhou 434000,China)

机构地区:[1]长江大学计算机科学学院,湖北荆州434000

出  处:《电脑知识与技术》2021年第20期14-19,共6页Computer Knowledge and Technology

摘  要:stm32是目前应用最广泛的单片机之一,具有低功耗、高性能等优点。移植了UCOSII之后的单片机,相比于“裸机”,具有操作灵活,实时性良好的优点。本文针对传统软件定时器维护方式,提出了一种基于运行态数组的软件定时器改进方案,和空闲定时器控制块链表指针相比,支持随机访问定时器数据;和定时器控制块数组相比,运行期绑定成员变量,更加灵活;和定时器轮相比,更加直观、方便操作和理解。缺点是内存浪费,对于固定的系统来说,当一个操作系统烧进下位机,不会产生复杂而且庞大的数据,这可能不会产生较大的影响。STM32 is one of the most widely used single chip microcontrollers at present.It has the advantages of low power consump⁃tion and high performance.After transplanting UCOSII MCU,compared with"bare machine",it has flexible operation and good re⁃al-time performance.Aiming at the traditional maintenance mode of software timer,this paper proposes an improved scheme of software timer based on running state array,which supports random access to timer data compared with free timer control block list pointer,and binds member variables more flexibly in running time than timer control block array.It is more intuitive and conve⁃nient to operate and understand compared with timer wheel.The disadvantage is memory waste.For a fixed system,when an operat⁃ing system burns into the lower computer,it will not produce complex and huge data,This may not have a major impact.

关 键 词:UCOSII 软件定时器 STM32 物联网 运行态 嵌入式 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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