摘要 |
PURPOSE: A method for controlling the interrupt stack of microprocessor is provided to enhance the interrupt error by forcibly changing the stack pointer position of a stack memory from the initial position to the preceding set address when the new interrupt is generating after the initial interrupt. CONSTITUTION: A method for controlling the interrupt stack of microprocessor comprises the steps of;initializing the microprocessor(210);deciding if the external interrupt is generated(220);performing the service interrupt routine when the external interrupt is generated(230);maintaining the enable state until the new external interrupt is generated(240). The step of performing the service interrupt routine(230) is composed the steps of;changing the stack point position to the jumped stack address without overlapping the value of register set to the address of the stack memory respectively with the new value, writing the subroutine state to the registers and storing the feedback address to the link register(232);branching to the absolute address to be performed at generating the interrupt and performing the interrupt subroutine(234);and moving the stack point to the initial position(236).
|