Friday 1 April 2011

Assembly Language For AT89C51

A microcontroller reads data from its ports, then executes that data with appropriate instruction that be saved on its memory. Finally, a microcontroller emits the result of processed data to its ports (depends on the program).

All of microcontroller operation is appropriate to that code. The data code is interpreted as an instruction that be stored by microprocessor in a register, called the program counter.

The code is hex intel formatted. The program can be write as assembly language then compiled to hex file by assembler such as ASEM 51.

  • Instructions for Data Transfer
  • Instructions for Data Processing
  • Instructions for Program Flow Control
  • Interruptions Handling
  • Code Compiling


Instructions for Data Transfer

This instructions is used for data transfer from one register to another, include its ports.


Instructions for Data Processing

This instructions is used for data processing in specific register, such as arithmetic operation and logical operation.


Instructions for Program Flow Control

This instructions is used for controlling program flow, such as unconditional and conditional jump to another address.


Interruptions Handling

This instructions is used for interruption handling, such as timer, external and serial communication interrupt.

No comments: