摘要 |
PURPOSE: An interrupt processing method is provided to reduce a delay effect between interrupts though plural interrupts are used in one system when a CPU is controlled so that it can enhance a system performance. CONSTITUTION: The method comprises several steps. A system is initialized, and then a base process is performed(S200, S202). In a case that there occurs an interrupt while the base process is being performed, registers or data of peripherals are read by using an interrupt service routine, and an S value of an interrupt job routine within a base process is changed with a signal which increases the S value one by one(S204, S206). It is checked whether the S value is larger than zero(S208). If the S value is larger than zero, an interrupt job is performed by using an interrupt job routine within the base process(S210). If the interrupt job is finished, the S value is changed with a wait which decreases the S value one by one(S214, S216).
|