版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter8sequentiallogicdesignpracticesemphasis:Counter:countercomposedofflip-flopsandMSIcounters,sequencegeneratorShiftregister:datashiftfunction,ringcounter,Johnsoncounter,sequencegeneratoranddetector10/10/202318.1documentationstandardsInlogicblock,inputisontheright,outputisontheleft.inputoutput………………PRCLR……Edge-triggered……CCLKPulse-triggered10/10/202328.2latchesandflip-flops1.SSIlatchesandflip-flops74×74—dualDf-fs74×109—dualJ-K’f-fs74×375—quadDlatch2.Switchdebouncingeliminatebouncingthatoccurswhenthemechanicalswitchisonandoff.3.Bus-holder避免三态输出总线上长期无信号而由噪声、干扰等产生较大电流而损坏器件的问题。10/10/20233SwitchdebouncingSomeswitch,buttonAusualswitchdebouncer当机械触点断开、闭合时,电压信号会抖动。抖动时间的长短由按键的机械特性决定,一般为5ms~10ms。S_LR_LR_LS_LQ10/10/202343.MultibitregistersandlatchesCollectionoftwoormoreDf-fswithacommonclockinput.Cabbeusedtostoredatatemporarily.10/10/202358.4countersAnysequentialcircuitwhosestatediagramisasinglecycle.Transitionofsuccessivestateisunconditional.Modulus—thenumberofstatesinthecycleS1SjSmS3S2……Modulo-mcounter(mstates→n=flip-flops)clocknQ[0..n-1]10/10/20236GeneraltypesofelectroniccountersClassifyincountingsequenceupcounters,whichcountinascendingbinaryorderdowncounters,whichcountindescendingbinaryorderClassifyincountercircuitAsynchronous(ripple)counterSynchronouscounterRingcounterJohnsoncounter10/10/202371、ripplecounters4-bitcounter:Q0Q1Q2Q3Counteroutput(LSB)(MSB)CLKQ1Q0Q3Q2CLKCLKQQTCLKQQTCLKQQTCLKQQT111110/10/202384-bitcounter’sfunctionaltableQ3Q2Q1Q0Q3*Q2*Q1*Q0*0000000100010010001000110011010001000101010101100110011101111000Q3Q2Q1Q0Q3*Q2*Q1*Q0*1000100110011010101010111011110011001101110111101110111111110000000000010010001101000101011001111111111011011100101110101001100010/10/20239Issue1:howtomakeadowncounterbyTf-fs?Issue2:howtomaketheripplecounterbyusingDandJ-Kf-fs?(ashomework,4-bit)--------------------------------------------------------------------------Alsobeactedasadigitalfrequencydivider(divided-by-2n)divide-by-2CLKQ1Q0Q3Q2divide-by-4divide-by-8divide-by-1610/10/2023102、SynchronouscountersAllflip-flopschangetheirstatesatthesametriggeringtimeofacommonCLKsignal.Workingfeatures:
Tsignalpropagatesserially.transitionequations:
Q0*=T0·Q0’+T0’·Q0
Q1*=T1·Q1’+T1’·Q1
Q2*=T2·Q2’+T2’·Q2
Q3*=T3·Q3’+T3’·Q3T0T1T2T3(LSB)(MSB)synchronousserialcounter10/10/202311(LSB)(MSB)T0T1T2T3CNTENsignalcontrolsthef-fssimultaneously;thefastestbinarycountersstructure.Judgethiscircuit’scountingsequence(upordown)?synchronousparallelcounter10/10/202312binarysynchronouscounterdesignwithDflip-flopsExp1:designa3-bitbinarysynchronousdowncounter,counteroutputQ2(msb),Q1,Q0。thefunctionaltable:Q2Q1Q0Q2*Q1*Q0*00011100100001000101101010001110110011010111111010/10/202313excitationtableofthecounterQ2Q1Q0Q2*Q1*Q0*D2D1D0J2K2J1K1J0K00001111111d1d1d0010000000d0dd10100010010dd11d0110100100dd0d1100011011d11d1d101100100d00dd1110101101d0d11d111110110d0d0d1excitationequations:D2=Q2Q1+Q2Q0+Q2’Q1’Q0’D1=Q1Q0+Q1’Q0’D0=Q0’……10/10/202314designsynchronouscounterwithmodulelessthan2nmoduleofthecounterm<2n,thedispositionofunusedstate:minimalriskminimalcost,needtoverifytheunusedstatethatassuresthecircuitcanbereturnedtothenormalExp2:designamodulo-5counter,itcounttheclockticksfrom000to100,synthesisbyDflip-flopinminimalcost.10/10/2023153、MSIcountersandapplicationssynchronous4-bitbinarycounter74×163clearloadingENT=ENP=CLR_L=LD_L=1,countingRCO(ripplecarryoutput):whenQDQCQBQA=1111,andENT=1,RCO=1。hold10/10/202316workinginfree-runningmode(modulo-16counter)MSBLSB74×163isfullysynchronous,itsoutputschangeonlyontherisingedgeofclock.Countingfrom0to1510/10/202317using74×163inm<16modecounterExp:modulo-11counter
method1:feedback-clearmode(反馈清零)—countthefirstmbinarynumberfrom0000.key:whencountingtothenumberm(m-1),thecounterreturnto0000.so,needafeedbackcircuitF,andwhenQDQCQBQA=1010,makeCLR_Lasserted.Q0Q1Q2Q3FCLR_L74×163QAQBQCQDCLR10/10/202318Q3Q2Q1Q0CLR_L0000100011001010011101001010110110101111100011001110100CLR_L=(Q3·Q1)’Q0Q1Q2Q3FCLR_L74×163QAQBQCQDCLR10/10/202319verifytheunusedstateUnusedstates1011~1111:
10110000110011011110111100010010011010101000………Itcanrunautomatically.CLR_L=(Q3·Q1)’10/10/202320using74×163inm<16modecounterMethod2:feedback-loadmode(反馈置数)—countthelastmstatesorarbitrarymcontinualstatesbetween0000and1111.key:makeLD_Lassertedwhencountingtotheendingstate,andtheinitialstateisloaded.①iftheendingstateis1111,usetheRCOoutputtoreloadtheinitialstate.Initialstate=endingstate–countingmodulo+1=15-11+1=5Soallthecountingstateis0101~1111.10/10/202321referencecircuitoffeedback-load10/10/202322②iftheendingstateisn’t1111,needacombinationalfeedbackcircuittoreloadtheinitialstate.
initialstate=endingstate–modulo+1or,endingstate=initialstate+modulo-1like,knowingtheendingstateis13,sotheinitialstate=13-11+1=3or,knowingtheinitialstateis2,sotheendingstate=2+11-1=12circuitdesign:besimilartofeedback-clearmode,noteditsoutputneedtobeconnectedtothe
LD_Lof74×163.10/10/202323referencecircuitoffeedback-loadcountingfrom3to13(0011~1101)10/10/20232474×163cascadingapplicationifthecountingmodulo>16,multiple74×163couldbecascaded.key:countnestingn74×163→maximummodulo16n。connectinglowergradecounter’sRCOoutputtonexthighergradecounter’sENsignal.10/10/202325Modulo-256free-runcounter10/10/20232616<modulo<256countersExp,amodulo-125countermethods:feedback-clear—0~124;feedback-reload—131~255,orarbitrarytwonumberswhosedifferenceis124between0and255.10/10/202327Othercounters74×161,asynchronousclear4-bitbinarycounter.
asynchronousclear:ifCLR_L=0,QDQCQBQAoutput0000immediately.otherfunctionisasthesameas74×163.use74×161tomodulo-11infeedback-clearmode,countending=1011,CountingNQ3Q2Q1Q00000010001200103001140100501016011070111810009100110101011101110/10/202328Othercountersdecadescounter74×160(asynchronousclear)74×162(fullysynchronous)74×1694-btup/downcounter74x160/16274x16910/10/202329Fromcountertotimer555多谐振荡器或与非门构成的双稳电路74×162ncounterclockT=1sModulo-60BCD-7segmentdecoderdisplayer74LS48或74LS49共阴型LED10/10/2023304、decodingbinary-counterstates以计数器的计数输出作为译码器的输入,可在译码器的输出端得到周期为8倍计数时钟的1:8的脉冲。也称为8路顺序脉冲发生电路10/10/20233174×163iscombinedwith74×151toobtainasequence-generator.Exp:a“01100101”sequence-generator计数器+数据选择器法构成的序列发生器的工作特点:只要计数器是有效的,在时钟的触发下,循环地输出序列。10/10/202332supplement:buildingsequence-generatorwithDF-Fs设计方法:顺序计数+组合电路例:试设计一个密码产生器,能依次输出011010。用顺序计数器的每个计数值产生一个码位。000
0001
1010
1011
0100
1101
0Q2Q1Q0Q2*Q1*Q0*SEQ000001000101010100111011100010010111010000110dddd111dddd10/10/202333circuitforsequence-generatorincountermodeU1A74LS74D1D21Q51Q61CLR11CLK31PR4U1B74LS74D1D21Q51Q61CLR11CLK31PR4U2A74LS74D1D21Q51Q61CLR11CLK31PR4U3A74LS00DU3B74LS00DU3C74LS00DU4A74LS10DU3D74LS00DU5A74LS00DU6A74LS32DD2D1D0Q2Q2'Q1Q1'Q0Q0'SEQ10/10/202334课堂练习(1)设计一个序列信号检测器,当电路的输入端X收到连续的“1011”时,输出F为1,并且状态可以重叠。状态赋值采用QmQm-1…,按gray码序。(2)设计一个5进制加/减计数器,当控制信号C=0,计数器按加1计数,当C=1,计数器按减1计数。用D触发器综合。10/10/2023358.5ShiftRegisterAnn-bitregisterwithaprovisionforshiftingitsstoreddatabyonebitpositionatezchtickoftheclock.Classifybystructure:serial-in,serial-outserial-in,parallel-outparallel-in,serial-outparallel-in,parallel-outShift-rightClassifybyshiftingdirection:Shift-left10/10/202336Ann-bitnumberDn-1Dn-2……D1D0isstoredinann-bitshiftregister.Shiftleft:shiftfromLSBtoMSBShiftright:shiftfromMSBtoLSBDnewDn-1Dn-2……D1D0D1……Dn-2Dn-1Qn-1Qn-2Q1Q0…D0D1……Dn-2DnewQn-1Qn-2Q1Q0shiftleftshiftright10/10/2023371、shift-registerstructure(1)、serial-in,serial-outAfternclockticks,aninputbitappearsattheserialoutput.itcanbeusedasapulse-postponedcircuit.inputoutputnclocktickt0tn10/10/202338(2)、serial-in,parallel-out并出serialinparalleloutserial-parallelconversion10/10/202339(3)、parallel-in,serial-outserialout数据并入U1U2D2
Q1
load/shift=1,loaddata,Di=iDload/shift=0,datashift,Di=Qi-11Dn
D100110/10/202340(4)、parallel-in,parallel-out10/10/2023412、MSIshiftregister74×164,serial-in,parallel-outwithasynchronousclearinput(CLR_L).shiftdirectionSERA·SERBRXDTXDMCUU174HC164QA3QB4QC5QD6A1B2CLR9CLK8QE10QF11QG12QH1310/10/202342MSIshiftregister74×194,4-bitbidirectional,parallel-in,parallel-outFunctioninputNextstatefunctionS1S0QA*QB*QC*QD*00QAQBQCQDHold01RINQAQBQCShiftright10QBQCQDLINShiftleft11ABCDload注意:此处的左移(QD到QA)、右移(QA到QD)是针对该器件定义的,与数据单元的左/右移不同。10/10/2023433、applicationofshiftregister:serial/parallelconversioncontrolcircuitparallel-serialconversionparallel-indataparallel-serialconversioncontrolcircuitparallel-outdatasourcedestinationserialdataclocksignalsynchronoussignal10/10/202344数字式程控交换机的时分多路复用系统。10/10/20234510/10/2023465、shift-registercountersbedifferfromthebinaryupordowncounters.ringcounterann-bitshiftregistercanbeusedtoobtainacounterwithnstates.4-bitringcounterQ0*=D0=Q3Q1*=D1=Q0Q2*=D2=Q1Q3*=D3=Q210/10/202347ringcounterinitialstate:Q3Q2Q1Q0=0001D0D1D2D3Q3Q2Q1Q0Q3*Q2*Q1*Q0*00010010001001000100100010000001(D1)Q0(D2)Q1(D3)Q2(D0)Q310/10/202348StatediagramofringcounterAsinglecircleincluding4statescouldbeusedasamodulo-4counter.(byusing4F-Fs)(是顺序脉冲发生器的一种)0001001001001000normalcycleNotself-correcting001101101100100101111110110110110101101000001111Abnormalcyc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 长春职业技术大学《金匮要略》2025-2026学年期末试卷
- 2026六年级数学下册 负数方法拓展
- 【 生物 】生命的延续和发展(第一、二章)复习课件-2025-2026学年人教版生物八年级下册
- 2024高考语文复习的重点
- 中风昏迷患者护理
- 安全生产四查制度讲解
- 美图M8 AI美颜技术
- 2023长春某中学高三数学(理)期末试题及答案
- 2023年军队文职人员招录考试《档案专业》考前模拟题及答案
- 智能化弱电机房工程防雷接地知识
- 2026年丹阳事业单位笔试真题
- 科室廉洁行医管理课件
- 客车交通事故应急演练脚本
- 北京市平谷区滨河街道网格员招聘32人笔试参考题库及答案解析
- 《食品安全监督管理》课件-实训四 食品安全事故调查处理
- 3.3+服务业的区位选择++第1课时课件2025-2026学年湘教版高中地理必修第二册
- 2026四川德阳丰能企业管理服务有限责任公司招聘2人备考题库附答案详解(满分必刷)
- 农村会计大培训实施方案
- 2026年云南高考历史考试真题及答案
- 2026年中小学德育试题及答案
- 2026年ptcd引流管护理考核试题
评论
0/150
提交评论