KS57C2308/P2308/C2316/P2316

SAM47 INSTRUCTION SET

 

 

VENT — Load EMB, ERB, and Vector Address

VENTn (Continued)

Example: The instruction sequence

ORG 0000H VENT0 1,0,RESET VENT1 0,1,INTA VENT2 0,1,INTB

VENT7 0,1,INTG

causes the program sequence to branch to the RESET routine labeled “RESET,” setting EMB to "1" and ERB to "0" when RESET is activated. When a basic timer interrupt is generated, VENT1 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.

5-89

Page 163
Image 163
Samsung KS57C2308 manual VENTn Example The instruction sequence