EasyManua.ls Logo

Intel MCS 51 - Page 98

Intel MCS 51
334 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...
i~e
M(3@-51 PROGRAMMER~SGUIDE AND INSTRUCTION SET
SETB <bit>
Function:
Example:
SETB C
Bytes:
cycles:
Encoding:
Operation:
SETB bit
Bytes:
cycles:
Encoding:
Operation:
SetBit
SETB sets the indicatedbit to one. SETB can operate on the carry flag or any directly
addressablebit. No other flagsare affected.
Thecarry flagis clesred.OutputPort 1hasbeenwrittenwiththe value34H(OO11O1OOB).The
instructions,
SETE C
SETB PI.O
willleavethe carry tlag set to 1and changethe data output on Port 1to 35H(OO11O1O1B).
1
1
11101 10011 I
SETB
(c) + 1
2
1
1101
100101 EiEEl
SETB
(bit)+ 1
2-68

Table of Contents

Related product manuals