TS80C54X2XXX-MCE ATMEL Corporation, TS80C54X2XXX-MCE Datasheet - Page 13
TS80C54X2XXX-MCE
Manufacturer Part Number
TS80C54X2XXX-MCE
Description
At87c54x2, Ts87c54x2
Manufacturer
ATMEL Corporation
Datasheet
1.TS80C54X2XXX-MCE.pdf
(62 pages)
- Current page: 13 of 62
- Download datasheet (516Kb)
7.1
4431E–8051–04/06
Application
Software can take advantage of the additional data pointers to both increase speed and reduce
code size, for example, block operations (copy, compare, search ...) are well served by using
one data pointer as a ’source’ pointer and the other one as a "destination" pointer.
ASSEMBLY LANGUAGE
; Block move using dual data pointers
; Destroys DPTR0, DPTR1, A and PSW
; note: DPS exits opposite of entry state
; unless an extra INC AUXR1 is added
;
00A2
;
0000 909000
0003 05A2
0005 90A000
0008
0008 05A2
000A E0
000B A3
000C 05A2
000E F0
000F A3
0010 70F6
0012 05A2
INC is a short (2 bytes) and fast (12 clocks) way to manipulate the DPS bit in the AUXR1 SFR.
However, note that the INC instruction does not directly force the DPS bit to a particular state,
but simply toggles it. In simple routines, such as the block move example, only the fact that DPS
is toggled in the proper sequence matters, not its actual value. In other words, the block move
routine works the same whether DPS is '0' or '1' on entry. Observe that without the last instruc-
tion (INC AUXR1), the routine will exit with DPS in the opposite state.
MOV
INC
MOV
LOOP:
INC
MOVX A,@DPTR
INC
INC
MOVX @DPTR,A
INC
JNZ
INC
AUXR1 EQU 0A2H
AUXR1
DPTR,#DEST
AUXR1
DPTR
AUXR1
DPTR
LOOP
AUXR1
DPTR,#SOURCE
; address of SOURCE
; switch data pointers
; address of DEST
; switch data pointers
; get a byte from SOURCE
; increment SOURCE address
; switch data pointers
; write the byte to DEST
; increment DEST address
; check for 0 terminator
; (optional) restore DPS
AT/TS8xC54/8X2
13
Related parts for TS80C54X2XXX-MCE
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8-bit CMOS Microcontroller 16/32 Kbytes ROM/OTP
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet: