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
Содержание 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: ......