ADDRESSING MODES
KS57C2308/P2308/C2316/P2316
3-8
4-BIT ADDRESSING
Table 3-3. 4-Bit Direct and Indirect RAM Addressing
Operand
Notation
Addressing Mode
Description
EMB Flag
Setting
Addressable
Area
Memory
Bank
Hardware I/O
Mapping
000H–07FH
Bank 0
–
DA
Direct: 4-bit address indicated
by the RAM address (DA) and
the memory bank selection
0
F80H–FFFH
Bank 15
All 4-bit
addressable
peripherals
1
000H–FFFH
SMB = 0, 1,15
(SMB = 15)
@HL
Indirect: 4-bit address indi-
cated by the memory bank
selection and register HL
0
000H–0FFH
Bank 0
–
1
000H–FFFH
SMB = 0, 1,
15
All 4-bit
addressable
peripherals
(SMB = 15)
@WX
Indirect: 4-bit address indi-
cated by register WX
x
000H–0FFH
Bank 0
–
@WL
Indirect: 4-bit address indi-
cated by register WL
x
000H–0FFH
Bank 0
NOTE
:
“x” means don’t care.
+
+
PROGRAMMING TIP — 4-Bit Addressing Modes
4-Bit Direct Addressing
1.
If EMB = "0":
ADATA EQU
46H
BDATA EQU
8EH
SMB
15
; Non-essential instruction, since EMB = "0"
LD
A,P3
; A
←
(P3)
SMB
0
; Non-essential instruction, since EMB = "0"
LD
ADATA,A
; (046H)
←
A
LD
BDATA,A
; (F8EH (LCON))
←
A
2.
If EMB = "1":
ADATA EQU
46H
BDATA EQU
8EH
SMB
15
LD
A,P3
; A
←
(P3)
SMB
0
LD
ADATA,A
; (046H)
←
A
LD
BDATA,A
; (08EH)
←
A
Содержание C2316
Страница 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Страница 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Страница 170: ......
Страница 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Страница 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Страница 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Страница 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Страница 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Страница 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Страница 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Страница 318: ......
Страница 320: ......
Страница 322: ......
Страница 325: ......
Страница 327: ......