KS57C2308/P2308/C2316/P2316
ADDRESSING MODES
3-7
+
+
PROGRAMMING TIP — 1-Bit Addressing Modes
1-Bit Direct Addressing
1.
If EMB = "0":
AFLAG EQU
34H.3
BFLAG EQU
85H.3
CFLAG EQU
0BAH.0
SMB
0
BITS
AFLAG
; 34H.3
←
1
BITS
BFLAG
; F85H.3
←
1
BTST
CFLAG
; If FBAH.0 = 1, skip
BITS
BFLAG
; Else if, FBAH.0 = 0, F85H.3 (BMOD.3)
←
1
BITS
P3.0
; FF3H.0 (P3.0)
←
1
2.
If EMB = "1":
AFLAG EQU
34H.3
BFLAG EQU
85H.3
CFLAG EQU
0BAH.0
SMB
0
BITS
AFLAG
; 34H.3
←
1
BITS
BFLAG
; 85H.3
←
1
BTST
CFLAG
; If 0BAH.0 = 1, skip
BITS
BFLAG
; Else if 0BAH.0 = 0, 085H.3
←
1
BITS
P3.0
; FF3H.0 (P3.0)
←
1
1-Bit Indirect Addressing
1.
If EMB = "0":
AFLAG EQU
34H.3
BFLAG EQU
85H.3
CFLAG EQU
0BAH.0
SMB
0
LD
H,#0BH
; H
←
#0BH
BTSTZ
@H+CFLAG
; If 0BAH.0 = 1, 0BAH.0
←
0 and skip
BITS
CFLAG
; Else if 0BAH.0 = 0, FBAH.0
←
1
2.
If EMB = "1":
AFLAG EQU
34H.3
BFLAG EQU
85H.3
CFLAG EQU
0BAH.0
SMB
0
LD
H,#0BH
; H
←
#0BH
BTSTZ
@H+CFLAG
; If 0BAH.0 = 1, 0BAH.0
←
0 and skip
BITS
CFLAG
; Else if 0BAH.0 = 0, 0BAH.0
←
1
Summary of Contents for KS57C2308
Page 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Page 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Page 170: ......
Page 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Page 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Page 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Page 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Page 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Page 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Page 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Page 318: ......
Page 320: ......
Page 322: ......
Page 325: ......
Page 327: ......