Samsung KS57C2308 Manual page 26

Single-chip cmos microcontroller
Table of Contents

Advertisement

ADDRESS SPACES
EMB FLAG (EMB)
The EMB flag is used to allocate specific address locations in the RAM by modifying the upper 4 bits of 12-bit
data memory addresses. In this way, it controls the addressing mode for data memory banks 0, 1 or 15.
When the EMB flag is "0", the data memory address space is restricted to bank 15 and addresses 000H–07FH of
memory bank 0, regardless of the SMB register contents. When the EMB flag is set to "1", the general-purpose
areas of bank 0, 1 and 15 can be accessed by using the appropriate SMB value.
+ +
PROGRAMMING TIP — Using the EMB Flag to Select Memory Banks
EMB flag settings for memory bank selection:
1. When EMB = "0":
SMB
LD
LD
LD
SMB
LD
LD
SMB
LD
LD
2. When EMB = "1":
SMB
LD
LD
LD
SMB
LD
LD
SMB
LD
LD
2-18
1
A,#9H
90H,A
34H,A
0
90H,A
34H,A
15
20H,A
90H,A
1
A,#9H
90H,A
34H,A
0
90H,A
34H,A
15
20H,A
90H,A
; Non-essential instruction since EMB = "0"
; (F90H)
A, bank 15 is selected
; (034H)
A, bank 0 is selected
; Non-essential instruction since EMB = "0"
; (F90H)
A, bank 15 is selected
; (034H)
A, bank 0 is selected
; Non-essential instruction, since EMB = "0"
; (020H)
A, bank 0 is selected
; (F90H)
A, bank 15 is selected
; Select memory bank 1
; (190H)
A, bank 1 is selected
; (134H)
A, bank 1 is selected
; Select memory bank 0
; (090H)
A, bank 0 is selected
; (034H)
A, bank 0 is selected
; Select memory bank 15
; Program error, but assembler does not detect it
; (F90H)
A, bank 15 is selected
KS57C2308/P2308/C2316/P2316

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents