
ADuC841/ADuC842/ADuC843
ACCUMULATOR SFR (ACC)
ACC is the accumulator register and is used for math opera-
tions 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.
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, which
causes the stack to begin at location 08H.
Rev. 0 | Page 21 of 88
As mentioned earlier, the parts offer an extended 11-bit stack
pointer. The 3 extra bits used to make up the 11-bit stack
pointer are the 3 LSBs of the SPH byte located at B7H.
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 for external data access. They may be manipu-
lated as a 16-bit register (DPTR = DPH, DPL), although INC
DPTR instructions automatically carry over to DPP, or as three
independent 8-bit registers (DPP, DPH, DPL). The parts support
dual data pointers. Refer to the Dual Data Pointer section.
Program Status Word (PSW)
The PSW SFR contains several bits reflecting the current status
of the CPU, as detailed in Table 5.
SFR Address
Power-On Default
Bit Addressable
Table 5. PSW SFR Bit Designations
Bit
Name
7
CY
6
AC
5
F0
4
RS1
3
RS0
D0H
00H
Yes
Description
Carry Flag.
Auxiliary Carry Flag.
General-Purpose Flag.
Register Bank Select Bits.
RS1
0
0
1
1
1
Overflow Flag.
General-Purpose Flag.
Parity Bit.
RS0
0
1
0
Selected Bank
0
1
2
3
2
1
0
OV
F1
P
Power Control SFR (PCON)
The PCON SFR contains bits for power-saving options and
general-purpose status flags, as shown in Table 6.
SFR Address
Power-On Default
Bit Addressable
Table 6. PCON SFR Bit Designations
Bit No.
Name
7
SMOD
6
SERIPD
5
INT0PD
4
ALEOFF
3
GF1
2
GF0
1
PD
0
IDL
87H
00H
No
Description
Double UART Baud Rate.
I
2
C/SPI Power-Down Interrupt Enable.
INT0 Power-Down Interrupt Enable.
Disable ALE Output.
General-Purpose Flag Bit.
General-Purpose Flag Bit.
Power-Down Mode Enable.
Idle Mode Enable.