công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UPD17P136ACT bảng dữ liệu(PDF) 110 Page - NEC

tên linh kiện UPD17P136ACT
Giải thích chi tiết về linh kiện  4-BIT SINGLE-CHIP MICROCONTROLLER
PDF  292 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  NEC [NEC]
Trang chủ  http://www.nec.com/
Logo NEC - NEC

UPD17P136ACT bảng dữ liệu(HTML) 110 Page - NEC

Back Button UPD17P136ACT Datasheet HTML 106Page - NEC UPD17P136ACT Datasheet HTML 107Page - NEC UPD17P136ACT Datasheet HTML 108Page - NEC UPD17P136ACT Datasheet HTML 109Page - NEC UPD17P136ACT Datasheet HTML 110Page - NEC UPD17P136ACT Datasheet HTML 111Page - NEC UPD17P136ACT Datasheet HTML 112Page - NEC UPD17P136ACT Datasheet HTML 113Page - NEC UPD17P136ACT Datasheet HTML 114Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 110 / 292 page
background image
CHAPTER 11 ARITHMETIC AND LOGIC UNIT (ALU)
91
11.3 ARITHMETIC OPERATIONS (ADDITION AND SUBTRACTION IN 4-BIT BINARY AND BCD)
As shown in Table 11-3, arithmetic operations consist of addition, subtraction, addition with carry, and subtraction
with borrow. These instructions are ADD, ADDC, SUB, and SUBC.
The ADD, ADDC, SUB, and SUBC instructions are further divided into addition and subtraction of the general
register and data memory and addition and subtraction of data memory and immediate data. When the operands
r and m are used, addition or subtraction is performed using the general register and data memory. When the operands
m and #n4 are used, addition or subtraction is performed using data memory and immediate data.
Arithmetic operations are affected by the status flip-flop and the program status word (PSWORD) in the system
register. The BCD flag in the program status word is used to specify whether arithmetic operations are to be performed
in 4-bit binary or in BCD. The CMP flag is used to specify whether or not the results of arithmetic operations are to
be stored.
11.3.1 to 11.3.4 explain the relationship between each command and the program status word.
Table 11-3. Types of Arithmetic Operations
11.3.1 Addition and Subtraction When CMP = 0 and BCD = 0
Addition and subtraction are performed in 4-bit binary and the result is stored in the general register or data memory.
When the result of the operation is greater than 1111B (carry generated) or less than 0000B (borrow generated),
the CY flag is set (1); otherwise it is reset (0).
When the result of the operation is 0000B, the Z flag is set (1) regardless of whether there is carry or borrow;
otherwise it is reset (0).
11.3.2 Addition and Subtraction When CMP = 1 and BCD = 0
Addition and subtraction are performed in 4-bit binary.
However, because the CMP flag is set (1), the result of the operation is not stored in either the general register
or data memory.
When there is a carry or borrow in the result of the operation, the CY flag is set (1); otherwise it is reset (0).
When the result of the operation is 0000B, the previous state of the Z flag is retained; otherwise it is reset (0).
General register and data memory
ADD r, m
Data memory and immediate data
ADD m, #n4
General register and data memory
ADDC r, m
Data memory and immediate data
ADDC m, #n4
General register and data memory
SUB r, m
Data memory and immediate data
SUB m, #n4
General register and data memory
SUBC r, m
Data memory and immediate data
SUBC m, #n4
Without carry ADD
With carry ADDC
Without borrow SUB
With borrow SUBC
Addition
Subtraction
Arithmetic
operation



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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