EasyManua.ls Logo

Atmel 8051 - Page 48

Atmel 8051
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The 8051 Instruction Set
1-47 Atmel 8051 Microcontrollers Hardware Manual
4316B–8051–02/04
1.14.29 MOV <dest-bit>,<src-bit>
MOV @R
i
,direct
Bytes: 2
Cycles: 2
Encoding: 1010011 i direct addr.
Operation: MOV
((R
i
)) (direct)
MOV @R
i
,#data
Bytes: 2
Cycles: 1
Encoding: 0111011 i immediate data
Operation: MOV
((R
i
)) #data
Function: Move bit data
Description: MOV <dest-bit>,<src-bit> copies the Boolean variable indicated by the second operand into the location
specified by the first operand. One of the operands must be the carry flag; the other may be any directly
addressable bit. No other register or flag is affected.
Example: The carry flag is originally set. The data present at input Port 3 is 11000101B. The data previously written to
output Port 1 is 35H (00110101B).
MOV P1.3,C
MOV C,P3.3
MOV P1.2,C
leaves the carry cleared and changes Port 1 to 39H (00111001B).
MOV C,bit
Bytes: 2
Cycles: 1
Encoding: 10100010 bit address
Operation: MOV
(C) (bit)
MOV bit,C
Bytes: 2
Cycles: 2
Encoding: 10010010 bit address
Operation: MOV
(bit) (C)

Related product manuals