
Realtek RTD2120-series
confidential9
DW8051 micro-processor
The DW8051containedinRTD2120is compatible withindustrystandard 803x/805x and
providesthe followingdesign features andenhancementstothe standard8051 microcontroller:
1. High speedarchitecture
Comparedtostandard8051, theDW8051processor coreprovidesincreased performance by
executinginstructionsina 4-clockbus cycle, asopposedtothe 12-clockbus cycle inthe standard
8051. The shortenedbus timingimproves the instructionexecutionrate formostinstructions bya
factorof three over thestandard8051architectures. Theaveragespeedimprovement fortheentire
instructionsetis approximately 2.5X.
2. StretchMemoryCycles
The stretchmemorycycle feature enables application software toadjust the speedofdata
memoryaccess. The DW8051 can execute the MOVXinstructioninas little as2instruction cycles.
However,it is sometimes desirable tostretchthis value;forexample, toaccess slowmemoryorslow
memory-mappedperipherals suchas UARTs orLCDs.
The three LSBs of the ClockControlRegister(atSFR location8Eh)control the stretchvalue.
You canuse stretchvalues betweenzero andseven. Astretch valueof zero addszeroinstruction
cycles, resultinginMOVX instructions executingin twoinstructioncycles. Astretchvalueof seven
adds seveninstructioncycles, resultinginMOVXinstructions executinginnine instructioncycles.
The stretchvalue canbe changeddynamicallyunder programcontrol.
Bydefault,the stretchvalue resetstoone (three cycle MOVX). For full-speeddatamemory
access, the software mustsetthestretchvaluetozero. The stretchvalue affectsonlydata memory
access. The onlywayto reduce thespeedof program memory(ROM) access is touse a slower clock.
3. Dual DataPointers
The DW8051employsdual data pointers toaccelerate datamemoryblockmoves. The standard
8051 data pointer(DPTR) is a 16-bit value usedto address externaldata RAM orperipherals. The
DW8051 maintainsthe standarddatapointeras DPTR0 atSFR locations 82h and83h.It is not
necessarytomodifycode touse DPTR0.
The DW8051adds a second data pointer(DPTR1) at SFR locations 84h and 85h. The SEL bit in
the DPTR Select register, DPS(SFR 86h), selects the active pointer. WhenSEL= 0,instructions that
use theDPTR willuse DPL0andDPH0. WhenSEL=1, instructions thatuse the DPTR willuse
DPL1 and DPH1. SELis the bit0ofSFR location86h.No other bitsof SFR location86hare used.
All DPTR-relatedinstructions use the currentlyselecteddata pointer. Toswitchthe active
pointer, toggle theSELbit. The fastestwaytodoso is touse theincrement instruction(INC DPS).
Thisrequires onlyoneinstructiontoswitchfrom a source address toa destination address, saving
applicationcode from havingto savesource anddestinationaddresses when doinga blockmove.
Usingdual data pointers providessignificantlyincreasedefficiencywhenmovinglargeblocks of
data.
4. TimerRate Control
One important difference exists betweenthe RTD2120 and80C32regarding timers. Theoriginal
80C32 used a 12clockper cycle scheme fortimers andconsequentlyfor some serialbaud
rates(dependingonthe mode). TheRTD2120architecture normallyruns using4 clocks percycle.
However,inthe area of timers, it will default to a 12 clockpercycle scheme ona reset. Thisallows
existingcodewithreal–time dependencies such as baudrates tooperate properly.If anapplication
needshigher speedtimers orserial baudrates, the timers canbesettorunat the 4clockrate.