Professional Documents
Culture Documents
MicroC2 eCH04L3dataTrInst
MicroC2 eCH04L3dataTrInst
Destination Source
Rn A
Source
Destination
A Rn
Source
Destination
direct A or Rn
Bank 3
8051 Bank 2
Bank 1 Direct addressed
Bank 0 SFR 80H-FFH or
Internal RAM
between 00H-
7FH
2011 Microcontrollers-... 2nd Ed. Raj Kamal 12
Pearson Education
An SFR or Internal RAM between
00H-7FH
Source
Destination
A or Rn direct
Direct
8051 addressed Direct
SFR or addressed SFR
Internal or Internal
RAM RAM between
between 00H-7FH
00H-7FH
2011 Microcontrollers-... 2nd Ed. Raj Kamal 16
Pearson Education
Instruction Execution 2 clock
STEP 1 Fetch cycles
opcode-bits
STEP 2 Fetch direct
Time
STEP 3 Fetch direct
both the operands using direct addressing
modes
Source
Destination
A or direct Address
pointed by
R0 or R1
8051 Indirect
SFR direct
addressed
addressed
Internal
between 80H-
RAM
8FH or A
between
register
00H-FFH
Source
Destination
Address A or direct
pointed
by R0 or
R1
2011 Microcontrollers-... 2nd Ed. Raj Kamal 22
Pearson Education
A or direct
4 R0 or R1
Bank 3 1
8051 2 3
Bank 2
Bank 1
Pointed address
Bank 0
Internal RAM
between 00H-
FFH
2011 Microcontrollers-... 2nd Ed. Raj Kamal 23
Pearson Education
Instruction Execution 1 or 2
Fetch clock
STEP 1 opcode-bits cycle(s)
2nd Byte of
A register
instruction
8051 Rn (R0 or
R1 or ...R6
2nd Byte of
or R7) at
instruction
Bank 0 or
1or 2 or 3
direct
8051 address
internal
2nd Byte of
RAM 00H-
instruction
7FH or
SFR 80H-
FFH
2011 Microcontrollers-... 2nd Ed. Raj Kamal 31
Pearson Education
MOV direct,#data 2 clock
Fetch opcode and cycles
For moving then bytes
08H into direct for getting the
operands Time
Codes in
MOV direct, #08H
Memory-
75H, 00H-
Sign # specifies that 08H is the
FFH, 08H
immediate succeeding byte is the
operand
2011 Microcontrollers-... 2nd Ed. Raj Kamal 32
Pearson Education
Destination Direct Addressing clock
Fetch byte(s) cycle (s)
STEP 2
after the
opcode Time
Addressing mode specifies that fetch
byte(s) (next to the opcode of 8 bits)
specify an address, destination operand is
at that address.
indirect
8051 address
internal
2nd Byte of
RAM 00H-
instruction
FFH
pointed by
R0 or R1
2011 Microcontrollers-... 2nd Ed. Raj Kamal 34
Pearson Education
MOV @Ri,#data 1 clock
For moving Fetch opcode cycle
08H into and then bits
indirect for getting the Time
operands
SFR (80H-FFH)
8051 2
Direct address Increment SP
SFR or Move the byte to SP
internal 00- pointed address 3
7FH RAM
SP is of 8-bits
Push direct
8051
Direct Move the byte to
address SFR SP pointed address
or internal and decrement SP 4
00-7FH RAM
SP is of 8-bits
Pop direct
Source
Destination
stack direct
Pre-increment SP
direct stack
Post-decrement SP
SFR (80H-FFH)
SFR (80H-FFH)