Professional Documents
Culture Documents
COS II
Presented by
Vikram Inoli
09/02/15 03:01 PM
Micro-Controller Operatin
Overview of C/OS-II
C/OS-II is a highly portable, ROMable, very
scalable, preemptive real-time, deterministic,
multitasking kernel
It is ported to more than 100 microprocessors and
microcontrollers
It is simple to use and simple to implement but
very effective compared to the price/performance
ratio.
It supports all type of processors from 8 to 64 bit
Memory footprint is about 20KB for a fully
functional kernel.
Source code is about 5,500 lines, in ANSI C.
Its open source but not free for commercial
usages.
09/02/15 03:01 PM
Micro-Controller Operatin
Features of C/OS-II
Source code
Portable
ROMable
Preemptive
Multi-tasking
Deterministic
Task stacks
Services
Interrupt Management
Robust and reliable
09/02/15 03:01 PM
Micro-Controller Operatin
Cameras
Medical instruments
Engine control
Musical instruments
Network adapter
Highway telephone call box
ATM machine
Industrial robots
09/02/15 03:01 PM
Micro-Controller Operatin
MCU
AMD 80x86
Analog Device SHARC (AD21065L)
ARM ARM7
Atmel AVR, AT103
Fujitsu
SPARC
Hitachi
64180, H8-300H, H8S,SH2,SH3
Infineon
Tri.Core, 80C166/167
Intel Strong ARM110,80C251,XC52, 80x86,
196K
Motorola
M68HC08, M68HC11, M68HC12, M68HC16,
M68000, CPU32, DSP568xx, Cold.Fire,
M.Core, PowerPC8xx,MPC555
Philips
XA
ST
80C166/167
TI
TMS320-C40, TMS320-C6201
Automation
V8
Zilog Z-80, Z-180
09/02/15 03:01 PM
Micro-Controller Operatin
Task Management
Task Creation
Task Stack & Stack Checking
Task Deletion
Suspend and Resume a Task
Get Information about a Task
09/02/15 03:01 PM
Micro-Controller Operatin
Task Features
09/02/15 03:01 PM
Micro-Controller Operatin
09/02/15 03:01 PM
Micro-Controller Operatin
Task States
09/02/15 03:01 PM
Micro-Controller Operatin
Memory Management
The Memory management includes:
09/02/15 03:01 PM
Micro-Controller Operatin
Memory Management
09/02/15 03:01 PM
Micro-Controller Operatin
Time Management
Clock Tick: A clock tick is a periodic time
source to keep track of time delays and time
outs.
Tick intervals: 10 ~ 100 ms. The faster the
tick rate, the higher the overhead imposed on
the system.
When ever a clock tick occurs C/OS-II
increments a 32- bit counter.
The counter starts at zero, and rolls over to
4,294,967,295 (2^32-1) ticks.
A task can be delayed and a delayed task can
also be resumed
09/02/15 03:01 PM
Micro-Controller Operatin
Time Management
Five services:
OSTimeDLY()
OSTimeDLYHMSM()
OSTimeDlyResume()
OSTimeGet()
OSTimeSet()
09/02/15 03:01 PM
Micro-Controller Operatin
09/02/15 03:01 PM
Micro-Controller Operatin
voidTask(void*)
{
//Whatyouwishtodo;
//Whatelseyouwishtodo;
callOSservice();//e.g.OSTimeDelay,
//OSSemPend,etc.
OSTaskDelete();//AsktheOStodeletethetask
}
09/02/15 03:01 PM
Micro-Controller Operatin
Micro-Controller Operatin
References
MicroC/OS-II The Real-Time Kernel
Second Edition
Jean J. Labrosse
MicroC/OS-II e-book (1st edition)
Jean J. Labrosse
09/02/15 03:01 PM
Micro-Controller Operatin
Thank You
09/02/15 03:01 PM
Micro-Controller Operatin
Micro-Controller Operatin