ADUC836 Analog Devices, ADUC836 Datasheet - Page 48

no-image

ADUC836

Manufacturer Part Number
ADUC836
Description
Precision Analog Microcontroller: 1MIPS 8052 MCU + 62kB Flash + Dual 16-Bit ADC + 12-Bit DAC
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC836

Mcu Core
8052
Mcu Speed (mips)
1
Sram (bytes)
2304Bytes
Gpio Pins
34
Adc # Channels
4
Other
PWM

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC836BCPZ
Manufacturer:
ST
Quantity:
30 000
Part Number:
ADUC836BS
Manufacturer:
ADI
Quantity:
250
Part Number:
ADUC836BS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC836BSZ
Manufacturer:
ADI
Quantity:
150
Part Number:
ADUC836BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC836BSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
DUAL DATA POINTER
The ADuC836 incorporates both main and shadow data pointers.
The shadow data pointer is selected via the data pointer control
SFR (DPCON). DPCON also includes features such as automatic
hardware post-increment and post-decrement, as well as automatic
data pointer toggle. DPCON is described in Table XXIII.
Bit
7
6
5
4
3
2
1
0
NOTES
1. This is the only place where the main and shadow data pointers are distinguished. Everywhere else in this data sheet, wherever the DPTR is mentioned, operation on the
2. Only MOVC/MOVX @DPTR instructions are relevant above. MOVC/MOVX PC/@Ri instructions will not cause the DPTR to automatically post increment/decrement,
ADuC836
MOVELOOP:
active DPTR is implied.
and so on. To illustrate the operation of DPCON, the following code will copy 256 bytes of code memory at address D000H into XRAM starting from address 0000H.
the code uses 16 bytes and 2054 cycles. To perform this on a standard 8051 requires approximately 33 bytes and 7172 cycles (depending on how it is implemented).
MOV
MOV
MOV
CLR
Name
–––
DPT
DP1m1
DP1m0
DP0m1
DP0m0
–––
DPSEL
DPTR,#0
DPCON,#55h
DPTR,#0D000h
A
Description
Reserved for Future Use
Data Pointer Automatic Toggle Enable.
Cleared by user to disable auto swapping of the DPTR.
Set in user software to enable automatic toggling of the DPTR after each MOVX or MOVC instruction.
Shadow Data Pointer Mode.
These two bits enable extra modes of the shadow data pointer operation, allowing for more compact and more
efficient code size and execution.
m1
0
0
1
1
Main Data Pointer Mode.
These two bits enable extra modes of the main data pointer operation, allowing for more compact and more
efficient code size and execution.
m1
0
0
1
1
This bit is not implemented to allow the INC DPCON instruction to toggle the data pointer without incre-
menting the rest of the SFR.
Data Pointer Select.
Cleared by user to select the main data pointer.This means that the contents of the main 24-bit DPTR appears
in the three SFRs: DPL, DPH, and DPP.
Set by user to select the shadow data pointer. This means that the contents of the shadow 24-bit DPTR
appears in the three SFRs: DPL, DPH, and DPP.
; Main DPTR = 0
; Select shadow DPTR
; DPTR1 increment mode,
; DPTR0 increment mode
; DPTR auto toggling ON
; Shadow DPTR = D000h
m0
0
1
0
1
m0
0
1
0
1
Behavior of the Shadow Data Pointer
8052 Behavior
DPTR is post-incremented after a MOVX or MOVC instruction.
DPTR is post-decremented after a MOVX or MOVC instruction.
DPTR LSB is toggled after a MOVX or MOVC instruction.
(This instruction can be useful for moving 8-bit blocks to/from 16-bit devices.)
Behavior of the Main Data Pointer
8052 Behavior
DPTR is post-incremented after a MOVX or MOVC instruction.
DPTR is post-decremented after a MOVX or MOVC instruction.
DPTR LSB is toggled aftera MOVX or MOVC instruction.
(This instruction can be useful for moving 8-bit blocks to/from 16-bit devices.)
Table XXIII. DPCON SFR Bit Designations
–48–
DPCON
SFR Address
Power-On Default Value
Bit Addressable
MOVC A,@A+DPTR
MOVX @DPTR,A
MOV
JNZ
A, DPL
MOVELOOP
Data Pointer Control SFR
A7H
00H
No
; Get data
; Post Inc DPTR
; Swap to Main DPTR (Data)
; Put ACC in XRAM
; Increment main DPTR
; Swap to Shad DPTR (Code)
REV. A

Related parts for ADUC836