Friday, 12 June 2020

Program development process &tools in 8051 micro-controller

✏️Program development process &tools in 8051 micro-controller

๐Ÿ“ŒPROGRAMMING LAUNGUAGE 
๐Ÿ‘‰Programming means developing a sequence of commands(or instructions) that can be used by computer system to perform a predefined task.
๐Ÿ‘‰It also involves trouble shooting or debugging of instruction sequence to ensure that the desired operation is performed.
๐Ÿ‘‰There three types of programming languages:
๐Ÿ’กMachine Language
๐Ÿ’กAssembly Language 
๐Ÿ’กHigh Level Language


✏️ASSEMBLY LANGUAGE STRUCTURES

๐Ÿ‘‰An assembly language program statement consists of three fields: Labels, instructions and comments.
๐Ÿ‘‰[LABEL:]          INSTRUCTION      [//COMMENTS]
๐Ÿ‘‰Brackets show that the field is optional and may not be present in all statements.


✏️LABEL

๐Ÿ‘‰The label assigns a name to a memory location or a program statement.
๐Ÿ‘‰It must be followed by the colon symbol ”:”.
๐Ÿ‘‰While using label as a part of an instruction the colon symbol should not be used.
๐Ÿ‘‰The name of any register or an instruction of a microcontroller cannot be used as a label.
๐Ÿ‘‰For example: DPTR, DPL, MOV Etc.


✏️INSTRUCTIONS

๐Ÿ‘‰Each Instruction has two parts:
๐Ÿ‘‰One is operation to be performed called as operation code( OP-CODE)(Mnemonic)
For Example: ADD,MOV, INC etc

๐Ÿ‘‰The second part is data on which operation is to be performed called as operands.

๐Ÿ‘‰There two types of operands:
➡️Source operand
➡️Destination Operand
๐Ÿ‘‰The operands can be specified in many ways: It may be 8 bit data, 16bit data, an internal register, a memory location or 8bit(or 16 bit) ADDRESS.


✏️INSTRUCTION SIZE

๐Ÿ‘‰The number of bytes required to represent an instruction in a machine language is called instruction size.
๐Ÿ‘‰There are one two or three bytes instructions in 8051.

No comments:

Post a Comment

If you have any doubts or clarification you need in my blog topics, I would ๐Ÿ’ฏ try to clear it in an efficient manner as possible. I will also accept your suggestions.

๐Ÿ’‍♂️ARTIFICIAL SUN CREATED BY CHINA ๐Ÿ‘ˆ

๐ŸŒž ARTIFICIAL SUN MADE BY CHINA ๐ŸŒž ☀️China successfully powered up its “artificial sun” nuclear fusion reactor for the first ti...