AMX 86 User's Guide
K
A
DAK
iii
AMX 86 USER'S GUIDE
Table of Contents Page
Section 1: System Description
1. AMX Overview 1
1.1 Introduction ........................................................................................ 1
1.2 Glossary ............................................................................................. 3
1.3 AMX Nomenclature ........................................................................... 7
2. General AMX Operation 9
2.1 Introduction to Multitasking ............................................................... 9
2.2 AMX Operation ................................................................................. 11
2.3 AMX Managers .................................................................................. 17
2.4 Starting AMX ..................................................................................... 20
3. Application Tasks 25
3.1 Task Creation ..................................................................................... 25
3.2 Task States ......................................................................................... 27
3.3 Starting a Task .................................................................................... 29
3.4 Task Priority ....................................................................................... 30
3.5 Task Execution ................................................................................... 31
3.6 Task and Event Synchronization ........................................................ 32
3.7 Task Timing ....................................................................................... 34
3.8 Ending a Task ..................................................................................... 35
3.9 Message Passing ................................................................................. 36
3.10 Restart Procedures ............................................................................ 42
3.11 Exit Procedures ................................................................................ 44
3.12 Task Enhancements .......................................................................... 46
4. Interrupt Service Procedures 49
4.1 The Processor Interrupt Facility ......................................................... 49
4.2 ISPs for External Interrupts ................................................................ 51
4.3 Nested Interrupts ................................................................................ 56
4.4 ISP/Task Communication .................................................................. 57
4.5 Task Error Traps ................................................................................ 60
4.6 Non-Maskable Interrupt ..................................................................... 64
4.7 Special Interrupts ............................................................................... 65
4.8 Vector Table Initialization ................................................................. 68
5. AMX Timing Control 69
5.1 Introduction to Timing Facilities ........................................................ 69
5.2 AMX Clock Handler and Kernel Task ............................................... 71
5.3 Interval Timers and Timer Procedures ............................................... 75
5.4 Task Time Slicing .............................................................................. 79
5.5 Time/Date Manager ............................................................................ 82