aduc847bs8-3 Analog Devices, Inc., aduc847bs8-3 Datasheet - Page 18

no-image

aduc847bs8-3

Manufacturer Part Number
aduc847bs8-3
Description
Microconverter, 10-channel 24-bit Adc With Embedded 62kb Flash Mcu
Manufacturer
Analog Devices, Inc.
Datasheet
Preliminary Technical Data
The upper 1792 bytes of the internal XRAM can be configured to
be used as an extended 11-bit stack pointer. By default the stack
will operate exactly like an 8052 in that it will rollover from FFh to
00h in the general purpose RAM. On the ADuC847 however it is
possible (by setting CFG847.7) to enable the 11-bit extended stack
pointer. In this case the stack will rollover from FFh in RAM to
0100h in XRAM.
The 11-bit stack pointer is visable in the SP and SPH SFRs. The SP
SFR is located at 81h as with a standard 8052. The SPH SFR is
located at B7h. The 3 LSBs of this SFR contain the 3 extra bits
necessary to extend the 8-bit stack pointer into an 11-bit stack
pointer.
External Data Memory (External XRAM)
Just like a standard 8051 compatible core the ADuC847 can access
external data memory using a MOVX instruction. The MOVX
instruction automatically outputs the various control strobes
required to access the data memory.
The ADuC847 however, can access up to 16MBytes of external
data memory. This is an enhancement of the 64kBytes external data
memory space available on a standard 8051 compatible core.
The external data memory is discussed in
more detail in the ADuC847 Hardware
Design Considerations section.
SPECIAL FUNCTION REGISTERS
(SFRs)
internal data memory space and accessed by direct addressing only.
It provides an interface between the CPU and all on chip
peripherals. A block diagram showing the programming model of
the ADuC847 via the SFR area is shown in Figure 5. All registers
except the Program Counter (PC) and the four general-purpose
register banks, reside in the SFR area. The SFR registers include
control, configuration, and data registers that provide an interface
between the CPU and all on-chip peripherals.
REV. PrA 05/03
The SFR space is mapped into the upper 128 bytes of
Figure 4. Extended Stack Pointer Operation
CFG845.7 = 0
FFH
00H
(DATA + STACK)
ON-CHIP DATA
256 BYTES OF
RAM
CFG845.7 = 1
07FFH
100H
00H
ON-CHIP XRAM
(DATA +STACK
ON-CHIP XRAM
FOR EXSP=1,
FOR EXSP=0)
(DATA ONLY)
UPPER 1792
DATA ONLY
LOWER 256
BYTES OF
BYTES OF
18
Accumulator SFR (ACC)
ACC is the Accumulator register and is used for math operations
including addition, subtraction, integer multiplication and division,
and Boolean bit manipulations. The mnemonics for accumulator-
specific instructions refer to the Accumulator as A.
B SFR (B)
The B register is used with the ACC for multiplication and division
operations. For other instructions it can be treated as a general-
purpose scratchpad register.
Data Pointer (DPTR)
The Data Pointer is made up of three 8-bit registers, named DPP
(page byte), DPH (high byte) and DPL (low byte). These are used
to provide memory addresses for internal and external code access
and external data access. It may be manipulated as a 16-bit register
(DPTR = DPH, DPL), although INC DPTR instructions will
automatically carry over to DPP, or as three independent 8-bit
registers (DPP, DPH, DPL).
The ADuC847 supports dual data pointers. Refer to the Dual Data
Pointer section later in this datasheet.
Stack Pointer (SP and SPH)
The SP SFR is the stack pointer and is used to hold an internal
RAM address that is called the ‘top of the stack.’ The SP register is
incremented before data is stored during PUSH and CALL
executions. While the Stack may reside anywhere in on-chip RAM,
the SP register is initialized to 07H after a reset. This causes the
stack to begin at location 08H.
As mentioned earlier the ADuC847 offers an extended 11-bit stack
pointer. The 3 extra bits to make up the 11-bit stack pointer are the
3 LSBs of the SPH byte located at B7h. To enable the SPH SFR the
EXSP (CFG847.7) bit must be set otherwise the SPH SFR cannot
be read or written to.
Figure 5. Programming Model
ADuC847

Related parts for aduc847bs8-3