Samsung KS57C2308 Manual page 159

Single-chip cmos microcontroller
Table of Contents

Advertisement

KS57C2308/P2308/C2316/P2316
SRB
— Select Register Bank
SRB
n
Operation:
Operand
Description:
The SRB instruction selects one of four register banks in the working register memory area. The
constant value used with SRB is 0, 1, 2, or 3. The following table shows the effect of SRB
settings:
ERB Setting
NOTE: "x" = not applicable.
The enable register bank flag (ERB) must always be set for the SRB instruction to execute
successfully for register banks 0, 1, 2, and 3. In addition, if the ERB value is logic zero, register
bank 0 is always selected, regardless of the SRB value.
Operand
Example:
If the ERB flag is set, the instruction
SRB
selects register bank 3 (018H–01FH) as the working memory register bank.
n
Select register bank
3
0
0
1
0
n
1
1
0
0
1
0
3
Operation Summary
SRB Settings
2
1
0
x
0
0
0
1
1
Binary Code
1
1
1
0
1
0
0
d1
SAM47 INSTRUCTION SET
Bytes
Selected Register Bank
0
x
Always set to bank 0
0
Bank 0
1
Bank 1
0
Bank 2
1
Bank 3
Operation Notation
1
SRB
n (n = 0, 1, 2, 3)
d0
Cycles
2
2
5-85

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents