ade7169f16 Analog Devices, Inc., ade7169f16 Datasheet - Page 80

no-image

ade7169f16

Manufacturer Part Number
ade7169f16
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
ADE7169F16
ADD
Function: Adds the source to the Accumulator.
Status Flags Referenced by Instruction: None
Status Flags Affected:
Status
Flag
C
OV
AC
ADDC A, source
Function: Adds the source and the Carry bit to the Accumulator
Status Flags Referenced by Instruction: Carry
Status Flags Affected:
Status
Flag
C
OV
AC
SUBB
Function: Subtract the source byte and the carry (borrow) flag
from the Accumulator.
Status Flags Referenced by Instruction: Carry (Borrow)
Status Flags Affected:
Status
Flag
C
A, source
A, source
Description
Set if there is a borrow needed for of bit 7. Cleared
otherwise. Used to indicate an overflow if the
Description
Set if there is a carry out of bit 7. Cleared otherwise.
Used to indicate an overflow if the operands are
unsigned.
Set if there is a carry out of bit 6 or a carry out of bit 7
but not if both are set. Used to indicate an overflow
for signed addition. This flag will be set if two positive
operands yield a negative result or two negative
operands yield a positive result.
Set if there is a carry out of bit 3. Cleared otherwise.
Description
Set if there is a carry out of bit 7. Cleared otherwise.
Used to indicate an overflow if the operands are
unsigned.
Set if there is a carry out of bit 6 or a carry out of bit 7
but not if both are set. Used to indicate an overflow
for signed addition. This flag will be set if two positive
operands yield a negative result or two negative
operands yield a positive result.
Set if there is a carry out of bit 3. Cleared otherwise.
Rev. PrD | Page 80 of 140
OV
AC
MUL
Function: Multiplies the Accumulator by the B register. This
operation is unsigned. The lower byte of the 16-bit product is
stored in the Accumulator and the higher byte is left in the B
register.
Status Flags Referenced by Instruction: None
Status Flags Affected: None
Status
Flag
C
OV
DIV
Function: Divides the Accumulator by the B register. This
operation is unsigned. The integer part of the quotient is stored
in the Accumulator and the remainder goes into the B register.
Status Flags Referenced by Instruction: None
Status Flags Affected:
Status
Flag
C
OV
DA
Function: Adjusts the Accumulator to hold two four bit digits
after the addition of two binary coded decimals (BCDs) with
the ADD or ADDC instructions. If the AC bit is set or if the
value of bits 0-3 exceed 9, 0x06 is added to the accumulator to
correct the lower four bits. If the carry bit was set when the
instruction began, or if 0x06 was added to the accumulator in
the first step, 0x60 is added to the accumulator to correct the
higher four bits.
operands are unsigned.
Set if there is a borrow is needed for bit 6 or bit 7 but
not for both. Used to indicate an overflow for signed
subtraction. This flag will be set if a negative number
subtracted from a positive yields a negative result or it
a positive number subtracted from a negative number
yields a positive result.
Set if a borrow is needed for bit 3. Cleared otherwise.
AB
AB
A
Description
Cleared
Cleared unless the B register was equal to 0, in which
case the results of the division are undefined and the
OV flag is set.
Description
Cleared
Set if the result is greater than 255. Cleared
otherwise.
Preliminary Technical Data

Related parts for ade7169f16