1 / 8

Instruction Set of 8051 Microcontroller

Advanced features of this set of instruction range to increment, decrement and adjust decimal operations.<br><br>

Download Presentation

Instruction Set of 8051 Microcontroller

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Instruction Set of 8051 Microcontroller Let’s Explore!

  2. Agenda • Types of Instructions • Data transfer instructions. • Arithmetic instructions • Logical Instructions • Program Control Instructions • Bit manipulation instructions

  3. Types of Instructions in 8051 MC • Data transfer instructions. • Arithmetic instructions • Logical Instructions • Program Control Instructions • Bit manipulation instructions

  4. Data transfer instructions Data transfer instructions are used to transfer the data between registers, memory, and ports. This is a kind of data movement instruction, application of which performs movement of data from one location to other locations. Examples: • MOV destination, source. • XCH • XCHD • PUSH and POP

  5. Arithmetic instructions Arithmetic instructions of 8051 Microcontroller performs arithmetic operations like addition, subtraction, multiplication, and division. Advanced features of this set of instruction range to increment, decrement and adjust decimal operations. Examples: • ADD A, byte • SUBB A, byte • MUL AB • DIV AB • INC byte • DEC byte • DAA

  6. Logical Instructions The instruction performs logical operation between the source byte and destination byte. Example: • ANL destination, origin • ORL destination, origin • XRL destination, origin In case of Accumulator • CLR A • CPL A • SWAP A • RL A. • RLC A • A. RR. • A. RRC.

  7. Bit manipulation instructions Bit manipulation instructions are used to manipulate the value of specified bit. It either sets, resets or complement the value of the destination bit. For example: • CLR bit • SETB bit • CPL bit

  8. Thank You!

More Related