KS57C2308/P2308/C2316/P2316
ADDRESSING MODES
3-3
EMB AND ERB INITIALIZATION VALUES
The EMB and ERB flag bits are set automatically by the values of the
RESET
vector address and the interrupt
vector address. When a
RESET
is generated internally, bit 7 of program memory address 0000H is written to the
EMB flag, initializing it automatically. When a vectored interrupt is generated, bit 7 of the respective vector
address table is written to the EMB. This automatically sets the EMB flag status for the interrupt service routine.
When the interrupt is serviced, the EMB value is automatically saved to stack and then restored when the
interrupt routine has completed.
At the beginning of a program, the initial EMB and ERB flag values for each vectored interrupt must be set by
using VENT instruction. The EMB and ERB can be set or reset by bit manipulation instructions (BITS, BITR)
despite the current SMB setting.
+
+
PROGRAMMING TIP — Initializing the EMB and ERB Flags
The following assembly instructions show how to initialize the EMB and ERB flag settings:
ORG
0000H
; ROM address assignment
VENT0
1,0,RESET
; EMB
←
1, ERB
←
0, branch RESET
VENT1
0,1,INTB
; EMB
←
0, ERB
←
1, branch INTB
VENT2
0,1,INT0
; EMB
←
0, ERB
←
1, branch INT0
VENT3
0,1,INT1
; EMB
←
0, ERB
←
1, branch INT1
VENT4
0,1,INTS
; EMB
←
0, ERB
←
1, branch INTS
VENT5
0,1,INTT0
; EMB
←
0, ERB
←
1, branch INTT0
RESET
•
•
•
BITR
EMB
Summary of Contents for KS57C2308
Page 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Page 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Page 170: ......
Page 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Page 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Page 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Page 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Page 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Page 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Page 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Page 318: ......
Page 320: ......
Page 322: ......
Page 325: ......
Page 327: ......