http:^^www.cs.washington.edu^education^courses^467^fall96^lab^lab5^lab5^lab5.html
来自「This data set contains WWW-pages collect」· HTML 代码 · 共 436 行 · 第 1/2 页
HTML
436 行
that is superimposed on a large DC voltage. We willtypically use the DC setting.<H4>Triggering</H4>Triggering determines when the scope samples the signal. In"free" triggering mode, the scope starts sampling a newtrace as soon as the previous trace is finished beingcaptured. This means that the position of edges in aperiodic signal will be placed randomly depending on whenthe scope starts sampling the signal. Free triggering isuseful to get a continuous monitor of a signal, but is notused all that much. Set the triggering to "FREE". Noticethat the waveform seems to "move" as it is redrawn becausethe transitions are not redrawn in the same places. If youwant to freeze the image press <STOP>. Press <START> toresume sampling.<P>Continuous triggering mode (CONT) is like free triggeringexcept that a synchronizing signal is used to determine whento start sampling a signal. This signal is determined bythe parameters called "SOURCE", "COUPLING", "SLOPE" and"LEVEL".<P>The SOURCE of the triggering signal is typically the signalbeing sampled, although it can come from an external source.<P>COUPLING here means the same thing as for the signal itself.We will typically use DC coupling.<P>The trigger is defined by some edge in the signal you areobserving. You indicate whether you want to trigger on therising or falling (+/-) edge using the SLOPE parameter. Youindicate at what point on the edge you want to trigger byspecifying the voltage LEVEL.<P>Change the triggering mode to "CONT" and observe thewaveform again. The waveform should be stable now. This ispossible because continuous triggering uses the triggersignal to start sampling at the same point of the waveformeach time. If the signal is not stable, then you mustadjust the trigger parameters described above. The final parameter, "POSITION", specifies where thetriggering event is displayed on the screen. By changingthis parameter, you can examine events before or after thetriggering event.<H4>Switch Debouncing and Single Traces</H4>Since this is a digital storage scope, you can sample asingle trace and examine it at your leisure. This is SINGLEtriggering mode. First setup the trigger and then press<START>. This will cause just one sampling to take placewhen the first trigger event is detected. Use this todisplay the bounce on your push-button switch as connectedbelow.<p><img src=SPST.jpeg><p>Connect the oscilloscope to the output, depress thepushbutton, and capture the waveform showing what happens asthe switch is closed. (Note: you will need to set a triggerfor the oscilloscope.) You will notice that the output doesnot make a clean transition but bounces around a bit. Howlong does the bounce last? Repeat the experiment severaltimes. Also repeat the experiment observing the output whenthe pushbutton in released. (You will need to change thetrigger setting.)<P>We will now debounce the pushbutton. To debounce this typeof switch (single-pole single-throw or SPST) we will requirea special analog circuit consisting of a resistor,capacitor, and a Schmitt trigger (your 'LS14). You alreadyhave a resistor connected. The circuit should be configuredas:<p><img src=SPST-debounced.jpeg><p> When the button is depressed, the capacitor is shorted toground and is quickly discharged. This makes the output ofthe Schmitt trigger inverter immediately go high. If thebutton momentarily disconnects, the capacitor will startrecharging but only slowly due to the large RC timeconstant. If the time constant is longer than the bouncetime there won't be time to charge the capacitor enough totrip the Schmitt trigger and the output will stay high. Theinternal hysteresis of the Schmitt trigger will prevent itfrom switching again until the input gets very high. Oncethe pushbutton is released, there will be enough time andthe capacitor will eventually charge to 5v and the output ofthe Schmitt triggers will be low. The R and C values shouldbe chosen so that R times C is more than 10 times theduration of the longest bounce in the previous experiment.Also, R should not be larger than 100 kiloohms or the 'LS14 willnot work correctly (its input will sink more current than isbeing provided through R). Compare the waveforms on thepushbutton output before and after you add the debouncingcircuit.<H4>Measuring Propagation Delay</H4>Propagation delay is the time for a change in the input of agate to be reflected at the output. Propagation delays aremeasured from the 50% points of the transitions, the pointsin the transition that are halfway between the high and lowvalues of the waveform. For an inverter we can define twopropagation times: tphl, the transition time for a risingtransition to be propagated, and tplh, the time for afalling transition to be propagated.<p>><img src=prop-delay.jpeg><p>We will measure the delay of one of the 74LS04 inverters inyour kit by connecting the clock generator to one input andcomparing it to the output of the inverter as shown above.Unfortunately, the scope boards do not permit us tosuperimpose two traces on the same display. Therefore, theprocedure for making these measurements is somewhatcomplicated.Connect another scope probe to channel two of your scope.Use one channel of the scope to examine the clock signal andthe other channel to examine the signal coming out of the'04 chip. To make the comparison honest, you should loadthe '04 output with a TTL input (another inverter will dofor this). Are the propagation delays within the range youexpected? Does the delay change if the fanout of theinverter is increased?<H4>Dual Screen Mode</H4>From the scope display screen, press <6> to go into dualscreen mode. The dual screen mode works like the singlescreen mode you used before except that two traces aredisplayed. You can only access one half of the screen at atime. To toggle between the upper and lower halves of thescreen, press the <9> key. The grid overlay you obtained bypressing <3> is disabled in this mode.<P>Adjust the parameters to the two traces until you can seethe signal going into the inverter and the signal coming outof the inverter. To take measurements between thesescreens, you must ensure that the signals are comparable -both traces must have the same timebases and zoom factor.You have already learned how to adjust the timebases. Toensure that both traces trigger from the same source, go tothe scope setup menu. Adjust the triggering parameters sothat both waveforms are in continuous trigger mode with thesame triggering parameters. (You can use the <C> key tocopy a parameter from one channel to another.) Channel oneshould have "INT" as the triggering source. Channel twoshould have "CH1" as its triggering source so that they bothstart sampling at precisely the same time.<P>Return to the scope display and examine the displays.Adjust the timebase parameters and if necessary your clockgenerator to obtain traces from which you can accuratelymeasure propagation delay. Use the cursor and referencecursors to measure the delay from one signal to the other.Make sure the that the zoom factor is identical for bothtraces and that the horizontal trace position is identical.<H3>Hand in: (Due May 10)</H3><oL><LI>Do the frequencies you observed on the oscilloscope match thesetting of your clock generator? How far off are they?<LI>How long does the bounce on your push-button switch last? Howmany edges are there on average? Does the debouncing circuiteliminate the bounce?<LI>What is the delay of a signal through a 74LS04 inverter? Is itwhat you expected given the information in the data sheets?</oL><H3>II. Logic Analyzer</H3>Debugging sequential circuits is much more difficult than debuggingpurely combinational circuits. Logic analyzers sample and collect dataand display the waveforms on their screen. This will enable you toobserve the behavior of your circuit during an entire time intervalrather than at just one point in time as is possible with your probe.<P>In the lab, there is documentation that describes the operation of theTektronix 1230 logic analyzer. You may find using this logic analyzerconfusing at first, so we suggest you read carefully pages 7-9 ofsection 1 which covers general information about using the logicanalyzer. You should also read the rest of this section, but some ofthe information will not make sense until you actually try to use thelogic analyzer. The next step is to try out the logic analyzer usingthe exercises from section 2 in the documentation. The best way tolearn is to try things out and ask questions if you don't understandsomething.<P>Section 2 contains two exercises which rely on a test card (availablein the lab) that contains a simple counter circuit. The firstexercise covers asynchronous operation which uses a free-runninginternal clock to sample data. With this type of sampling, the logicanalyzer will not generate crisp waveform and you'll need tooversample (multiple samples per clock edge) in order to get evenlyspaced transitions on signals. The second exercise covers synchronousoperation which uses a clock that you supply to sample data. Thismakes sense when you want to see the value of signals precisely at theactive edge of the system clock and not deal with the jitter typicallyseen in asynchronous operation. By sampling more wisely, you'll beable to avoid oversampling and collect a longer history into the logicanalyzer's memory.<P>After you have done these two exercises, use the logic analyzer toobserve your 3-bit counter from the previous lab assignment, using thepushbutton switch to generate the clock signal. Connectleads of the logic analyzer to the switch controlling the counter andall its outputs. Have the analyzer trigger on a transition on thedebounced switch. Then do it again without the debounce circuitry(with a switch you know bounces) and see if you get a waveform thatshows the counter counting more than one for a single (bouncy) switchpress. Lastly, try triggering on a counter value of 6 making sure tocollect some data before the trigger (so that you can see the switchevent that caused the counter to advance to 6).<HR><H3>Hand In: (Due TA option</H3><OL><LI>Demonstrate your mastery of the logic analyzer to the TA using thecounter circuit. Your TA should sign your turn in sheet from Part Ito show you have completed the demo.</OL></body><address><hr>ted@cs.washington.edu</address><p></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?