English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (38/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
8032 MCU registers
UPSD33xx
7.4
Accumulator (ACC)
This is an 8-bit general purpose register which holds a source operand and receives the
result of arithmetic operations. The ACC register can also be the source or destination of
logic and data movement operations. For MUL and DIV instructions, ACC is combined with
the B register to hold 16-bit operands. The ACC is referred to as “A” in the MCU instruction
set.
7.5
B register (B)
The B register is a general purpose 8-bit register for temporary data storage and also used
as a 16-bit register when concatenated with the ACC register for use with MUL and DIV
instructions.
7.6
General purpose registers (R0 - R7)
There are four banks of eight general purpose 8-bit registers (R0 - R7), but only one bank of
) eight registers is active at any given time depending on the setting in the PSW word
t(s (described next). R0 - R7 are generally used to assist in manipulating values and moving
c data from one memory location to another. These register banks physically reside in the first
u 32 locations of 8032 internal DATA SRAM, starting at address 00h. At reset, only the first
d bank of eight registers is active (addresses 00h to 07h), and the stack begins at address
ro 08h.
lete P 7.7
t(s) - Obso 7.7.1
Produc 7.7.2
Obsolete 7.7.3
Program Status Word (PSW)
The PSW is an 8-bit register which stores several important bits, or flags, that are set and
cleared by many 8032 instructions, reflecting the current state of the MCU core. Figure 11
on page 39 shows the individual flags.
Carry flag (CY)
This flag is set when the last arithmetic operation that was executed results in a carry
(addition) or borrow (subtraction). It is cleared by all other arithmetic operations. The CY flag
is also affected by Shift and Rotate instructions.
Auxiliary Carry flag (AC)
This flag is set when the last arithmetic operation that was executed results in a carry into
(addition) or borrow from (subtraction) the high-order nibble. It is cleared by all other
arithmetic operations.
General purpose flag (F0)
This is a bit-addressable, general-purpose flag for use under software control.
7.7.4
Register bank select flags (RS1, RS0)
These bits select which bank of eight registers is used during R0 - R7 register accesses
(see Table 4 on page 39)
38/272
Doc ID 9685 Rev 7