8051 ISA
8051 ISA
INSTRUCTION SET
read/write operations are controlled by the oscillator
clock.
T-state, Machine cycle and Instruction cycle are
terms used in instruction timings.
T-state is defined as one subdivision of the
operation performed in one clock period.
The terms 'Tstate' and 'clock period' are often used
synonymously.
Machine cycle is defined as 12 oscillator
periods.
A machine cycle consists of six states and each
state lasts for two oscillator periods or 2 Tstates.
An instruction takes one to four machine
cycles to execute an instruction.
Instruction cycle is defined as the time required for
completing the execution of an instruction.
The 8051-instruction cycle consists of one to four
AN EXAMPLE
If 8051 microcontroller is operated with 12 MHz oscillator, find the
execution time for the following four instructions.
1. ADD A, 45H 2. SUBB A, #55H 3. MOV DPTR, #2000H
4. MUL AB
Since the oscillator frequency is 12 MHz, the clock period is, Clock period =
1/12 MHz = 0.08333 µS. Time for 1 machine cycle = 0.08333 µS x 12 =1 µS.
Instruction No. of machine cycles Execution time
1. ADD A, 45H 1 1 µs
2. SUBB A, #55H 2 2 µs
3. MOV DPTR, #2000H 2 2 µs
4. MUL AB 4 4 µs
8051 INSTRUCTIONS
The instructions of 8051 can be broadly classified under the
following headings.
1. Data transfer instructions
2. Arithmetic instructions
3. Logical instructions
4. Branch instructions
5. Subroutine instructions
6. Bit manipulation instructions
DATA TRANSFER
INSTRUCTIONS
In this group, the instructions perform data transfer operations of the
following types.
a. Move the contents of a register Rn to A
i. MOV A,R2 ii. MOV A,R7