Download 6 - Diversant Software
Transcript
18 Programming Concepts n A maximum of three fast tasks can be active in the system. Internal RAM External RAM Stack-Area for Normal-Tasks Stack-Area for Fast-Task 3 Stack-Area for Fast-Task 2 Stack-Area for Fast-Task 1 3 Normal-Task context Registerbank 3 for Fast-Task 3 Registerbank 2 for Fast-Task 2 Registerbank 1 for Fast-Task 1 Registerbank 0 for Normal-Tasks Normal-Task context Normal-Task context Figure 3: RTX-51 Task Classes and Memory Allocation RTX-51 Standard Tasks n Require somewhat more time for the task switching compared to fast tasks. n Share a common register bank and a common stack area (register bank 0). n The current contents of registers and stack are stored in the external (XDATA) memory during a task change. n Can be interrupted by fast tasks. n Can interrupt themselves mutually. n Can be interrupt by C51 interrupt functions. n A maximum 16 standard tasks can be active in the system.