Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AT89LP51RB2 Datasheet(PDF) 35 Page - ATMEL Corporation

Part # AT89LP51RB2
Description  8-bit Microcontroller Compatible with 8051 Products
PDF  254 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89LP51RB2 Datasheet(HTML) 35 Page - ATMEL Corporation

Back Button AT89LP51RB2 Datasheet HTML 31Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 32Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 33Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 34Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 35Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 36Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 37Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 38Page - ATMEL Corporation AT89LP51RB2 Datasheet HTML 39Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 254 page
background image
35
3722A–MICRO–10/11
AT89LP51RB2/RC2/IC2 Preliminary
5.4
Enhanced Dual Data Pointers
The AT89LP51RB2/RC2/IC2 provides two 16-bit data pointers: DPTR0 and DPTR1. The data
pointers are used by several instructions to access the program or data memories. The
Auxiliary 1 Register (AUXR1) and Data Pointer Configuration Register (DPCF) control operation
of the dual data pointers (see Table 5-6 on page 37 and Table 5-7 on page 37). The DPS bit in
AUXR1 selects which data pointer is currently referenced by instructions including the DPTR
operand. Each data pointer may also be accessed at a pair of SFR addresses that also depend
on the DPS value. The data pointer referenced by DPS is located at the register pair DPL and
DPH (82H an 83H), and the alternate data pointer not referenced by DPS is located at the regis-
ter pair DPLB and DPHB (D4H and D5H). When DPS is toggled, the two data pointers also swap
which SFR pair will access them as shown in Table 5-2. The AT89LP51RB2/RC2/IC2 provides
two methods for fast context switching of the data pointers:
• Bit 2 of AUXR1 is hard-wired as a logic 0. The DPS bit may be toggled (to switch data
pointers) simply by incrementing the AUXR1 register, without altering other bits in the register
unintentionally. This is the preferred method when only a single data pointer will be used at
one time.
EX:
INC
AUXR1
; Toggle DPS
•In some cases, both data pointers must be used simultaneously. To prevent frequent toggling
of DPS, the AT89LP51RB2/RC2/IC2 supports a prefix notation for selecting the opposite data
pointer per instruction. All DPTR instructions, with the exception of JMP @A+DPTR, when
prefixed with an 0A5H opcode will use the inverse value of DPS (DPS) to select the data
pointer. Some assemblers may support this operation by using the /DPTR operand. For
example, the following code performs a block copy within EDATA:
MOV
AUXR1, #00H
; DPS = 0
MOV
DPTR, #SRC
; load source address to dptr0
MOV
/DPTR, #DST
; load destination address to dptr1
MOV
R7, #BLKSIZE
; number of bytes to copy
COPY:
MOVX A, @DPTR
; read source (dptr0)
INC
DPTR
; next src (dptr0+1)
MOVX @/DPTR, A
; write destination (dptr1)
INC
/DPTR
; next dst (dptr1+1)
DJNZ R7, COPY
For assemblers that do not support this notation, the 0A5H prefix must be declared in-line:
EX:
DB
0A5H
INC
DPTR
; equivalent to INC /DPTR
Table 5-2.
Data Pointer Register Access
SFR
DPS = 0
DPS = 1
DPL (82H)
DP0L
DP1L
DPH (83H)
DP0H
DP1H
DPLB (D4H)
DP1L
DP0L
DPHB (D5H)
DP1H
DP0H



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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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