English
Language : 

AT89LP216_09 Datasheet, PDF (59/98 Pages) ATMEL Corporation – 8-bit Microcontroller with 2K Bytes Flash
AT89LP216
22. Instruction Set Summary
The AT89LP216 is fully binary compatible with the MCS-51 instruction set. The difference
between the AT89LP216 and the standard 8051 is the number of cycles required to execute an
instruction. Instructions in the AT89LP216 may take 1, 2, 3 or 4 clock cycles to complete. The
execution times of most instructions may be computed using Table 22-1.
Table 22-1. Instruction Execution Times and Exceptions
Generic Instruction Types
Cycle Count Formula
Most arithmetic, logical, bit and transfer instructions
# bytes
Branches and Calls
Single Byte Indirect (i.e. ADD A, @Ri, etc.)
# bytes + 1
2
RET, RETI
4
MOVC
3
MOVX
4
MUL
2
DIV
4
INC DPTR
2
Clock Cycles
Arithmetic
Bytes
8051
AT89LP
Hex Code
ADD A, Rn
ADD A, direct
1
12
2
12
1
28-2F
2
25
ADD A, @Ri
ADD A, #data
1
12
2
12
2
26-27
2
24
ADDC A, Rn
1
12
1
38-3F
ADDC A, direct
ADDC A, @Ri
2
12
1
12
2
35
2
36-37
ADDC A, #data
SUBB A, Rn
2
12
1
12
2
34
1
98-9F
SUBB A, direct
SUBB A, @Ri
2
12
1
12
2
95
2
96-97
SUBB A, #data
2
12
2
94
INC Rn
INC direct
1
12
2
12
1
08-0F
2
05
INC @Ri
1
12
2
06-07
INC A
DEC Rn
2
12
1
12
2
04
1
18-1F
DEC direct
DEC @Ri
2
12
1
12
2
15
2
16-17
DEC A
INC DPTR
MUL AB
2
12
2
14
1
24
2
A3
1
48
2
A4
DIV AB
DA A
1
48
4
84
1
12
1
D4
59
3621D–MICRO–10/09