Renesas M3T-MR100 Manual de usuario Pagina 29

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 304
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 28
- 15 -
3.2.1 Service Call Processing
When a service call is issued, processing takes place in the following sequence.
6
1. The current register contents are saved.
2. The stack pointer is changed from the task type to the real-time OS (system) type.
3. Processing is performed in compliance with the request made by the service call.
4. The task to be executed next is selected.
5. The stack pointer is changed to the task type.
6. The register contents are recovered to resume task execution.
The flowchart in Figure 3.10 shows the process between service call generation and task switching.
Key input Task
Service call issuance
Register Save
SP
<=
OS
Processing
Task Selection
Task => SP
Register Restore
LED illumination Task
Figure 3.10 Service Call Processing Flowchart
6
A different sequence is followed if the issued service call does not evoke task switching.
Vista de pagina 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 303 304

Comentarios a estos manuales

Sin comentarios