KS57C2308/P2308/C2316/P2316
ADDRESS SPACES
2-21
+
+
PROGRAMMING TIP — Using the Carry Flag as a 1-Bit Accumulator
1.
Set the carry flag to logic one:
SCF
; C
←
1
LD
EA,#0C3H
; EA
←
#0C3H
LD
HL,#0AAH
; HL
←
#0AAH
ADC
EA,HL
; EA
←
#0C3H + #0AAH + #1H, C
←
1
2.
Logical-AND bit 3 of address 3FH with P3.3 and output the result to P4.0:
LD
H,#3H
; Set the upper four bits of the address to the H register
value
LDB
C,@H+0FH.3
; C
←
bit 3 of 3FH
BAND
C,P3.3
; C
←
C AND P3.3
LDB
P4.0,C
; Output result from carry flag to P4.0
Summary of Contents for C2316
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: ......