UPD78323 NEC, UPD78323 Datasheet - Page 45

no-image

UPD78323

Manufacturer Part Number
UPD78323
Description
16/8-BIT SINGLE-CHIP MICROCONTROLLER
Manufacturer
NEC
Datasheet
4.3.2
instruction. When BRKCS instruction is executed, the register bank specified by the 3-bit immediate data is selected, the
vector address prestored in the register bank is set and branched to the PC, and the PC and PSW contents are saved into
the register bank.
The context switching function can be started by executing BRKCS instruction.
The context switched register bank is specified by the lower 3-bit immediate data of the 2nd operation code of BRKCS
Return is by means of executing the RETCSB instruction.
Context Switching Function by BRKCS Instruction
(BRKCS)
PSW
PC
Exchange
Figure 4-4. Context Switching by Execution of BRKCS Instruction
Save
OP CODE
RBANK n
OP CODE
A
B
R5
R7
D
H
N
(n = 0 – 7)
2
VP
UP
N
1
N
0
X
C
R4
R6
E
L
000
111
Register Bank Specification
RBANK0
RBANK7
Register
Banks
(0 to 7)
PD78323, 78324
45

Related parts for UPD78323