7 thoughts on “Mega8 Logic Tester

  1. At 1:

    Its shorthand for megasamples.

    Neat project, I have something similar built but without the heaps of logic he uses. I use a CPLD (XC9572XL) for most of the counting and control logic. The only logic part i use is a 74AC245 bus switch.

  2. @ jimmys

    The maximum sample rate of my analyser depends on the speed of the RAM utilised (mine are 15 nS cache SRAM’s 32KiB 8 bits wide), 15ns translates into a theoretical maximum of 83 Mhz, but i more often analyse protocols like SPI I2C, so i use the clocking pin of the SPI bus as a trigger (which is much slower).

    This is fed to the CPLD that does all the counting. The design is really simple actually, just a up counter and a few control pins to the atmega of what to sample, divider ratio and input buffer control.

    I never tried it at the theoretical maximum, and i doubt actually it will work flawless at that speed. Its built on a protoboard with wirewrap wiring. The fastest i did was sampling the ISA bus of a old 80286 running at 8mhz, i was checking out what I/O addresses it was using.

    @ 3 poopoo.

    Thanks for the data :-).

  3. This analyzer uses the FT232 for samplingrate generation. The chip is used to output a 24MHz clock which is dived by the counter. The MC then selects one of theses devided clocks or the full 24MHz. This is a really neat design.
    In my eyes the analyzer has the following disadvantages:
    -If a startcondition is needed it has to be monitored by the slow MC.
    -There is no extra logic for different signal levels.

  4. The busdriver of the inputs is an HCT version, so it reads both 5V and 3,3V as high.
    But you are right about the startcondition, although it uses the interrupt to minimize the response time and the recording is stopped quite a time before the RAM overwrites it self again, so that the trigger of the startcondition should be in the data never the less.

    The maximal sampling rate depends on the speed of the logic-ICs and the RAM.
    Theoretically it should be able to be faster than 24MHz, but the FTDI only delivers 24MHz…
    But you can use an external clocksource, which might drive the ICs to their limits and you can even choose on which levelchange (H->L or L->H) you want the data to be sampled.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.