DS80C390 Dual CAN High-Speed Microprocessor
30 of 52
Because the device runs the standard 8051 instruction set, in general, software written for existing 80C32-based
systems will work on the DS80C390. The primary exceptions are related to timing-critical issues, since the high-
performance core of the microcontroller executes instructions much faster than the original. Memory interfacing is
performed identically to the standard 80C32. The high-speed nature of the DS80C390 core slightly changes the
interface timing, and designers are advised to consult the timing diagrams in this data sheet for more information.
The DS80C390 provides the same timer/counter resources, full duplex serial port, 256 bytes of scratchpad RAM
and I/O ports as the standard 80C32. Timers default to a 12 clocks-per-machine cycle operation to keep timing
compatib le with orig inal 8 051 s ystem s, but c an be program m ed to run at the f aster four clock s-per-m achine c ycle if
desired. New hardware functions are accessed using special function registers that do not overlap with standard
80C32 locations.
This data s heet pr o v ides o nly a summar y and over view of t he D S80 C39 0. D et ai led des c ript io ns are av ai lab l e in th e
High-Speed Microcontroller User’s Guide: DS80C390 Supplement. This data sheet assumes a familiarity with the
architecture of the standard 80C32. In addition to the basic features of that device, the DS80C390 incorporates
many new features.
PERFORMANCE OVERVIEW
The DS80C390’s higher performance comes not just from increasing the clock frequency but also from a more
efficient design. This updated core removes the d ummy memory cycles that are present in a stan dard, 12 clocks-
per-machine cycle 8051. In the DS80C390, the same machine cycle takes 4 clocks. Thus the fastest instruction,
one machine cycle, executes three tim es faster for the same crystal frequenc y. The majority of instructions on the
DS80C390 see the full 3-to-1 speed improvement, while a few execute between 1.5 and 2.4 times faster.
Regardless of specific performance improvements, all instructions are faster than the original 8051.
Improvement of individual programs depends on the actual mix of instructions used. Speed-sensitive applications
should make the mos t us e of ins truc tions that ar e thr e e times faster . However , t h e larg e number of 3-to-1 improve d
op codes makes dramatic speed improvements likely for any arbitrary combination of instructions. These
architectur e im provements and the subm icron CMO S desig n produce a peak inst ruction c ycle in 100ns (10 MI PS).
The dual data pointer feature also allows the user to eliminate wasted instructions when moving blocks of memory.
INSTRUCTION SET SUMM ARY
All instr uctions per form exactly the sam e func tions as t heir 805 1 counterp arts. T heir eff ect on bits, f lags, and other
status f unctions is ident ical. How ever, the tim ing of instr uctions is diff erent, both in absolute an d relative num ber of
clocks. The absolute timing of software loops can be calculated using a table in the High-Speed Microcontroller
User’s Guide: DS80C390 Supplement. However, counter/timers default to run at the traditional 12 clocks per
increm ent. In this wa y, tim er-based events occur at the standard inter vals with sof tware executi ng at higher s peed.
Timers optionally can run at the faster four clocks per increment to take advantage of faster processor operation.
The relative time of two DS80C390 instructions might differ from the traditional 8051. For example, in the original
architecture the “MOVX A, @DPTR” instruction and the “MOV direct, direct” instr uction required the same am ount
of time: two machine cycles or 24 oscillator cycles. In the DS80C390, 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 device 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 four clocks, and provides
one ALE pu lse per c ycle. Man y instruc tions requ ire onl y one cycle, but some r equire five. R efer to th e High-Speed
Microcontroller User’s Guide: DS80C390 Supplement for details and individual instruction timing.
SPECIAL FUNCTION REGISTERS (SFRs)
Special function registers (SFRs) control most special features of the microcontroller, allowing the device to have
man y new features but use the same instruction set as the 8051. W hen writing s oftware to use a new feature, an
equate st atem ent def ines t he SF R to an as sem bler or com piler. T his is the on l y change nee ded to acces s th e new
function. The DS80C390 duplicates the SFRs contained in the standard 80C52. Table 1 shows the register
addresses and bit locations. Many are standard 80C52 registers. The High-Speed Microcontroller User’s Guide:
DS80C390 Supplement contains a full description of all SFRs.