Samsung KS57C2308 Manual page 158

Single-chip cmos microcontroller
Table of Contents

Advertisement

SAM47 INSTRUCTION SET
SMB
— Select Memory Bank
SMB
n
Operation:
Description:
The SMB instruction sets the upper four bits of a 12-bit data memory address to select a specific
memory bank. The constants 0, n, and 15 are usually used as the SMB operand to select the
corresponding memory bank. All references to data memory addresses fall within the following
address ranges:
Please note that since data memory spaces differ for various devices in the SAM47 product
family, the "n" value of the SMB instruction will also vary.
Addresses
000H–01FH
020H–0FFH
n00H–7FFH
F80H–FFFH
The enable memory bank (EMB) flag must always be set to "1" in order for the SMB instruction to
execute successfully for memory banks 0–15.
Format
Example:
If the EMB flag is set, the instruction
SMB
selects the data memory address range for bank 0 (000H–0FFH) as the working memory bank.
5-84
Operand
n
Select memory bank
Working registers
Stack and general-purpose registers
General-purpose registers
I/O-mapped hardware registers
n
1
1
0
0
1
0
0
Operation Summary
Register Areas
Binary Code
1
1
1
0
0
d3
d2
d1
KS57C2308/P2308/C2316/P2316
Bytes
Bank
(n = 1–14)
Operation Notation
1
SMB
n
d0
Cycles
2
2
SMB
0
0
n
n
(n = 1–14)
15
15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents