Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

T87C5101 Datasheet(PDF) 11 Page - ATMEL Corporation

Part # T87C5101
Description  8-bit Low Pin Count Microcontrollers
PDF  58 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

T87C5101 Datasheet(HTML) 11 Page - ATMEL Corporation

Back Button T87C5101 Datasheet HTML 7Page - ATMEL Corporation T87C5101 Datasheet HTML 8Page - ATMEL Corporation T87C5101 Datasheet HTML 9Page - ATMEL Corporation T87C5101 Datasheet HTML 10Page - ATMEL Corporation T87C5101 Datasheet HTML 11Page - ATMEL Corporation T87C5101 Datasheet HTML 12Page - ATMEL Corporation T87C5101 Datasheet HTML 13Page - ATMEL Corporation T87C5101 Datasheet HTML 14Page - ATMEL Corporation T87C5101 Datasheet HTML 15Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 58 page
background image
11
T8xC5101/02
4233G–8051–03/03
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 "destina-
tion" 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
AUXR1 EQU 0A2H
;
0000 909000MOV DPTR,#SOURCE ; address of SOURCE
0003 05A2 INC AUXR1
; switch data pointers
0005 90A000 MOV DPTR,#DEST ; address of DEST
0008
LOOP:
0008 05A2 INC AUXR1
; switch data pointers
000A E0 MOVX A,@DPTR
; get a byte from SOURCE
000B A3 INC DPTR
; increment SOURCE address
000C 05A2 INC AUXR1
; switch data pointers
000E F0 MOVX @DPTR,A
; write the byte to DEST
000F A3 INC DPTR
; increment DEST address
0010 70F6JNZ LOOP
; check for 0 terminator
0012 05A2 INC AUXR1
; (optional) restore DPS
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 par-
ticular 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 instruction (INC AUXR1), the routine will exit with DPS in
the opposite state.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com