Skip to Main Content
8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
book

8051 Microcontroller (Internals, Instructions, Programming and Interfacing)

by Subrata Ghosal
May 2024
Intermediate to advanced content levelIntermediate to advanced
503 pages
17h 2m
English
Pearson India
Content preview from 8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
453
APPENDIX C
MCS®-51 PROGRAMMER’S GUIDE AND INSTRUCTION SET
SETB <bit>
Function: Set Bit
Description: SETB sets the indicated bit to one. SETB can operate on the carry f lag or any directly
addressable bit. No other f lags are aff ected.
Example: e carry f lag is cleared. Output Port 1 has been written with the value 34H
(00110100B).  e instructions,
SETB C
SETB P1.0
will leave the carry f lag set to 1 and change the data output on Port 1 to 35H
(00110101B).
SETB C
Bytes: 1
Cycles: 1
Encoding: 1 1 0 1 0 0 1 1
Operation: SETB
(C) 1
SETB bit
Bytes: 2
Cycles: 1
Encoding: 1 1 0 1 0 0 1 0
bit address
Operation: SETB
(bit) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

Subrata Ghoshal

Publisher Resources

ISBN: 9781282655034Publisher Website