поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

HT80C51 датащи(PDF) 101 Page - List of Unclassifed Manufacturers

номер детали HT80C51
подробное описание детали  User Manual Document Information
PDF  132 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ETC2 [List of Unclassifed Manufacturers]
домашняя страница  
Logo ETC2 - List of Unclassifed Manufacturers

HT80C51 датащи(HTML) 101 Page - List of Unclassifed Manufacturers

Back Button HT80C51 Datasheet HTML 97Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 98Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 99Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 100Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 101Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 102Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 103Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 104Page - List of Unclassifed Manufacturers HT80C51 Datasheet HTML 105Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 101 / 132 page
background image
HT80C51 User Manual
80C51 Family Instruction Set – Instruction definitions
Handshake Solutions
© Philips Electronics N.V. 2005
Page 101 of 132
DA A
Function: Decimal-adjust Accumulator for Addition
Description: DA A adjusts the eight-bit value in the Accumulator resulting from the earlier addition of two vari-
able (each in packed-BCD format), producing two four-bit digits. Any ADD or ADDC instruction
may have been used to perform the addition.
If Accumulator bits 3-0 are greater than nine (xxx1010-xxx1111), or if the AC flag is one, six is
added to the Accumulator, producing the proper BCD digit in the low-order nibble. This internal
addition would set the carry flag if a carry-out of the low-order four-bit field propagated through all
high-order bits, but it would not clear the carry flag otherwise.
If the carry flag is now set, or if the four high-order bits now exceed nine (1010xxx-111xxxx), these
high-order bits are incremented by six, producing the proper BCD digit in the high-order nibble.
Again, this would set the carry flag if there was a carry-out of the high-order bits, but wouldn’t
clear the carry. The carry flag thus indicates if the sum of the original two BCD variables is greater
than 100, allowing multiple precision decimal addition. OV is not affected.
All of this occurs during the one instruction cycle. Essentially, this instruction performs the decimal
conversion by adding 00H, 06H, 60H, or 66H to the Accumulator, depending on initial Accumula-
tor and PSW conditions.
Note: DA A cannot simply convert a hexadecimal number in the Accumulator to BCD notation, nor
does DA A apply to decimal subtraction.
Example: The Accumulator holds the value 56H (01010110B) representing the packed BCD digits of the
decimal number 56. Register 3 contains the value 67H (01100111B) representing the packed
BCD digits of the decimal number 67. The carry flag is set.. The instruction sequence,
ADDC A,R3
DA A
will first perform a standard two’s-complement binary addition, resulting in the value 0BEH
(10111110B) in the Accumulator. The carry and auxiliary carry flags will be cleared.
The Decimal Adjust instruction will then alter the Accumulator to the value 24H (00100100B), indi-
cating the packed BCD digits of the decimal number 24, the low-order two digits of the decimal
sum of 56, 67, and the carry-in. The carry flag will be set by the Decimal Adjust instruction,
indicating that a decimal overflow occurred. The true sum 56, 67, and 1 is 124.
BCD variables can be incremented or decremented by adding 01H or 99H. If the Accumulator ini-
tially holds 30H (representing the digits of 30 decimal), the the instruction sequence,
ADD A,#99H
DA A
will leave the carry set and 29H in the Accumulator, since 30 + 99 = 129. The low-order byte of
the sum can be interpreted to mean 30 – 1 = 29.
Bytes: 1
Cycles: 1
Encoding:
Operation: DA
–contents of Accumulator are BCD
IF [[(A3-0) > 9]
∨ [(AC) = 1]]
THEN
(A3-0)
← (A3-0) + 6
AND
IF [[(A7-4) > 9]
∨ [(C) = 1]]
THEN
(A7-4)
← (A7-4) + 6
1
1
0
1
0
1
0
0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com