English
Language : 

W77C32 Datasheet, PDF (27/78 Pages) Winbond – 8 BIT MICROCONTROLLER
W77C32/W77C032A
8. INSTRUCTION
The W77C032 executes all the instructions of the standard 8032 family. The operation of these
instructions, their effect on the flag bits and the status bits is exactly the same. However, timing of
these instructions is different. The reason for this is two fold. Firstly, in the W77C032, each machine
cycle consists of 4 clock periods, while in the standard 8032 it consists of 12 clock periods. Also, in the
W77C032 there is only one fetch per machine cycle i.e. 4 clocks per fetch, while in the standard 8032
there can be two fetches per machine cycle, which works out to 6 clocks per fetch.
The advantage the W77C032 has is that since there is only one fetch per machine cycle, the number of
machine cycles in most cases is equal to the number of operands that the instruction has. In case of
jumps and calls there will be an additional cycle that will be needed to calculate the new address. But
overall the W77C032 reduces the number of dummy fetches and wasted cycles, thereby improving
efficiency as compared to the standard 8032.
Table 2. Instructions that affect Flag settings
INSTRUCTION CARRY OVERFLOW
AUXILIARY
CARRY
INSTRUCTION CARRY OVERFLOW
ADD
X
X
X
CLR C
0
ADDC
X
X
X
CPL C
X
SUBB
X
X
X
ANL C, bit
X
MUL
0
X
ANL C, bit
X
DIV
0
X
ORL C, bit
X
DA A
X
ORL C, bit
X
RRC A
X
MOV C, bit
X
RLC A
X
CJNE
X
SETB C
1
A “X” indicates that the modification is as per the result of instruction.
AUXILIARY
CARRY
Table 3. Instruction Timing for W77C032
INSTRUCTION
NOP
ADD A, R0
ADD A, R1
ADD A, R2
ADD A, R3
ADD A, R4
ADD A, R5
ADDC A, R1
ADDC A, R2
ADDC A, R3
ADDC A, R4
ADDC A, R5
ADDC A, R6
HEX OP-
CODE
00
28
29
2A
2B
2C
2D
39
3A
3B
3C
3D
3E
BYTES
1
1
1
1
1
1
1
1
1
1
1
1
1
W77C032
MACHINE
CYCLES
1
1
1
1
1
1
1
1
1
1
1
1
1
W77C032
CLOCK
CYCLES
4
4
4
4
4
4
4
4
4
4
4
4
4
8032
CLOCK
CYCLES
12
12
12
12
12
12
12
12
12
12
12
12
12
W77C032 VS.
8032 SPEED
RATIO
3
3
3
3
3
3
3
3
3
3
3
3
3
- 27 -
Publication Release Date: February 1, 2007
Revision A8