s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 145

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
BTSTZ —
BTSTZ
Operation:
Description:
Examples:
1. Port pin P2.0 is toggled by checking the P2.0 value (level):
2. Assume that port pins P2.2, P2.3 and P3.0–P3.3 are toggled:
dst.b
The specified bit within the destination operand is tested. If it is a "1", the instruction immediately
following the BTSTZ instruction is skipped; otherwise the instruction following the BTSTZ is
executed. The destination bit value is cleared.
memb.@L
@H+DA.b
memb.@L
*
@H+DA.b
Operand
mema.b
Operand
BP2
Bit Test and Skip on True; Clear Bit
mema.b
mema.b
BTSTZ
BITS
JP
LD
BTSTZ
RET
INCS L
JR
*
Test specified bit; skip and clear if memory bit is set
1
1
0
1
0
1
1
1
1
1
1
0
0
1
P2.0
P2.0
LABEL3
L,#0AH
P0.@L
BP2
b1
b1
b1
1
1
0
1
Second Byte
Binary Code
Operation Summary
b0
b0
b0
1
1
0
1
; If P2.0 = "1", then P2.0
; If P2.0 = "0", then P2.0
; First, P0.@0AH = P2.2
; (111100B) + 10B.10B = 0F2H.2
a5
a3
a3
a3
1
1
1
a4
a2
a2
a2
1
1
1
a3
a1
a1
a1
0
0
0
a2
a0
a0
a0
1
1
1
Skip if mema.b = 1 and clear
Skip if [memb.7–2 + L.3–2].
[L.1–0] = 1 and clear
Skip if [H + DA.3–0].b =1 and clear
FB0H–FBFH
FF0H–FFFH
Operation Notation
"0" and skip
"1"
Bit Addresses
SAM47 INSTRUCTION SET
Bytes
2
2
2
Cycles
2 + S
2 + S
2 + S
5-41

Related parts for s3c72m9