![](http://datasheet.mmic.net.cn/230000/W77IC32_datasheet_15631155/W77IC32_34.png)
W77IC32
- 34 -
Table 3. Instruction Timing for W77IC32, continued
Instruction
HEX
Op-Code
Bytes
W77IC32
Machine Cycles
W77IC32
Clock Cycles
8032
Clock Cycles
W77IC32 vs.
8032 Speed Ratio
XRL A, R3
6B
1
1
4
12
3
XRL A, R4
6C
1
1
4
12
3
XRL A, R5
6D
1
1
4
12
3
XRL A, R6
6E
1
1
4
12
3
XRL A, R7
6F
1
1
4
12
3
XRL A, @R0
66
1
1
4
12
3
XRL A, @R1
67
1
1
4
12
3
XRL A, direct
65
2
2
8
12
1.5
XRL A, #data
64
2
2
8
12
1.5
XRL direct, A
62
2
2
8
12
1.5
XRL
#data
direct,
63
3
3
12
24
2
Intruction Timing
The instruction timing for the W77IC32 is an important aspect, especially for those users who wish to
use software instructions to generate timing delays. Also, it provides the user with an insight into the
timing differences between the W77IC32 and the standard 8032. In the W77IC32 each machine cycle
is four clock periods long. Each clock period is designated a state. Thus each machine cycle is made
up of four states, C1, C2, C3 and C4 in that order. Due to the reduced time for each instruction
execution, both the clock edges are used for internal timing. Hence it is important that the duty cycle of
the clock be as close to 50% as possible to avoid timing conflicts. As mentioned earlier, the W77IC32
does one op-code fetch per machine cycle. Therefore, in most of the instructions, the number of
machine cycles needed to execute the instruction is equal to the number of bytes in the instruction. Of
the 256 available op-codes, 128 of them are single cycle instructions. Thus more than half of all op-
codes in the W77IC32 are executed in just four clock periods. Most of the two-cycle instructions are
those that have two byte instruction codes. However there are some instructions that have only one
byte instructions, yet they are two cycle instructions. One instruction which is of importance is the
MOVX instruction. In the standard 8032, the MOVX instruction is always two machine cycles long.
However in the W77IC32, the user has a facility to stretch the duration of this instruction from 2
machine cycles to 9 machine cycles. The RD and WR strobe lines are also proportionately elongated.
This gives the user flexibility in accessing both fast and slow peripherals without the use of external
circuitry and with minimum software overhead. The rest of the instructions are either three, four or five
machine cycle instructions. Note that in the W77IC32, based on the number of machine cycles, there
are five different types, while in the standard 8032 there are only three. However, in the W77IC32 each
machine cycle is made of only 4 clock periods compared to the 12 clock periods for the standard 8032.
Therefore, even though the number of categories has increased, each instruction is at least 1.5 to 3
times faster than the standard 8032 in terms of clock periods.