Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/06/10 14:13
Read: times


 
#178949 - Learn, and it will not be irrelevant anymoer
Responding to: ???'s previous message
Why so huge quote that you don't really make use of? Intentionally wasting bandwidth?

Richard said:
Yes, I know about phase detectors, and in this case......they're irrelevant.

If my answer was irrelevant, that would probably be because your question was irrelevant. The phase detection logic can't be discussed until you have a basic understanding how they work. Your comments about how fast a PC is etc clearly shows your only mental picture of measuring a delay is to run a counter at high speed and check how many ticks from signal A flank to signal B flank.

Richard said:
If you can't measure the propagation delays, they're not useful.

I bet most other readers would have a pretty good idea about how to measure propagation delays by now.

In this link, the Maxim circuit needs to detect a 0.8ns change from 16.5 to 17.3 ns propagation delay:
http://www.maxim-ic.com/app-notes...vp/id/1903
A difference is that the Maxim circuit (using a 74HC86) has a comparator intended to toggle around a fixed value. When measuring, you instead use an ADC to measure the mean value of the XOR output.

The propagation delay for a 74x04 inverter is:
7404: 12-22 ns low-to-high and 8-15 high-to-low - averages to about 10-18ns
74LS04: 9-15 ns low-to high, 10-15 high-to-low
74HC04: about 7 ns
74HCT04: about 8 ns
74F04: 2.4-5 ns (F series never mentioned anywhere in thread)

As can be seen, overlap of delay ranges means the delay can't be used as single parameter to differentiate family. But the delay values are within the possible range to measure.

And I did say how you could measure the propagation delay:
Measuring delays is not too hard for most chips. But it's quite hard for a '161 and '163 since there are no direct signal path from in to out that doesn't involve aynchronous pulse on the CP signal. But if really needed, it can be done.
- A 2MHz signal is sent to CP.
- A signal with half that frequency and delayed > one setup time is sent to Dx and to one input of XOR gate.
- The output of Qx is sent to other input for XOR gate.
- The signal /MR can then be held high to let Dx be copied to Qx and the propagation delay measured.


I just noted that for a simple generic hobby tester, it would not be meaningful to implement the specials for a '161 or '163 since they require that the square wave generator doesn't emit just one frequency but two. The least significant bit will toggle at half the frequency of the clock signal, so to get 1MHz out of Q0, you need 2MHz on the clock input. And for synchronous chips, there is normally a need to have an extra delay line to get proper setup times for some of the signals before the clock signal toggles. The concept is still easy, but it takes programmable logic to allow the routing of such signals to enough pins to make it meaningful which means that it costs more work/money than it is worth for some chips. Letting the hobbyist manually route the the signals could solve the complexity problem - all it would need is a display to inform what signals to route where before starting the propagation delay test.

And if you would have done what I have said several times, you would have seen:
http://commons.wikimedia.org/wiki/File...se-XOR.png

http://pstca.com/spice/phasedet/phasedet.htm (shows two frequencies, but your skill should have made you understand the result with same frequency and varying phase - as in varying propagation delay - instead.

That you again and again have questioned a PC:s ability to see the small time difference between two signals so very clearly shows that you do not know about an XOR-based phase detector. And refuse to read up on them before continuing the debate. You may have heard about them, but don't understand them for some magical reason. You may have seen other detectors, but are totally lost on the use of an XOR to compute phase-to-voltage or to compute the difference frequency between to signals.

You are just digging your own grave if you continue to debate without reading up enough to start discuss specific practical aspects of such a detector. If you know how it works, you would also know what factors that controls the precision of it. You would for example know that the slew rate of the XOR does matter, i.e. that delays that gets close to the slowrate speed reduces the precision which is a reason to get an XOR with fast rise and fall times and good drive capabilities.

Richard said:
As I invited you to do before ... show us a schematic, or at least a reasonable block diagram, with the prop-delays on them, to illustrate how you'd do this.

Are you saying that you can't mentally convert the text:
"Send square wave at high speed through chip and let delayed and non-delayed signal mix in XOR gate of best available technology. The variation in delay will vary the low-pass-filtered voltage from the XOR."

+-----+        +-----------+          +-----+   +--------+   +-----+
|     |        |  Subject  |          |     |   |        |   |     |
| OSC o---+----o   under   o----------o     |   | low    |   |     |
|     |   |    |   test    |          | XOR o---o pass   o---o ADC |
+-----+   |    +-----------+    /-----o     |   | filter |   |     |
          |                     |     |     |   |        |   |     |
          ---------------------/     +-----+   +--------+   +-----+

The above was totally outside your grasp to visualize on your own?

You have already received links graphically showing input signals and output results.

If the tested subject has very short delays, it may be good to add an extra delay in that chain to not be too close to a zero phase between the two square wave signals. But this is a hobby project so no one will bother about any temperature compensation, keeping track of the length of signal paths, or worry too much about capacitances. Even a lousy implementation will give a change in the analog value for a change in the propagation delay in the tested chip. And bad low-pass filtering resulting in too much ripple can be compensated for a bit by adding software filtering of the ADC values.

Richard said:
I've done it a number of times, so I have some experience with the issue.

So then, Richard: Please show some schematic or block diagram how you have done this a number of times with a PC? Was the PC the phase detector? The ADC? The delay line? Exactly what did you do that made you need a fast PC? You didn't just use the printer port signals to try to measure time, did you?

Richard said:
Clearly, you've never done this, so that's why you're "waving your hands."

I just got a very interesting mental image: Richard "handwaving" Erlacher. If having a wiki page on handwaving, there would be a huge debate if handwaving should best be illustrated with Harry Potter or with Richard Erlacher.

Richard handwaving: "XOR's won't verify tristate parts without tying the enables active."
Richard handwaving: But how would you use an XOR for an unknown chip?
Richard handwaving: "If you had a PC that literally ran at a high enough rate that it could change each and every device pin concurrently at a 250 ps step, you could, perhaps, detect timing variations that exist between technologies."
Richard handwaving: "Further, the XOR, being two logic levels, is the slowest of all gates, and will often be too slow for speed-testing."
Richard handwaving: "Most importantly, for an XOR-based gate checker, a known-good sample of the same part is needed."
Richard handwaving: "You'll need lots of storage."
Richard handwaving: "First of all, how would you detect that an output is tristate? How would a square wave and an XOR help with that?"
Richard handwaving: "I don't see how that's relevant either, since the PC isn't capable of making observations at a rate high enough to detect differences in propagation delay, rise time, etc."

You continuously think of XOR as a way to compare two multi-bit test patterns.

All the time failing to notice that the XOR is only used for a single output pin, to compare the propagation delay of the signal out from that pin compared to the undelayed stimuli signal. Totally beside any tests for input/output/tristate/... or what truth table the chip may have.


List of 103 messages in thread
TopicAuthorDate
Very nice for third countries but...            01/01/70 00:00      
   My Advice            01/01/70 00:00      
   Today's top award for Stating The Blindingly Obvious...            01/01/70 00:00      
   Doesn't make sense            01/01/70 00:00      
      A microcontroller is a nice logic-chip tester            01/01/70 00:00      
         device in question is not for identifying unknown chips            01/01/70 00:00      
            Wasn't talking about linked device            01/01/70 00:00      
         IC logic still popular here(used)            01/01/70 00:00      
            sure, but            01/01/70 00:00      
               sure, but, but            01/01/70 00:00      
                  sure, but, but, but            01/01/70 00:00      
            Limitations            01/01/70 00:00      
               Areas of Doubt and Uncertainty            01/01/70 00:00      
                  I can imagine one case            01/01/70 00:00      
                     That would have different pinout            01/01/70 00:00      
                     what is all this about identifying chips            01/01/70 00:00      
                        See Richard's post            01/01/70 00:00      
                  Brute Force - The IC pins would curl up before finish            01/01/70 00:00      
                     Actually not too ahrd/expensive to detect chips            01/01/70 00:00      
                        But            01/01/70 00:00      
                           Of course            01/01/70 00:00      
                              Again, it depends on your goals            01/01/70 00:00      
                                 Scope of project is important            01/01/70 00:00      
   It's more interesting            01/01/70 00:00      
   both of my old portable programmers do this            01/01/70 00:00      
      Is there codes?            01/01/70 00:00      
         What, exactly, are you looking for?            01/01/70 00:00      
            unknown is hard....known is easy?            01/01/70 00:00      
               it's possible, but not reliable to check for unknowns            01/01/70 00:00      
                  xeltex superpro            01/01/70 00:00      
                     be careful ... that was several revisions ago ...            01/01/70 00:00      
               RE: known IC logic for test is easy?            01/01/70 00:00      
                  unknown....            01/01/70 00:00      
                     Pardon??            01/01/70 00:00      
                     IF you can't recognize the part, THEN discard it!            01/01/70 00:00      
                     The most likely reason you'd want to do that ...            01/01/70 00:00      
         The code was compiled and in a library            01/01/70 00:00      
            Place..The code was compiled and in a library            01/01/70 00:00      
               Will that help?            01/01/70 00:00      
                  in the future...            01/01/70 00:00      
                     It's just a small-C compiler with intrinsics for SuperPro            01/01/70 00:00      
                        help??            01/01/70 00:00      
                           Can't you just go from first principles?            01/01/70 00:00      
                           If you want that software, you should contact XELTEK            01/01/70 00:00      
                               The code was compiled and in a library???            01/01/70 00:00      
                                 Well, obvisouly!            01/01/70 00:00      
                                 The hardware for this sort of thing is not rocket science            01/01/70 00:00      
                                    library binary            01/01/70 00:00      
                                       I can't purchase the expensive SuperPro            01/01/70 00:00      
                                          homemade            01/01/70 00:00      
                                             this makes no sense            01/01/70 00:00      
                                                missing??            01/01/70 00:00      
                                                   no, I am not            01/01/70 00:00      
                                                      not so fast ...            01/01/70 00:00      
                                                         while all that is valid - to an extent            01/01/70 00:00      
                                                            kitchen table...            01/01/70 00:00      
                                                               Kitchen-table = home built with lacking tools/knowledge            01/01/70 00:00      
                                                                  understand....            01/01/70 00:00      
                                                         Can often be solder problems            01/01/70 00:00      
                                                      multiply            01/01/70 00:00      
                                                         if you use that many ....            01/01/70 00:00      
                                                            work's            01/01/70 00:00      
                                                               because            01/01/70 00:00      
                                                                  You're right in large part, but ...            01/01/70 00:00      
                                                                     did NOT bring this up for any other reason            01/01/70 00:00      
                                                                  back...            01/01/70 00:00      
                                                                     Can have uC or PC as master - just different advantages            01/01/70 00:00      
                                                                        You'll need lots of storage.            01/01/70 00:00      
                                                                           For what?            01/01/70 00:00      
                                                                              You need storage for the 250K test vector sets            01/01/70 00:00      
                                                                     Yes, you have to do the work            01/01/70 00:00      
                                                               "works (sic) flawlessly (sic)"            01/01/70 00:00      
                                                               You haven't the means to determine that it works flawlessly            01/01/70 00:00      
                                                                  XOR normally easier than trying high-end drive + sampling            01/01/70 00:00      
                                                                     That does work if you have one functional part for "seed"            01/01/70 00:00      
                                                                        Can perform time calibrations without specific seed            01/01/70 00:00      
                                                                           None of this works with just an XOR            01/01/70 00:00      
                                                                              Just an XOR?            01/01/70 00:00      
                                                                           These assertions look entirely wrong to me.            01/01/70 00:00      
                                                                              Read up on phase detectors and separate from lgic detect            01/01/70 00:00      
                                                                                 Yes, I know about phase detectors, and in this case...            01/01/70 00:00      
                                                                                    Learn, and it will not be irrelevant anymoer            01/01/70 00:00      
                                                                                       This stuff is still irrelevant until you know the type            01/01/70 00:00      
                                                                                          And the type covered again and again            01/01/70 00:00      
                                                                                             For the purposes described by the O/P it's not relevant            01/01/70 00:00      
                                                                                                Already covered            01/01/70 00:00      
                                                                                                   Until you have a way of ascertaining the ins and outs ...            01/01/70 00:00      
                                                                                                      Obvious, but _you_ singled out propagation delay            01/01/70 00:00      
                                                                                                         various but still MCS-51            01/01/70 00:00      
                                                                                                            Difference hobby or commercial use            01/01/70 00:00      
                                                                                                               you caught a VERY important issue - and did not know            01/01/70 00:00      
                                                                                 avoid kicthen table            01/01/70 00:00      
                                                               there is no way in hades ....            01/01/70 00:00      
                                                                  Not even commercial testers are really commercial grade            01/01/70 00:00      
                                                                     emphasizing the above good post            01/01/70 00:00      
                                                                     I'd guess the application is a bit different            01/01/70 00:00      
                                                                        ah ...            01/01/70 00:00      
                                                                           Yes ...            01/01/70 00:00      
                                       It's always a tradeoff between time and money            01/01/70 00:00      
                                          e-bay??            01/01/70 00:00      
                                             If you find one and buy it ...            01/01/70 00:00      
   If you REALLY want one of these ... but one that works ...            01/01/70 00:00      
   not a defective chip, but ...            01/01/70 00:00      

Back to Subject List