没有合适的资源?快使用搜索试试~ 我知道了~
RTOS操作系统(RTX51技术文档)
3星 · 超过75%的资源 需积分: 15 66 下载量 159 浏览量
2011-07-23
10:48:20
上传
评论 1
收藏 949KB PDF 举报
温馨提示
试读
286页
51单片机使用的操作系统RTX-51实时多任务操作系统文档,RTX-51是一个强大的任务管理工具,其可以在51系列CPU上管理多个任务或进程,本文档介绍了RTX-51的方面知识。
资源推荐
资源详情
资源评论
RTX-51
RTX-251
Real-Time Multitasking Executives for the
8051 and MCS
251 Microcontrollers
User’s Guide 09.97
ii Keil Software
Information in this document is subject to change without notice and does not
represent a commitment on the part of the manufacturer. The software described
in this document is furnished under license agreement or nondisclosure agreement
and may be used or copied only in accordance with the terms of the agreement. It
is against the law to copy the software on any medium except as specifically
allowed in the license or nondisclosure agreement. The purchaser may make one
copy of the software for backup purposes. No part of this manual may be
reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying, recording, or information storage and retrieval systems,
for any purpose other than for the purchaser’s personal use, without written
permission.
© Copyright 1988-1996 Keil Elektronik GmbH., Mettler & Fuchs AG, and Keil
Software, Inc.
All rights reserved.
Keil C51™ and dScope™ are trademarks of Keil Elektronik GmbH.
Microsoft
®
, MS–DOS
®
, and Windows™ are trademarks or registered trademarks
of Microsoft Corporation.
IBM
®
, PC
®
, and PS/2
®
are registered trademarks of International Business
Machines Corporation.
Intel
®
, MCS
®
51, MCS
®
251, ASM–51
®
, and PL/M–51
®
are registered
trademarks of Intel Corpor
ation.
Every effort was made to ensure accuracy in this manual and to give appropriate
credit to persons, companies, and trademarks referenced herein.
06.04.99
RTX-51 / RTX-251 iii
Preface
RTX-51 is a runtime library that, together with C51, allows real-time systems to
be implemented for all processors of the 8051 family (e.g., 8051, 8052, 80515,
etc.), except for the 8?C751 and 8?C752.
RTX-251 extends the functionality of the RTX-51 to the new intel MCS
251
family of processors. It is available as a set of runtime libraries supporting the
binary and the source mode to be used with the C251.
This user's manual assumes that the user is familiar with the programming of
8051/ MCS
251 processors, experienced with the KEIL C51/C251 high-level
programming language, and has basic knowledge of real-time programming.
The following literature is recommended as an extensive introduction in the area of
real-time programming:
n Deitel, H.M., Operating Systems, second edition,
Addison-Wesley Publishing Company, 1990
(contains many additional literature references and is praxis-
orientated)
n Ripps, David, A Guide to Real-Time Programming, Englewood
Cliffs, N.J, Prentice Hall, 1988.
n Allworth, S.T., Introduction to Real-Time Software Design,
Springer-Verlag Inc., New York
n Richter, Lutz, Betriebssysteme,
Teubner Stuttgart, 1985 (theoretical view, german language)
n Goldsmith, Sylvia, A practical guide to Real-Time Systems
Development, Prentice Hall
iv Preface
Manual Organization
This user’s guide is divided into eight chapters:
„Chapter 1. Overview,“ provides a brief overview on RTX-51/251.
„Chapter 2: Installation,“ describes the installation of RTX-51/251 and provides
an overview on the necessary software tools.
„Chapter 3: Programming Concepts,“ describes the ways RTX-51/251 functions
can be used by your application and how the kernel handles C51/C251 specific
aspects.
„Chapter 4: Programmer’s Reference,“ contains a detailed listing of all RTX-
51/251 system functions including examples.
„Chapter 5: Configuration,“ describes the adaptation of RTX-51/251 to various
members of the 8051/MCS
251 processor family and the system-configurable
constants.
„Chapter 6: CAN Support,“ introduces the driver software for a CAN bus
interface using different controller hardware.
„Chapter 7: BITBUS Support,“ introduces the driver software for a BITBUS
interface using the intel 8044 on-chip controller.
„Chapter 8: Application Example,“ describes as an example the software required
to control the traffic lights at an intersection
vi Content
Contents
Chapter 1. Overview........................................................................................1
Summary of the Major System Features ...................................................................2
Tasks.................................................................................................................. 2
Interrupt System.................................................................................................4
System Clock......................................................................................................4
Operating Resources...........................................................................................4
Program Example....................................................................................................5
Example Program for a Simplified RTX-51/251 Application..............................5
Compiling and Linking the Program .................................................................. 6
Extract from the MAP file generated by BL51/L251........................................... 7
Debugging the Program...................................................................................... 8
Chapter 2. Installation...................................................................................11
Software Requirements .......................................................................................... 11
Backing Up Your Disks ......................................................................................... 11
Installing the Software........................................................................................... 12
Directory Structure ................................................................................................12
Chapter 3. Programming Concepts...............................................................15
Task Management .................................................................................................15
Task States....................................................................................................... 15
Task Switching................................................................................................. 16
Task Classes..................................................................................................... 17
Task Declaration .............................................................................................. 20
Interrupt Management ........................................................................................... 22
Methods for Interrupt Handling........................................................................ 23
Handling of the 8051/MCS 251 Interrupt Enable Register................................ 25
Handling of the 8051/MCS 251 Interrupt Priority Register............................... 26
Declaration of C51/C251 Interrupt Functions ................................................... 26
Task Communication............................................................................................. 27
Signals ............................................................................................................. 27
Mailboxes......................................................................................................... 28
Semaphores...................................................................................................... 30
Dynamic Memory Management............................................................................. 31
Generate Memory Pool..................................................................................... 32
Request Memory Block from Pool ....................................................................32
Return Memory Block to Pool........................................................................... 32
Time Management................................................................................................. 32
Set Time Slice.................................................................................................. 33
Delay a Task ....................................................................................................33
Cyclic Task Activation ..................................................................................... 33
Specific C51/C251 Support.................................................................................... 33
剩余285页未读,继续阅读
资源评论
- thrawsnow2013-03-16正准备结束裸奔时代,先收藏了,谢谢
- DOCAICSD2013-07-19看keil帮助可能会更好一点
twxbtx
- 粉丝: 14
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功