收藏 分销(赏)

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

上传人:天**** 文档编号:1923813 上传时间:2024-05-11 格式:PPT 页数:121 大小:3.95MB
下载 相关 举报
《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt_第1页
第1页 / 共121页
《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt_第2页
第2页 / 共121页
《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt_第3页
第3页 / 共121页
《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt_第4页
第4页 / 共121页
《电子技术数字基础-Digital-Fundamentals》双语-第08章-Counters.ppt_第5页
第5页 / 共121页
点击查看更多>>
资源描述

1、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 s

2、equential 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

3、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 Out

4、put 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 de

5、sign 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

6、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 e

7、ach 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

8、.依次假定依次假定初态初态,计算计算次态次态,画出画出状态转换图状态转换图(表表)或或 时序波形图时序波形图 。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、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 t

10、he 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 Diagr

11、amQ 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 Dete

12、rmine 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

13、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

14、 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-

15、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 us

16、ed 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.wInv

17、alid 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

18、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进制)进制)Mo

19、dulus-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=Q0Q1Q2Q3

20、37.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 M

21、SI 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 Diag

22、ram43.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

23、-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

24、-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

25、).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

26、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 calle

27、d 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 Diagr

28、amQQ2 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 Asy

29、nchronously 异步预置异步预置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

30、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:Conver

31、t 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 sta

32、te 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 c

33、ounter 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-stat

34、e 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 1S

35、tep 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 FFExa

36、mple 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.设计一个串行数据检测器。当

37、连续输入设计一个串行数据检测器。当连续输入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 the

38、re 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-ma

39、p0001103 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

40、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可在任意状态下进行预置可在任意状态下进行预置同步预置没有瞬态,异频预置有瞬态。同步预置没有瞬态,异频预置有瞬

41、态。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,synchronous

42、ly(同步预置)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 Lo

43、gics 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 Des

44、ign 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 u

45、sing 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.

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服