Справочник Пользователя для Renesas 70

Скачать
Страница из 162
Chapter 5 Detailed Applications 
   
- 81 - 
When the I flag before issuing a service call is 1 
When the I flag before issuing a service call is 0 
Service call issued 
service call processing 
I flag 
IPL 
system.IPL
system.IPL 
Service call issued 
service call processing 
I flag 
IPL 
system.IPL
system.IPL 
Task or
Handler 
Task or
Handler 
Task or 
Handler 
Task or 
Handler 
 
Figure 5.13 Interrupt control in a System Call that can be Issued from a Task-independent 
, the interrupt enable flag and IPL change in a service call.    For this reason, if you want to disable interrupts in a 
user application, Renesas does not recommend using the method for manipulating the interrupt disable flag and 
IPL to disable the interrupts. 
The following two methods for interrupt control are recommended: 
1.  Modify the interrupt control register (SFR) for the interrupt you want to be disabled. 
2.  Use service calls loc_cpu and unl_cpu. 
The interrupts that can be controlled by the loc_cpu service call are only the kernel(OS-dependent) 
interrupt. Use method 1 to control the non-kernel(OS-independent) interrupts.