数字逻辑2-1n.ppt

上传人(卖家):saw518 文档编号:5714338 上传时间:2023-05-05 格式:PPT 页数:14 大小:233KB
下载 相关 举报
数字逻辑2-1n.ppt_第1页
第1页 / 共14页
数字逻辑2-1n.ppt_第2页
第2页 / 共14页
数字逻辑2-1n.ppt_第3页
第3页 / 共14页
数字逻辑2-1n.ppt_第4页
第4页 / 共14页
数字逻辑2-1n.ppt_第5页
第5页 / 共14页
点击查看更多>>
资源描述

1、Chapter 2 Number systems and codes u Decimal and Binary u Unsigned and Signed u Code for Numbers and CharactersPositional number systemsUse few digit to express infinite values Each digit position has a different weightDefinition:121012.pniiirddddddDNumber digit base/radixNumber:a string of digits;E

2、ach digit position has a different weight;Radix is written as 10 in any system.2211001122rdrdrdrdrdDDdrPositional number systemsDecimal system:base is 10,the digit may be 0 to 91012101011011001011.101Binary system:base is 2,the digit may be 0 or 110122212120211.101bit:one digit in binary system;Posi

3、tional number systemsBased on definitions:10764322109375.0222200110110.01012452542222001101105422109375.08Conversion:Binary to Decimal102?1101.001010245148320010110110428125.22/451101.0010Conversion:Binary to DecimalConversion:Decimal to binary For integer numbers:divided by 2,get its remainders;210

4、10110011179Examples for 8-bit binary numbers:17989 442211521 1 1 0 0 1 1 0 1For decimal fraction numbers:multiplied by radix,and get its integers;Examples for 8-bit binary numbers:21000101011.017.00.170.34 0.681.360.721.440.881.761.52Conversion:Decimal to binary Different number systemsP.28 Table 2-

5、1A short way to represent numbers Binary to octal:3-bit to one digit;Binary to hexadecimal:4-bit to one digit;Key point:divide from the radix point!168285613111011100010BB1682.226.134211.1011100010CEExamples:Conversion:from one system to another Summary:p.31 Table 2-2Binary numbers with certain widt

6、h;The numbers always be set as 0.xxxxxxxx;We can take these numbers as integers!0011011000110110.0Example for an 8-bit binary number:MSB/LSB Numbers in digital systemOperations for unsigned numbersBasic rules:0+0=0 1+0=1 1+1=10 10-1=1 Addition and subtractionC:carry S:sum B:borrow D:difference Basic rules:0A=0 1A=A Multiplication Shift-add:use adders and shift-registers;The product width will be 2n!Operations for unsigned numbers

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 办公、行业 > 各类PPT课件(模板)
版权提示 | 免责声明

1,本文(数字逻辑2-1n.ppt)为本站会员(saw518)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!


侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|