文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 信息与通信 > RTX51 TINY
侵权投诉

RTX51 TINY

Theory of Operation

RTX51 Tiny uses the standard 8051 Timer 0 (mode 1) to generate a periodic interrupt. This interrupt is the RTX51 Tiny Timer Tick. Timeout and interval values specified for the RTX51 Tiny library routines are measured using the RTX51 Tiny Timer Tick.

By default(缺省,默认), the RTX51 Timer Tick interrupt occurs every 10,000 machine cycles. So, for a standard 8051 running at 12MHz, the period of the timer tick is 0.01 seconds or a frequency of 100Hz. The value may be changed in the CONF_TNY.A51 configuration file.

Tasks

RTX51 Tiny is basically a task switcher. To create an RTX51 Tiny program, you must create an application with one or more task functions. The following details will help you to quickly gain an understanding of RTX51.

Tasks are defined in the C Programming Language using new keywords supported by the Keil C51 Compiler.

RTX51 Tiny maintains each task in exactly one state (Running, Ready, Waiting, Deleted, or Time-Out).

Only one task at a time may be in the Running State.

Many tasks may be in the Ready, Waiting, Deleted, or Time-Out States.

An Idle Task is always ready to run in the event that all of your defined tasks are blocked.

Task Management

State

RUNNING Description The task that is currently running is in the RUNNING State. Only one task at a time may be in this state. The os_running_task_id returns the task number of the

currently executing task.

Tasks which are ready to run are in the READY State. Once the Running task has

READY completed processing, RTX51 Tiny selects and starts the next Ready task. A task may

be made ready immediately (even if the task is waiting for a timeout or signal) by

setting its ready flag using the os_set_readyisr_set_ready functions.

Tasks which are waiting for an event are in the WAITING State. Once the event

occurs, the task is switched to the READY State. The os_wait function is used to

place a task in the WAITING State.

Tasks which have not been started or tasks which have been deleted are in the

DELETED DELETED State. The os_delete_task routine places a task that has been started

(with os_create_task) into the DELETED State.

Tasks which were interrupted by a Round-Robin Time-Out are in the TIME-OUT

State. This state is equivalent to the READY State for Round-Robin programs. WAITING TIME-OUT

Events

Events in a real-time operating system may be used to control the execution of tasks in the program. A task may wait for an event(Event TIMEOUT、INTERVAL) or may set event flags for other tasks(Event SIGNAL).

The os_wait function allows a task to wait for one or more events.

第1页

你可能喜欢

热门文档

相关文档

  • RTX51 Tiny

    第11章 RTX51实时操作系统 章 实时操作系统 Tiny版本使用了8051的定时器 和定时器0 版本使用了8051的定时器0 RTX51 Tiny版本使用了8051的定时器0和定时器0的...

  • RTX51 Tiny用户手册

    电话(852)2591-6289 Fax 传真:(852)2377-3532 E-Mail:mdlabs@263.net RTX51 Tiny 用户手册 RTX51 Tiny 用户手册包含了如何使用 RTX51 Tiny 实时内核的信息...

  • RTX51_Tiny_中文手册(全文下载)

    RTX51_Tiny_中文手册(全文下载)_IT/计算机_专业资料。RTX51 Tiny第二版(版本2.02)是RTX51 Tiny 1.xx的升级版本,他完全集成在keil的集成开发环境中。RTX51 ...

  • 单片机操作系统RTX51 Tiny的使用步骤

    你可以在你的源文件中包含它: #include<rtx51tny.h> 2、编程原则 以下是建立 RTX51 Tiny 程序时必须遵守的原则: ①、确保包含了 RTX51TNY.H 头文件。 ②、...

  • RTX51 Tiny学习笔记

    RTX51 Tiny学习笔记_生活休闲。自己的学习笔记RTX51 Tiny 学习笔记 一> 学习笔记<一刚开始就是把《RTX51 多任务操作系统 中文使用指南》反复看了几遍,了解了...

  • RTX51-Tiny使用说明

    -2- RTX51-Tiny 使用 REV 1.0 — 14 July 2014 Operating System Manual 1.3 产品规格 产品参数最大可定义的任务数 最大激活的任务数 需要的 CODE 空间 ...

  • KEIL RTX51 TINY

    *READY:任务正在等待运行,在当前运行的任务时间片完成之后,RTX51 TINY 运行下一 个处于"READY"状态的任务. *WAITING:任务等待一个事件.如果所等待的事件发生的话...

  • RTX51 TINY 中任务的建立

    54 文献标识码: B 文章编号: ( 1009 - 2552 2005) - 0085 - 03 12 RTX51 TINY 中任务的建立付虹,牛国成,胡冬梅,苑广军 (长春工业大学电气与电子工程...

  • RTX51_Tiny任务切换的分析

    RTX51_Tiny任务切换的分析_物理_自然科学_专业资料 暂无评价0人阅读0次下载举报文档 RTX51_Tiny任务切换的分析_物理_自然科学_专业资料。维普资讯 http://...

  • RTX51 TINY 用户指南

    (2); /* signal task #2 */ } ***朝旭网络*** http://www.zhaoxu.net RTX51 TINY 用户指南 -9- os_wait 摘要: #include <rtx51tny.h> char os...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email