版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 1. Digital systems & representation 1.1 Digital systems 1.2 Numbers representation1.3 Performing arithmetic with binary numbers1.4 Representation of alphanumeric symbols1 1.1 Digital Systems1. The realm of digital systemsA digital system is often designed to satisfy two kinds of tasks: (1)To contro
2、l apparatus(2)To perform calculationsA digital system can perform some calculations and on the basis of the result, take certain control actions.2 1.1 Digital Systems2. Two-valued logic signals The input and output signals have only two values. Hence, the digital systems might use 5 volts and 0 volt
3、s to represent the two values. 3. Positive and negative logic representation(1)Positive logic representationThe higher voltage represents a logic 1, and the lower voltage represents a logic 0. 3 1.1 Digital Systems(2)Negative logic representationThe higher voltage represents a logic 0, and the lower
4、 voltage represents a logic 1. (3)Mixed logic representationUsing both positive and negative representations in the same system.4 1.1 Digital Systems4. Logic functionsIn order to develop the algorithm or logic function for a digital system, logic signals must be represented by names as in algebra.Lo
5、gic function can be written in a two-valued algebra called Boolean algebra.5. Three fundamental logic operationsAND, OR, and NOT are three fundamental logic operations, from which any complicated logic function can be created.5 1.2 Numbers Representation1. Decimal numbersDecimal number system has te
6、n digits 0,1,2,3,4,5,6,7,8 and 9. It is a positional number system, which uses digits multiplied by powers of 10 that depend upon the position of the digit. 10 is the base of the number system.(235)10 = 2102+ 3101+ 5100Ten different voltages are needed for each possible value of the digit in the dec
7、imal number system. Then electronic circuits will have to be designed which can accept ten different voltages and produce ten different voltages, one for each digit of the number.6 1.2 Numbers Representation2. Binary numbersBinary number system has only two digits 0 and 1. They are called bits (bina
8、ry digits). 2 is the base of the binary system. Binary number can be represented as:(110001)2 = 125+ 124+ 023+ 022+ 021+ 120Numbers can be a fraction or have a fractional part.(0.101)2 = 12-1+ 02-2+ 12-3The binary number system fits in well with digital systems. There are only two digits used, 0 and
9、 1, in all numbers, so only two different voltages are needed for each digit.7 1.2 Numbers Representation3. Hexadecimal and octal numbersThe positional number system using the base of 16 is called the hexadecimal number system. The 16 different numbers are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E
10、 and F.The positional number system using the base of 8 is called the octal number system. The 8 different numbers are 0, 1, 2, 3, 4, 5, 6 and 7.8 1.2 Numbers Representation4. Number conversionNumbers are likely to be entered using the decimal representation, but dealt in binary within the digital s
11、ystems. Therefore, there needs to be some way of converting from binary to decimal and vice versa.Small decimal numbers can be easily converted into binary by considering the values of powers of 2.Exp1: Convert the decimal number 25 into binary. (25)10 = 16+8+1 =10000+01000+00001 = (11001)2(1)Decima
12、l to binary9 1.2 Numbers Representation(2) Binary to decimalExp2: Convert the binary number 110001 to decimal. (110001)2 = 125+ 124+ 023+ 022+ 021+ 120 = (49)10(3) Binary to hexadecimalTo convert a binary number into hexadecimal is a matter of dividing the binary number into groups of four digits an
13、d converting each group into one hexadecimal digit.Exp3: Convert the binary number 110001 to hexadecimal. (110001)2 = (31)1610 1.2 Numbers Representation(4) Hexadecimal to binaryExp4: Convert the hexadecimal number 1AC to binary. (1AC)16 = (0001 1010 1100)2 (5) Binary to octalExp5: Convert the binar
14、y number 001010011 to octal. (001010011)2 = (123)8(6) Octal to binaryExp6: Convert the octal number 456 to binary. (456)8 = (100 101 110)2 11 1.3 Performing arithmetic with binary numbers1. AdditionThe rules are essentially the same for decimal and binary. Pairs of digits are added together, startin
15、g with the least significant digits. When a result digit is equal to or greater than the base, a carry is generated which is added to the next pair of digits.12 1.3 Performing arithmetic with binary numbers2. Negative numbers and subtractionBinary subtraction use the similar approach to the decimal
16、approach of borrowing from the next column of digits.In decimal, we have to borrow a digit from the next column if the subtrahend is greater than the minuend.For implementation reasons, subtraction is usually done by the “addition of complements”. Such method can be applied to any number system.13 1
17、.3 Performing arithmetic with binary numbersThe 2s complement of a binary number N is defined by:2s complement2n -NPositive numbers always start with a leading 0; Negative numbers with a leading 1.Negative numbers are represented within most digital systems and computers in 2s complement because it
18、simplifies addition and subtraction.14 1.3 Performing arithmetic with binary numbersSubtractionTo perform subtraction of Y from X, the 2s complement of Y is formed to create Y, then we add Y to X.The method to create the 2s complement of any number is to invert the digits and add 1.1s complementInverting the digits of a binary number is called forming the 1s complement which is defined as: -X = (2n -1) - Y15 1.3 Performing arithmetic with binary numbers3. Binary-coded decimal numbersIn BCD, each decimal digit of a number is represen
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 填報(bào)志愿合同書范本
- 削鉛筆機(jī)產(chǎn)品供應(yīng)鏈分析
- 女式開襟短上衣產(chǎn)品供應(yīng)鏈分析
- 多元文化節(jié)慶行業(yè)營銷策略方案
- 5G智能水務(wù)行業(yè)相關(guān)項(xiàng)目經(jīng)營管理報(bào)告
- 4.3誠實(shí)守信 (課件) -2024-2025學(xué)年統(tǒng)編版道德與法治 八年級(jí) 上冊(cè)
- 磁鐵市場(chǎng)分析及投資價(jià)值研究報(bào)告
- 2.2合理利用網(wǎng)絡(luò)(1) (課件) -2024-2025學(xué)年統(tǒng)編版道德與法治 八年級(jí) 上冊(cè)
- 智能手機(jī)用穩(wěn)定器產(chǎn)品供應(yīng)鏈分析
- 錄像帶發(fā)行行業(yè)相關(guān)項(xiàng)目經(jīng)營管理報(bào)告
- 《汽車檢測(cè)與診斷技術(shù)》教學(xué)設(shè)計(jì)教案
- 人教版2024七年級(jí)上冊(cè)英語各單元單詞短語句型匯編
- 2024年人教版九年級(jí)英語單詞默寫單(微調(diào)版)
- 22G101三維彩色立體圖集
- 2024屆高考專題復(fù)習(xí):思辨類作文專題復(fù)習(xí)
- 人教版小學(xué)英語單詞表(完整版)
- (高清版)JTGT 3374-2020 公路瓦斯隧道設(shè)計(jì)與施工技術(shù)規(guī)范
- 國家開放大學(xué)《心理健康教育》形考任務(wù)1-9參考答案
- 黑龍江省哈爾濱第三中學(xué)校2023-2024學(xué)年高一上學(xué)期入學(xué)調(diào)研測(cè)試英語試題
- 【川教版】《生命 生態(tài) 安全》四上第11課《預(yù)防流感》課件
- 食品質(zhì)量與安全專業(yè)大學(xué)生職業(yè)生涯規(guī)劃書
評(píng)論
0/150
提交評(píng)論