《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 电子技术数字基础-Digital-Fundamentals 电子技术 数字 基础 Digital Fundamentals 双语 08 Counters
- 资源描述:
-
Chapter 8 Counters(and the Sequential Logic)1.ContentswIntroductionwAnalysis of the Sequential LogicwCounterswDesign of Sequential Logics2.8-0 IntroductionwThe digital electronic logic is classified as the combinational logic and the sequential logic.w(数字电路分为:数字电路分为:组合逻辑电路及时序逻辑电路组合逻辑电路及时序逻辑电路)wThe sequential logic includes the combinational logic section and the memory section.3.8-0 Introduction The logic diagram for the general sequential logicCom-Com-bina-bina-tional tional LogicLogicMeMemormory yx x x x1 1 1 1x x x xi i i i y y y y1 1 1 1y y y yj j j j q q q q1 1 1 1q q q ql l l l z z z z1 1 1 1z z z zk k k k X=X=X=X=(x1,x2,xi,)(x1,x2,xi,)Y=(yY=(yY=(yY=(y1 1 1 1,y,y,y,y2 2 2 2,y,y,y,yj j j j,),),),)Q=Q=Q=Q=(q1,q2,ql,)(q1,q2,ql,)Z=(zZ=(zZ=(zZ=(z1 1 1 1,z,z,z,z2 2 2 2,z,z,z,zk k k k,),),),)Y=FX,QY=FX,QY=FX,QY=FX,QZ=GX,QZ=GX,QZ=GX,QZ=GX,QQ Q Q Qn+1n+1n+1n+1=HZ,Q=HZ,Q=HZ,Q=HZ,Qn n n n Output Output Output Output Exp.Exp.Exp.Exp.State Exp.State Exp.State Exp.State Exp.Excitation Excitation Excitation Excitation Exp.Exp.Exp.Exp.输出方程驱动方程状态方程4.8-0 IntroductionwThe sequential logic is classified as the asynchronous one and synchronous one(异步时序异步时序电路和同步时序电路)电路和同步时序电路).wThe analysis and design of the sequential logic is discussed in this chapter.And the counter is the most useful device.5.8-2 Synchronous Counter Operation(同步计数器)&Analysis of the Sequential Logic(时序电路分析)wSynchronous(同步同步):Events that have a fixed time relationship with each other.wSynchronous counter:the counter whose flip-flop(FF)are clocked at the same time by a common clock pulse.6.8-2-1 Analysis of the Sequential LogicwWhats the function of the following logic diagram?How to analyze this diagram?7.8-2-1 Analysis of the Sequential Logic-ProcedureProcedure:1.Write down the clock and excitation expressions for each FF.2.Get their state expressions by replacing the logic expression for the FF with its excitation expression.1.1.写出每个触发器的时钟方程和驱动方程;写出每个触发器的时钟方程和驱动方程;2.2.将驱动方程代入触发器的特性方程,得到状态方程组;将驱动方程代入触发器的特性方程,得到状态方程组;8.8-2-1 Analysis of the Sequential Logic-Procedure3.3.写出输出方程;写出输出方程;5.5.说明电路的逻辑功能。说明电路的逻辑功能。4.4.依次假定依次假定初态初态,计算计算次态次态,画出画出状态转换图状态转换图(表表)或或 时序波形图时序波形图 。3.Write down the output expression;4.Assume the present state,and analyze the next state,and draw its state diagram(状态转换图状态转换图)/state sequence table(状态转换表状态转换表)or its timing diagram(时序图)(时序图).5.Determine the logic function of the logic diagram.9.8-2-1 Analysis of the Sequential Logic Example1wEx.1 Determine the logic function.Synchronous Sequential Logic1.Write down the clock and excitation expressions for each FF.Toggle at the positive edge.T FFJ=K=110.8-2-1 Analysis of the Sequential Logic Example14.Assume the present sate,and analyze the next state,and draw its state diagram/state sequence table or its timing diagram.11.8-2-1 1 Analysis of the Sequential Logic State Sequence Table(状态转换表)State Sequence Table12.8-2-1 Analysis of the Sequential Logic State Diagram(状态转换图)00000000010101011010101011111111State Sequence TableState DiagramQ Q Q Q1 1 1 1Q Q Q Q0 0 0 013.8-2-1 Analysis of the Sequential Logic Timing Diagram(时序图)Timing Diagram14.8-2-2 A 2-Bit Synchronous Binary Counter00000000010101011010101011111111A 2-bit synchronous binary counter(2位同步二进制位同步二进制/4进制进制 加法计数器)加法计数器)15.8-2-3 A 3-Bit Synchronous Binary CounterwEx.2 Determine the logic function.16.8-2-3 A 3-Bit Synchronous Binary Counter17.8-2-3 A 3-Bit Synchronous Binary CounterA 3-bit synchronous binary counter(3位同步二进制位同步二进制/8进制进制 加法计数器)加法计数器)18.8-2-4 A 4-Bit Synchronous Decade Counter19.8-2-4 A 4-Bit Synchronous Decade Counter20.8-2-4 A 4-Bit Synchronous Decade CounterA 1-bit synchronous decade counter(同步十进制加法计数器)同步十进制加法计数器)21.8-1 Asynchronous Counter Operation (异步计数器异步计数器)wAsynchronous:refers to events that do not have a fixed time relationship with each other and,generally,do not occur at the same time.wAsynchronous counter:counter in which the FF do not change states at exactly the same time because they do not have a common clock pulse.22.8-1-1 Analysis of Asynchronous Sequential LogicwDetermine the logic function.Asynchronous Sequential Logic23.8-1-1 Analysis of Asynchronous Sequential Logic24.8-1-1 Analysis of Asynchronous Sequential Logic25.8-1-1 Analysis of Asynchronous Sequential Logic26.8-1-1 Analysis of Asynchronous Sequential Logic27.8-1-1 Analysis of Asynchronous Sequential LogicState Sequence TableState DiagramA asynchronous decade counter(异步十进制加法计数器)异步十进制加法计数器)28.8-1-2 Some Useful ConceptswValid states(used states)(有效状态)states used by the diagram in normal operation.wInvalid states(unused states)(无效状态)states which arent used by the diagram in normal operation.29.8-1-2 Some Useful ConceptsValid StatesInvalid StatesValid CycleInvalid Cycle30.8-1-2 Some Useful ConceptswValid Cycle(有效循环)Cycle that includes the valid states.wInvalid Cycle(无效循环)Cycle that includes the invalid states.31.8-1-2 Some Useful ConceptswStartup automatically(自启动功能)If a logic diagram doesnt have invalid cycle(无效循环),it can startup automatically.(电路进入无效状态之后电路进入无效状态之后,在在CPCP脉冲作用下脉冲作用下,能自动返回有能自动返回有效循环效循环,称电路能够自启动称电路能够自启动,否则为不能自启动)否则为不能自启动)wSelf-startup check(自启动检查)Check if all the invalid states can enter the valid cycle automatically.32.State DiagramStartup automaticallySelf-startup check33.8-3 Counters 8-3-1 Categories of CountersThe counter can be classified as the following categories:34.8-3-1 Categories of CountersModulus-2 counter (2进制)进制)Modulus-10 counter(10进制)进制)Modulus-60 counter(60进制)进制)Modulus-M counter(M进制进制,任意进制)任意进制)35.8-2-5 Synchronous Binary CountersQn+1=TQn+TQnC=Q0Q1Q2Q3Negative edge-triggered 36.8-2-5 Synchronous Binary Countersf01/2f01/4f01/8f01/16f01/16f0The counter is also called the frequency divider(分频器分频器).C=Q0Q1Q2Q337.8-2-5 Synchronous Binary Counters-74161 MSI modulus-16 counterCounter,Divider,Modulus-16(16进制进制)38.8-2-5 74161 MSI modulus-16 counterParallel data inputs(并行输入端)并行输入端)Data outputs/States Clock PulseActive at the positive edgeENT,ENP:Enable Pins 39.8-2-5 74161 MSI modulus-16 counter40.8-2-5 74161 MSI modulus-16 counterPreset input(Load)(预置端)预置端)(同步预置同步预置)Active-low,synchronously Clear input(清零端)清零端)(异步清零异步清零)Active-low,asynchronously 41.8-2-5 74161 MSI modulus-16 counterAt the terminal count of 15,RCO=1.Ripple clock output(进位脉冲进位脉冲)42.8-2-5 74161 MSI modulus-16 counterState DiagramTiming Diagram43.8-2-5 74161/74163 MSI modulus-16 counterLogic Function Table(功能表)功能表)for 74161/7416344.8-2-5 74161/74163 MSI modulus-16 counterClear input(清零端)清零端)(异步清零异步清零)Active-low,asynchronously 45.8-2-5 74161/74163 MSI modulus-16 counterPreset input(Load)(预置端)预置端)(同步预置同步预置)Active-low,synchronously 46.8-2-5 74161/74163 MSI modulus-16 counterOnly when both of EP and ET are active,is the counter enabled(in counter operation).The outputs plus one at the positive-edge of CP 47.8-2-5 74161/74163 MSI modulus-16 counterOnly when both of EP and ET are active,is the counter enabled(in counter operation).48.8-2-5 74160 MSI modulus-10 counter74160 synchronous BCD decade counter(CTR DIV 10 modulus-10,10 states)49.8-2-5 74160 MSI modulus-10 counterClear asynchronously 异步清零异步清零The clear input is active-LOW.50.8-2-5 74160 MSI modulus-10 counterA timing diagram showing the counter being preset to count 7(0111).Preset synchronously 同步预置同步预置When the preset input is nonactive,the parallel inputs have no use.The outputs are preset to the corresponding data input only at the active edge of CP.51.8-2-5 74160 MSI modulus-10 counterWhen the terminal count is 9(TC=9),RCO=152.8-2-5 74160 MSI modulus-10 counterIf any of ENP and ENT is nonactive(LOW),the outputs are disabled,remain in present states53.8-3 Up/Down Synchronous Counters(可逆可逆/加减计数器加减计数器)wBy the control of the up/down input,the counter,on one hand,can increase one by one;on the other hand,can also decrease one by one.wThis kind of counter is called up/down(加减加减)one,bidirectional(可逆)(可逆)counter,also.54.8-3 Up/Down Synchronous CountersA basic 3-bit up/down synchronous counter55.8-3 Up/Down Synchronous CountersUp/down sequence for a 3-bit binary counterState Sequence Table for a 3-bit binary counter56.8-3 Up/Down Synchronous CountersState DiagramQQ2 2Q Q Q Q1 1 1 1Q Q Q Q0 0 0 0000000000 0 0 0000000001 1 1 1111111110 0 0 0111111111 1 1 1010101010 0 0 0010101011 1 1 1101010100 0 0 0101010101 1 1 1Up sequenceDown sequence57.8-3 Up/Down Synchronous CounterswLogic function table for MSI 74191-a synchronous modulus-16 up/down counterPreset Asynchronously 异步预置异步预置58.8-3 Up/Down Synchronous CounterswLogic symbol for MSI 74190-a synchronous modulus-10 up/down counter59.8-3 Up/Down Synchronous CountersTiming Example For a 74190Preset Asynchronously 异步预置异步预置60.8-4 Design of Sequential Logics(时序电路设计)Sequential logic designSSI Sequential logic design(小规模小规模)-Design sequential logic using flip-flops 用触发器设计时序电路用触发器设计时序电路MSI Sequential logic design(中规模中规模)-Design modulus-M counter using MSI modulus-N counter用用N进制中规模集成计数器设计任意进制中规模集成计数器设计任意M进制计进制计数器数器61.8-4-1 SSI Sequential logic design-Sequential Logics Design using FFProcedure:wStep 1:Convert the given problem to a logic problem.Assume the input,output and state variables.wStep 2:Get its state diagram.wStep 3:Get its state sequence table.wStep 4:According to the number of the states,draw a corresponding number-variable K-map.62.8-4-1 Sequential Logics Design using FFwStep 5:Get the state expressions using K-map.wStep 6:Choose the needed flip-flop.wStep 7:Get the excitation expressions according to the state expressions and logic expression for the corresponding flip-flop.wStep 8:Sketch the logic diagram.63.8-4-1 Sequential Logics Design using FFExample 1Ex.1:Design a modulus-13 counter with cascaded output.Step 1:Assume the input,output and state variables.Output:CState variables:S0,S1S12State diagram.64.8-4-1 Sequential Logics Design using FFExample 113 states:4 flip-fops(13=24)Step 2:State sequence table.65.8-4-1 Sequential Logics Design using FFExample 1wStep 3:next-state K-map.Present state:0000Next state:0001 Output:0Dont care conditions66.8-4-1 Sequential Logics Design using FFExample 1wStep 4:Get k-map for each state.(Optional)67.8-4-1 Sequential Logics Design using FFExample 1Step 5:Get the state expressions.68.8-4-1 Sequential Logics Design using FFExample 1Step 5:Get the output expression.C=Q3Q2Step 6:Choose the flip-flop:J-K flip-flop.69.8-4-1 Sequential Logics Design using FFExample 1Step 7:Get the excitation expression.70.8-4-1 Sequential Logics Design using FFExample 1Step 8:Draw the logic diagram.C=Q3Q271.8-4-1 Sequential Logics Design using FFExample 1wStep 9:Self-startup check(自启动检查自启动检查)It can startup automatically.72.8-4-1 Sequential Logics Design using FFExample 2Ex.2:Design a logic diagram that can check the series data.When there are three or more than three HIGH inputs in series,the output is 1;otherwise,the output is 0.设计一个串行数据检测器。当连续输入设计一个串行数据检测器。当连续输入3个或个或3个以上个以上1的时候,输出为的时候,输出为1;否则为;否则为0。73.8-4-1 Sequential Logics Design using FFExample 2wStep 1:Analyze the problem,assume the input/output variables,and get its state diagram/state sequence table.Assume:X:the input variable;Y:the output variable;States:S0 the input is 0;S1 there is only one HIGH input.S2 there is two HIGH inputs in series.S3 there is three or more than three HIGH inputs in series.74.8-4-1 Sequential Logics Design using FFExample 2wStep 2:State sequence tableEquivalent States(等价状态等价状态)The input75.8-4-1 Sequential Logics Design using FFExample 2Step 3:K-map0001103 states:2 flip-fops(3 N,more than one MSI device is needed.107.8-4-3 Sequential Logics Design using MSI Counterw1.MNSkip N-M statesTwo methods:(1)Implement it using the CLEAR(RESET)input (generally the CLEAR input is asynchronous).(利用清零端,反馈归零法)(2)Implement it using the PRESET input.(Some of the PRESET input are asynchronous,and others are synchronous)(利用预置端,置数法)108.8-4-3 Sequential Logics Design using MSI CounterMomentary/Astable state(瞬态),not included in the valid cycle.异步清零,瞬态不包括在有效循环中异步清零,瞬态不包括在有效循环中Preset the states at any state可在任意状态下进行预置可在任意状态下进行预置同步预置没有瞬态,异频预置有瞬态。同步预置没有瞬态,异频预置有瞬态。109.8-4-3 Sequential Logics Design using MSI CounterOnly when both of EP and ET are active,is the counter enabled(in counter operation).wEx.1 Implement a modulus-6 counter using 74160.w Logic Function Table for 74160Clear inputActive-low,asynchronously(异步清零)Preset input(Load)Active-low,synchronously(同步预置)110.8-4-3 Sequential Logics Design using MSI CounterModulus-10 Counter111.8-4-3 Sequential Logics Design using MSI Counter(1)Logic circuit using the Clear/Reset input.0001011001010100001000110000/0/0/0/0/1/1Problem:?Its too short to clear each flip-flop.Momentary state112.8-4-3 Sequential Logics Design using MSI CounterThe improved circuit:Remain active(LOW)until CP becomes LOW.113.8-4-2 Sequential Logics Design using MSI Counter(2)Logic circuit using the Preset input.000101010100001000110000/0/0/0/0/1/1Stable stateNotice the levels of the parallel inputs114.8-4-3 Sequential Logics Design using MSI Counter000110010100001000110000/0/0/0/0/1/0Stable stateNotice the levels of the parallel inputs115.8-4-3 Sequential Logics Design using MSI CounterComparison:1.Different preset states.2.Different cascaded output.3.Different states in which to preset.116.8-4-3 Sequential Logics Design using MSI CounterEx.Design a modulus-24 counter using 74LS160.Method 1:24=64117.8-4-3 Sequential Logics Design using MSI CounterwMethod 2:1010=100 24118.Assignment 1/31.Analyze the logic function of the following logic diagram.2.Page510-8,10,13119.Assignment 2/33.Assume the sate diagram for one sequential circuit shown as the following diagram.Sketch the logic diagram to implement the given state diagram with JK flip-flops.101000111011010120.Assignment 3/34.Determine the overall modulus of the following logic diagram.121.展开阅读全文
咨信网温馨提示:1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。




《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt



实名认证













自信AI助手
















微信客服
客服QQ
发送邮件
意见反馈



链接地址:https://www.zixin.com.cn/doc/1923813.html