NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
172
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
In contrast with the software priority scheme, the Vector provides a quicker method to reach the
interrupt service routine. The branch address can be easily got that adds Vector to the base of
interrupt service routine table. Figure 13-4 shows an example assembly code.
Figure 13-4 Interrupt Service Routine with Vector
STMFD SP!, {R0-R2} ; Push registers on stack
;Goto_Handler, jump to the correct handler
LDR R2, =AICBase
LDR R1, [R2,#AIC_IPER] ; gets the highest pending
vector
LDR PC, [PC, R1] ; jump to correct handler
NOP
;table of handler start address
DCD Fake_Interrupt
DCD Int1_Interrupt
DCD Int2_Interrupt
DCD Int3_Interrupt
DCD Int4_Interrupt
DCD Int5_Interrupt
DCD Int6_Interrupt
DCD Int7_Interrupt
DCD Int8_Interrupt
DCD Int9_Interrupt
DCD Int10_Interrupt
DCD Int11_Interrupt
DCD Int12_Interrupt
DCD Int13_Interrupt
DCD Int14_Interrupt
DCD Int15_Interrupt
DCD Int16_Interrupt
DCD Int17_Interrupt
DCD Int18_Interrupt
DCD Int19_Interrupt
DCD Int20_Interrupt
DCD Int21_Interrupt
DCD Int22_Interrupt
DCD Int23_Interrupt
DCD Int24_Interrupt
DCD Int25_Interrupt
DCD Int26_Interrupt
DCD Int27_Interrupt
DCD Int28_Interrupt
DCD Int29_Interrupt
DCD Int30_Interrupt
DCD Int31_Interrupt