KS57C2308/P2308/C2316/P2316
VENT
— Load EMB, ERB, and Vector Address
VENTn
(Continued)
Example:
The instruction sequence
ORG
VENT0
VENT1
VENT2
•
•
•
VENT7
causes the program sequence to branch to the
and ERB to "0" when
causes the program to branch to the basic timer's interrupt service routine, INTA, and to set the
EMB value to "0" and the ERB value to "1". VENT2 then branches to INTB, VENT3 to INTC, and
so on, setting the appropriate EMB and ERB values.
Each interrupt service routine is executed according to the devices.
0000H
1,0,RESET
0,1,INTA
0,1,INTB
0,1,INTG
is activated. When a basic timer interrupt is generated, VENT1
RESET
routine labeled
RESET
"RESET
SAM47 INSTRUCTION SET
," setting EMB to "1"
5-89