Download USER`S MANUAL

Transcript
SAM48 INSTRUCTION SET
S3C72K8/P72K8
BITS — Bit Set
BITS
(Continued)
Examples:
3.
For setting P0.2, P0.3, and P1.0-P1.3 to "1":
BP2
4.
5-34
L,#2H
P0.@L
INCS
CPSE
JR
L
L,#8H
BP2
; First, P0.@2H = P0.2
; (111100B) + 00B.10B = 0F0H.2
If bank 0, location 0A0H.0, is set to "1" and the EMB = "0", BITS has the following effect:
FLAG
NOTE:
LD
BITS
EQU
•
•
•
BITR
•
•
•
LD
BITS
0A0H.0
EMB
H,#0AH
@H+FLAG; Bank 0 (AH + 0H).0 = 0A0H.0 ← "1"
Since the BITS instruction is used for output functions, pin names used in the examples above may change for
different devices in the SAM48 product family.