DS87C550 EPROM High-Speed Microcontroller with ADC and PWM
8 of 49
instruction used two machine cycles or 24 oscillator cycles. Therefore, they required the same amount of
time. In the DS87C550, the MOVX instruction takes as little as two machine cycles or eight oscillator
cycles, but the “MOV direct, direct” uses three machine cycles or 12 oscillator cycles. While both are
faster than their original counterparts, they now have different execution times. This is because the
DS87C550 usually uses one instruction cycle for each instruction byte. Examine the timing of each
instruction for familiarity with the changes. Note that a machine cycle now requires just 4 clocks, and
provides one ALE pulse per cycle. Many instructions require only one cycle, but some require five. In the
original architecture, all were one or two cycles except for MUL and DIV. Refer to the High Speed Micro
User’s Guide for details and individual instruction timing.
SPECIAL FUNCTION REGISTERS
Special Function Registers (SFRs) control most special features of the DS87C550. This allows the
DS87C550 to have many new features but use the same instruction set as the 8051. When writing
software to use a new feature, an equate statement defines the SFR to an assembler or compiler. This is
the only change needed to access the new function. The DS87C550 duplicates the SFRs contained in the
standard 80C52. Table 2 shows the register addresses and bit locations. Many are standard 80C52
registers. The High Speed Micro User’s Guide describes all SFRs in full detail.
SPECIAL FUNCTION REGISTER LOCATION: Table 2
REGISTER
BIT7
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
BIT0
ADDRESS
PORT0
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
80h
SP
81h
DPL
82h
DPH
83h
DPL1
84h
DPH1
85h
DPS
ID1
ID0
TSL
-
SEL
86h
PCON
SMOD_0
SMOD0
OFDF
OFDE
GF1
GF0
STOP
IDLE
87h
TCON
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
88h
TMOD
GATE
C/ T
M1
M0
GATE
C/ T
M1
M0
89h
TL0
8Ah
TL1
8Bh
TH0
8Ch
TH1
8Dh
CKCON
WD1
WD0
T2M
T1M
T0M
MD2
MD1
MD0
8Eh
PORT1
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
90h
RCON
-
CKRDY
RGMD
RGSL
BGS
91h
SCON0
SM0/FE_0
SM1_0
SM2_0
REN_0
TB8_0
RB8_0
TI_0
RI_0
98h
SBUF0
99h
PMR
CD1
CD0
SWB
CTM
4X/ 2X
ALEOFF
DEM1
DME0
9Fh
PORT2
P2.7
P2.6
P2.5
P2.4
P2.3
P2.2
P2.1
P2.0
A0h
SADDR0
A1h
SADDR1
A2h
IE
EA
EAD
ES1
ES0
ET1
EX1
ET0
EX0
A8h
CMPL0
A9h
CMPL1
AAh
CMPL2
ABh
CPTL0
ACh
CPTL1
ADh
CPTL2
AEh
CPTL3
AFh
PORT3
P3.7
P3.6
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
B0h
ADCON1
STRT/BSY
EOC
CONT/SS
ADEX
WCQ
WCM
ADON
WCIO
B2h