44/317
2 - How does a typical microcontroller work?
02-task
Common parts
of the program
Code of the
first task
Code of the
second task
Code of the
last task
Interrupt vector
table
Program memory
Stack RAM
Stack area
for task #1
Stack area
for task #2
Stack area
for the last task
2
3
1
4
Stack
pointer
1
2
3
4
Selection of the task : The stack pointer points to
the last data of the task to activate that is stored
in the stack.
Activation of the task : The popping of the data off
the stack restores the tasks as it was before being
unselected.
Deselection of the current task : The state of the pro-
gram is saved in the stack before it is deselected.
Selection of the following task : The stack pointer
points to the last data saved from the next tasks
to activate.
Working mechanism of a simplified multitasking kernel
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...