版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、2.3 Codes in binary systemBCD codes: for decimal digit;Gray code: for numbers in binary system;ASCII code: for characters;Codes in binary systemKey point : Use n bits, we can make 2n different words;To make n code-words, you must use bits.BCD codesBinary codes for decimal digits ( Table 2-9 ) BCD co
2、desExpress 10 digit ( 09) : use 4 or more bits, many different way for coding8421 codeNatural code , just lake 4-bit binary numbers;Each digit is weighted;It has 10 valid code words and 6 invalid code words. BCD codesEach digit is weighted; plementing;Use MSB to express higher/lower part;It has 10 v
3、alid codes and 6 invalid codes.2421 codesBCD codesExcess-3 codeIts digit is not weighted; plementing ;8421 code + “0011” .BCD codesExamples: use BCD code for decimal numbers A = 19.468421 code : A = 0001 1001. 0100 01102421 code : A = 0001 1111. 0100 1100Excess-3 code: A = 0100 1100. 0111 1001 Key p
4、oint Each decimal digit is coded by a 4-bits string!BCD codes1-out-of-10 codeOne hot code;It is very useful in control systems.BCD codesBiquinary code 7-bits; two hot code; first 2 bits is one hot code for higher/lower range; last 5 bits is one hot code in the range. error-detecting property ! Gray
5、codesTarget: code for continues changed numbers (in binary system) to prevent wrong code happened in transition time;Property : In each pair of successive code words, only one bit changes.Gray codesFrom binary number to Gray code The width is same, the MSB is same; From left to right, if a bit in bi
6、nary number is same as its left bit, the gray code is 0, if it is different, the gray code is 1. Examples: binary number: 1001 0010 0110 0011 Gray codes: 1101 1011 0101 0010Codes for other thingsCharacter codes : ASCII , 7-bits string, 128 code words; p.54 Table 2-11Example: How are you! 1001000 110
7、1111 1110111 0100000 1100001 1110010 1100101 0100000 1111001 1101111 1110101 0100001 Codes for other thingsCodes for actions , conditions or states: Use n bits, we can make 2n different words; To make n different words, we must use bits. p.55 Table 2-12Codes in digital circuitParallel codes use n-line to transmit an n-bits code words ; transmit an n-bits code words in one time p
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《2024年 阴山北麓荒漠草原群落特征研究》范文
- 《2024年 特色中小城市体检与更新联动工作探索-以景德镇市为例》范文
- DB32-T 4831-2024 拖拉机牵引性能综合测试系统通.用技术条件
- 制冷行业节能环保与资源利用方案
- 农产品追溯体系在物流行业的构建方案
- 农业资源环境监测中心建设规划
- 第二单元 位置(单元测试)-2024-2025学年五年级上册数学人教版
- 《安培力的应用》参考课件
- 中国氟塑料制品产业市场深度剖析与投资风险评估报告2024-2030年
- 2017年新版人教版七年级下册英语导学案(全册)
- 专题05《狼》-2024-2025学年七年级语文上册文言文阅读专项训练(人教版部编版统编版)
- 集合的基本运算(第2课时:补集)课件-2024-2025学年高一上学期数学人教A版(2019)必修第一册
- 骨质疏松疾病诊疗与用药考核试题与答案
- 钢筋混凝土圆管涵圆管计算程序(2020规范)
- 2024年秋季人教版七年级上册历史全册教学课件新教材
- 2024-2030年中国槟榔行业市场发展趋势与前景展望战略分析报告
- 《陆上风电场工程概算定额》NBT 31010-2019
- 第1.1课-七律二首-送瘟神-【中职专用】高二语文同步备课课件(高教版2023职业模块)
- 人教版新课标小学美术六年级上册全册优质课件(所有课时)
- 部编(统编)版高中历史必修《中外历史纲要(上)》全册教案教学设计-新教材-含教学计划 教学进度 培优补差计划-
- 人道主义安抚协议书
评论
0/150
提交评论