Chapter 3 Introduction to MR308
- 15 -
R0
PC
SP
Register
Key input
Task
Remote control
Task
Memory map
Stack
section
SFR
R0
PC
SP
R0
PC
SP
SP
LED illumination
Task
Real-time
OS
Figure 3.7 Task Register Area
Figure 3.8 shows the register and stack area of one task in detail. In the MR308, the register of each task is
stored in a stack area as shown in Figure 3.8. This figure shows the state prevailing after register storage.
Key input
Task
SP
FLG
R3
R2
A
0
A
1
PC
SB
FB
R1
R0
SFR
Key input task
stack
Register stored
Register not stored
SP
Figure 3.8 Actual Register and Stack Area Management