English
Language : 

EZ-USB Datasheet, PDF (289/334 Pages) Cypress Semiconductor – The EZ-USB USB Integrated Circuit
Table B-2. 8051 Instruction Set
Mnemonic
Description
Byte
Instr.
Cycles
Hex
Code
JNB bit, rel
JBC bit, rel
JMP @ A+DPTR
JZ rel
JNZ rel
CJNE A, direct, rel
CJNE A, #d, rel
CJNE Rn, #d, rel
CJNE @ Ri, #d, rel
DJNZ Rn, rel
DJNZ direct, rel
Jump on direct bit = 0
Jump on direct bit = 1 and clear
Jump indirect relative DPTR
Jump on accumulator = 0
Jump on accumulator /= 0
Compare A, direct JNE relative
Compare A, immediate JNE relative
Compare reg, immediate JNE relative
Compare Ind, immediate JNE relative
Decrement register, JNZ relative
Decrement direct byte, JNZ relative
3
4
30
3
4
10
1
3
73
2
3
60
2
3
70
3
4
B5
3
4
B4
3
4
B8-BF
3
4
B6-B7
2
3
D8-DF
3
4
D5
Miscellaneous
NOP
No operation
1
1
00
There is an additional reserved opcode (A5) that performs the same function as NOP. All mnemonics
are copyrighted. Intel Corporation 1980.
B.1.3 Instruction Timing
Instruction cycles in the 8051 core are 4 clock cycles in length, as opposed to the 12 clock
cycles per instruction cycle in the standard 8051. This translates to a 3X improvement in
execution time for most instructions.
Some instructions require a different number of instruction cycles on the 8051 core than they
do on the standard 8051. In the standard 8051, all instructions except for MUL and DIV take
one or two instruction cycles to complete. In the 8051 core, instructions can take between one
and five instruction cycles to complete.
For example, in the standard 8051, the instructions MOVX A, @DPTR and MOV direct,
direct each take 2 instruction cycles (24 clock cycles) to execute. In the 8051 core, MOVX
A, @DPTR takes two instruction cycles (8 clock cycles) and MOV direct, direct takes
three instruction cycles (12 clock cycles). Both instructions execute faster on the 8051 core
than they do on the standard 8051, but require different numbers of clock cycles.
For timing of real-time events, use the numbers of instruction cycles from Table B-1. to
calculate the timing of software loops. The bytes column indicates the number of memory
EZ-USB v1.9
Appendix B: 8051 Architectural Overview
B-9