iv
List of Figures
Figure 3.1 Relationship between Program Size and Development Period...................................- 10 -
Figure 3.2 Microcomputer-based System Example(Audio Equipment) .......................................- 11 -
Figure 3.3 Example System Configuration with Real-time OS(Audio Equipment) ....................- 12 -
Figure 3.4 Time-division Task Operation.......................................................................................- 13 -
Figure 3.5 Task Execution Interruption and Resumption ............................................................- 13 -
Figure 3.6 Task Switching ...............................................................................................................- 14 -
Figure 3.7 Task Register Area.........................................................................................................- 15 -
Figure 3.8 Actual Register and Stack Area Management .............................................................- 15 -
Figure 3.9 Service call......................................................................................................................- 16 -
Figure 3.10 Service Call Processing Flowchart..............................................................................- 17 -
Figure 3.11 Task Identification .......................................................................................................- 18 -
Figure 3.12 Task Status...................................................................................................................- 19 -
Figure 3.13 MR308 Task Status Transition ...................................................................................- 20 -
Figure 3.14 Ready Queue (Execution Queue) ................................................................................- 23 -
Figure 3.15 Waiting queue of the TA_TPRI attribute ...................................................................- 24 -
Figure 3.16 Waiting queue of the TA_TFIFO attribute.................................................................- 24 -
Figure 3.17 Task control block ........................................................................................................- 26 -
Figure 3.18 Cyclic Handler/Alarm Handler Activation .................................................................- 28 -
Figure 3.19 MR308 Structure..........................................................................................................- 30 -
Figure 3.20 Task Resetting..............................................................................................................- 32 -
Figure 3.21 Alteration of task priority............................................................................................- 33 -
Figure 3.22 Task rearrangement in a waiting queue ....................................................................- 33 -
Figure 3.23 Wakeup Request Storage.............................................................................................- 34 -
Figure 3.24 Wakeup Request Cancellation.....................................................................................- 34 -
Figure 3.25 Forcible wait of a task and resume.............................................................................- 35 -
Figure 3.26 Forcible wait of a task and forcible resume................................................................- 35 -
Figure 3.27 dly_tsk service call .......................................................................................................- 36 -
Figure 3.28 Exclusive Control by Semaphore ................................................................................- 37 -
Figure 3.29 Semaphore Counter .....................................................................................................- 37 -
Figure 3.30 Task Execution Control by Semaphore.......................................................................- 38 -
Figure 3.31 Task Execution Control by the Eventflag...................................................................- 40 -
Figure 3.32 Data queue ...................................................................................................................- 41 -
Figure 3.33 Mailbox .........................................................................................................................- 42 -
Figure 3.34 Message queue .............................................................................................................- 43 -
Figure 3.35 Memory Pool Management..........................................................................................- 44 -
Figure 3.36 pget_mpl processing.....................................................................................................- 46 -
Figure 3.37 rel_mpl processing .......................................................................................................- 46 -
Figure 3.38 Timeout Processing......................................................................................................- 47 -
Figure 3.39 Cyclic handler operation in cases where the activation phase is saved...................- 49 -
Figure 3.40 Cyclic handler operation in cases where the activation phase is not saved.............- 49 -
Figure 3.41 Typical operation of the alarm handler ......................................................................- 50 -
Figure 3.42 Ready Queue Management by rot_rdq System Call..................................................- 51 -
Figure 3.43 Interrupt process flow..................................................................................................- 52 -
Figure 4.1 MR308 System Generation Detail Flowchart ..............................................................- 61 -
Figure 4.2 Program Example ..........................................................................................................- 63 -
Figure 4.3 Configuration File Example ..........................................................................................- 64 -
Figure 4.4 Configurator Execution .................................................................................................- 65 -
Figure 4.5 System Generation.........................................................................................................- 65 -
Figure 5.1 Example Infinite Loop Task Described in C Language ...............................................- 68 -