8051的基本要求称为RTOS [英] basic requirements to be called RTOS for 8051

查看:363
本文介绍了8051的基本要求称为RTOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为8051做一个RTOS,并且非常困惑,因为8051中的操作系统应该遵循最低要求,因为8051在RAM和ROM的情况下非常限制了资源。这是只是和作业类型的问题,但我真的很困惑,因为我们为8051的软件是不是一个操作系统?哪些特征与RTOS的微控制器的正常的常规编码不同?请帮助谢谢

解决方案

一个典型的RTOS至少提供以下内容:




  • 确定性任务调度

  • 任务同步机制

  • 进程间通信机制

  • 定时服务


RTOS调度程序通常是基于优先级和优先级的 - 准备运行的最高优先级任务将运行,不管低优先级任务的状态如何。



Jack Ganssle在TechOS上的RTOS基础知识,这可能对您而言是有用的。它由Micrium赞助,并以uC / OS-II作为案例研究,但它通常适用于大部分。



8051特别能够特别有效任务上下文切换由于其多个寄存器组,可通过单个指令切换。


I want to make an RTOS for 8051 and very confused as what minimum requirements should be followed to make an OS in 8051 as 8051 has very limitted resources in case of RAM and ROM. It is just and assignment type problem but i am really confused as we make softwares for 8051 are they not an OS? which features differenciate a normal regular coding of micro controller from RTOS? please help thanks

解决方案

An typical RTOS provides at least the following:

  • Deterministic task scheduling
  • Task synchronisation mechanisms
  • Inter-process communication mechanisms
  • Timer services

An RTOS scheduler is typically priority-based and pre-emptive - the highest priority task that is ready to run will run, regardless of the state of lower priority tasks.

There is a presentation by Jack Ganssle on RTOS Fundamentals on TechOnline that may be of use to you. It is sponsored by Micrium and uses uC/OS-II as a case study, but it generally applicable for the most part.

The 8051 in particular is capable of particularly efficient task context switching due to its multiple register banks, switchable with a single instruction.

这篇关于8051的基本要求称为RTOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆