没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
68页
这个手册介绍了RTX51 Tiny 实时系统的使用方法。是英文版本的。 网上也有中文版本的,但是内容有所不同。两种结合起来看更好。 Keil软件专业版,自带了这个实时系统。 STC公司的51单片机可以使用这个嵌入式系统。在固件比较复杂的时候,建议使用嵌入式操作系统,会使得编程变得简单一些。 RTX51 Tiny的任务调度可以是合作式的,也可以是时间片轮转。不支持抢占式。 这个实时系统的系统函数比较少,用起来比较简单。实时操作系统入门可以从RTX51 Tiny开始。
资源推荐
资源详情
资源评论
Preface 1
Preface
This manual explains how to use the RTX51 Tiny Real-Time Operating System and gives
an overview of the functionality of RTX51 Full. The manual is not a detailed introduc-
tion to real-time applications and assumes that you are familiar with Keil C51, A51, the
related Utilities, the DOS operating system and the hardware and instruction set of the
8051 microcontrollers.
The following literature is recommended as an extensive introduction in the area of real-
time programming:
Deitel, H.M., Operating Systems, second edition,
Addison-Wesley Publishing Company, 1990
Ripps, David, A Guide to Real-Time Programming, Englewood Cliffs, N.J,
Prentice Hall, 1988/
Allworth, S.T., Introduction to Real-Time Software Design,
Springer-Verlag Inc., New York
This user’s guide contains 6 parts:
Part 1: Overview, describes the functionality of a the RTX51 real-time opeating
systems and discusses the basic features and differences of RTX51 Tiny and
RTX51 Full. Also included are the technical data of RTX51 Full and
RTX51 Tiny.
Part 2: Requirements and Definitions, discusses the development tools and the
target system requirements of RTX51 Tiny, explains the terms used in the
the RTX51 Tiny manual and decribes the task definition.
Part 3: Creating RTX51 Tiny Applicaitons, describes the steps necessary to cre-
ate RTX51 Tiny applications.
Part 4: Library Functions, provides a reference for all RTX51 Tiny library rou-
tines.
Part 5: System Debugging, describes the stack handling of RTX51 Tiny and con-
tains information about the system debugging.
Part 6: Applications Examples, contains several examples using RTX51 Tiny and
describes the software development process. This information can be used
as a guideline for your real-time designs.
2 Contents
OVERVIEW .......................................................................................................... 7
Introduction ............................................................................................................... 7
Single Task Program.................................................................................................. 8
Round-Robin Program............................................................................................... 8
Round-Robin Scheduling With RTX51..................................................................... 8
RTX51 Events ........................................................................................................... 9
Compiling and Linking with RTX51 ....................................................................... 11
REQUIREMENTS AND DEFINITIONS .............................................................. 15
Development Tool Requirements............................................................................................................ 15
Target System Requirements................................................................................................................... 15
Interrupt Handling ................................................................................................... 15
Reentrant Functions................................................................................................. 16
C51 Library Functions............................................................................................. 16
Usage of Multiple Data Pointers and Arithmetic Units ........................................... 16
Registerbanks........................................................................................................... 17
Task Definition ....................................................................................................................................... 17
Task Management................................................................................................................................... 17
Task Switching ........................................................................................................ 18
Events ...................................................................................................................... 18
CREATING RTX51 TINY APPLICATIONS ........................................................ 21
RTX51 Tiny Configuration..................................................................................................................... 21
Compiling RTX51 Tiny Programs.......................................................................................................... 23
Linking RTX51 Tiny Programs .............................................................................................................. 23
Optimizing RTX51 Tiny Programs......................................................................................................... 23
RTX51 TINY SYSTEM FUNCTIONS.................................................................. 25
Function Reference ................................................................................................................................. 26
isr_send_signal.................................................................................................................................. 27
os_clear_signal.................................................................................................................................. 28
Preface 3
os_create_task....................................................................................................................................29
os_delete_task....................................................................................................................................30
os_running_task_id............................................................................................................................31
os_send_signal...................................................................................................................................32
os_wait...............................................................................................................................................34
os_wait1.............................................................................................................................................36
os_wait2.............................................................................................................................................37
SYSTEM DEBUGGING......................................................................................41
Stack Management...................................................................................................................................41
Debugging with dScope-51......................................................................................................................41
APPLICATION EXAMPLES ...............................................................................45
RTX_EX1: Your First RTX51 Program.................................................................................................45
RTX_EX2: A Simple RTX51 Application .............................................................................................47
TRAFFIC: A Traffic Light Controller ....................................................................................................49
Traffic Light Controller Commands.........................................................................49
Software ...................................................................................................................49
Compiling and Linking TRAFFIC............................................................................62
Testing and Debugging TRAFFIC ...........................................................................62
RTX Tiny 5
1
Notational Conventions
This manual uses the following format conventions:
Examples Description
BL51
Bold capital texts used for the names of executable programs, data files,
source files, environment variables, and other commands entered at the
DOS command prompt. This text usually represents commands that you
must type in literally. For example:
CLS DIR DS51.INI
C51 A51 SET
Note that you are not actually required to enter these commands using all
capital letters.
Courier
Text in this typeface is used to represent the appearance of information
that would be displayed on the screen or printed on the printer.
This typeface is also used within the text when discussing or describing
items which appear on the command line.
KEYS
Text in this typeface represents actual keys on the keyboard. For
example, “Press Enter to Continue.”
ALT+<x>
Indicates an Alt key combination; the Alt and the <x> key must be
simultaneously pressed.
CTRL+<x>
Indicates an control key combination; the Ctrl and the <x> key must be
simultaneously pressed.
剩余67页未读,继续阅读
资源评论
eyuge2
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功