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
This instructions is used for data transfer from one
register to another, include its ports.
This instructions is used for data processing in specific
register, such as arithmetic operation and logical operation.
This instructions is used for controlling program flow,
such as unconditional and conditional jump to another address.
This instructions is used for interruption handling, such
as timer, external and serial communication interrupt.
