Boolean Operations This group of instructions is associated with the single-bit operations of the 8051. This group allows manipulating the individual bits.

Slides:



Advertisements
Similar presentations
4/10/2007ESD,USIT,GGSIPU1 I/O Port Programming Port 1 pins 1-8 Port 1 is denoted by P1. –P1.0 ~ P1.7 We use P1 as examples to show the operations on ports.
Advertisements

Embedded Software 1. General 8051 features (excluding I/O) CPU 8 bit microcontroller The basic registers include (more discussed later) The 8-bit A (accumulator)
Week4. Program Branching  From what we have covered so far, our assembly programs execute one instruction after another in sequence  Programs that solve.
Chapter 3 INSTRUCTION SET SUMMARY
Programming the 8051 Microcontroller Dr. Konstantinos Tatas
Week10 Boolean Instructions on the Boolean Instructions  Boolean (or Bit) addressable capability is unique to the 8051  Enables efficient handling.
Chapter 8 Single-bit Instructions and Programming
1 Chapter 3 Jump, Loop, and Call Instructions. 2 Sections 3.1 Loop and Jump Instructions 3.2 Call Instructions 3.3 Time Delay Generation and Calculation.
Msc. Ivan A. Escobar Broitman Microprocessors 1 1 The 8051 Instruction Set.
ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS
8051 ASSEMBLY LANGUAGE PROGRAMMING
Microcontroller Intel 8051
MICROCONTROLLER INSTRUCTION SET
Lecture Instruction Set.
Numerical Bases Used in Programming Hexadecimal Binary BCD.
CoE3DJ4 Digital Systems Design Chapter 3: instruction set summary.
Prof. Cherrice TraverEE/CS-152: Microprocessors and Microcontrollers The 8051 Assembly Language.
CIT 673 Created by Suriyong1 MCS51 ASSEMBLY Language Resources
MICROCONTROLLERS 8051.
University Of Engineering And Technology Taxila REF::NATIONAL TAIWANOCEAN UNIVERSITY 國立台灣海洋大學 Chapter 3 JUMP, LOOP and CALL Instructions.
The 8051 Assembly Language Branching & Subroutines
Prof. Cherrice TraverEE/CS-152: Microprocessors and Microcontrollers The 8051 Assembly Language.
The 8051 Microcontroller and Embedded Systems
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 8.
CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS.
Assembly Language Programming of 8085 BY Prof. U. V. THETE Dept. of Computer Science YMA.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Type of addressing mode
Serial I/O Port.
Unit 1 Instruction set M.Brindha AP/EIE
Classification of Instruction Set of 8051
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
ICS312 SET 7 Flags.
Lecture Set 5 The 8051 Instruction Set.
Introduction to 8085 Instructions
ECE,JYOTHI ENGG COLLEGE
Lecture Instruction Set.
EE3541 Introduction to Microprocessors
More on logical instruction and
The 8051 Family Microcontroller
Data Processing Instructions
CS-401 Assembly Language Programming
Memory Organisation Source: under
SCHOOL OF ELECTRONICS ENGINEERING Electronics and Communication
The 8051 Assembly Language Arithmetic & Logic Instructions
8051 Single Board Computer (SBC) Version 1.0
Timer.
(Electrical Engg 6th Semester)
Branching Instructions
Introduction to Micro Controllers & Embedded System Design Instruction set Department of Electrical & Computer Engineering Missouri University of Science.
Source: Motor Source:
Detailed Review of the 8085 Instruction Set.
Microcontroller 8051 Made By: Arun Branch. 4th Sem. I&C Engg.
Conditional Jumps and Time Delays
Introduction to Micro Controllers & Embedded System Design Instruction set Department of Electrical & Computer Engineering Missouri University of Science.
Conditional Jumps and Time Delays
DMT 245 Introduction to Microcontroller
First Design Key board R L S.
Conditional Jumps and Time Delays
University of Gujrat Department of Computer Science
Logical Operations ANL / ORL
Source: Motor Source:
8051 ASSEMBLY LANGUAGE PROGRAMMING
ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS
Instruction Set Summary
PROCESSORS & CONTROLLERS
Presentation transcript:

Boolean Operations This group of instructions is associated with the single-bit operations of the 8051. This group allows manipulating the individual bits of bit addressable registers and memory locations as well as the CY flag. The P, OV, and AC flags cannot be directly altered. This group includes: Set, clear, and, or complement, move. Conditional jumps. 8-Nov-18 Micro 8051

Boolean Operations CLR SETB CPL Clear a bit or the CY flag. CLR P1.1 CLR C SETB Set a bit or the CY flag. SETB A.2 SETB C CPL Complement a bit or the CY flag. CPL 40H ; Complement bit 40 of the bit addressable memory Micro 8051 8-Nov-18

Boolean Operations ORL / ANL MOV OR / AND a bit with the CY flag. ORL C, 20H ; OR bit 20 of bit addressable memory with the CY flag ANL C, /34H ; AND complement of bit 34 of bit addressable memory with the CY flag. MOV Data transfer between a bit and the CY flag. MOV C, 3FH ; Copy the bit 3F of the bit addressable memory to CY flag . MOV P1.2, C ; Copy the CY flag to bit 2 of P1. 8-Nov-18 Micro 8051

Boolean Operations JC / JNC JB / JNB JBC Jump to a relative address if CY is set / cleared. JB / JNB Jump to a relative address if a bit is set / cleared. JB ACC.2, <label> JBC Jump to a relative address if a bit is set and clear the bit. Micro 8051 8-Nov-18

Boolean Operations CLR C Clear carry flag 1 1 CLR bit Clear direct bit 2 1 SETB C Set carry flag 1 1 SETB bit Set direct bit 2 1 CPL C Complement carry flag 1 1 CPL bit Complement direct bit 2 1 ANL C, bit AND direct bit to carry flag 2 2 ANL C,/bit AND complement of direct bit to carry 2 2 ORL C, bit OR direct bit to carry flag 2 2 ORL C,/bit OR complement of direct bit to carry 2 2 MOV C, bit Move direct bit to carry flag 2 1 MOV bit, C Move carry flag to direct bit 2 2 8-Nov-18 Micro 8051