Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Software Hardware Technology

Open Source Logic Analyzers? 29

Rorschach1 asks: "I'm a hardware hacker, doing my part to develop useful open source projects, but my projects are getting more ambitious and my test equipment just isn't keeping up. PC based oscilloscopes have been discussed here before, but I'm particularly in need of a logic analyzer. The BitScope does offer an 8-channel analyzer with Linux support, but that hardly compares to most commercial offerings. I'm also concerned by the fact that I can't find any independent reviews of the device, and I'm hesitant to shell out $500 without knowing what I'm getting into. A logic analyzer is a pretty simple device. My current setup runs on a dedicated 486 with ancient DOS-based software. Surely there must be a more modern option available that'll work under Linux, but so far I've been able to find nothing. Perhaps someone can point me in the right direction?"
This discussion has been archived. No new comments can be posted.

Open Source Logic Analyzers?

Comments Filter:
  • found via google (Score:1, Interesting)

    by Anonymous Coward
  • by HotNeedleOfInquiry ( 598897 ) on Monday April 12, 2004 @02:48PM (#8839991)
    You have not defined what type of logic analyzer you need. They span the range of 10mhz and 8 inputs for less than $200 to 1ghz and hundreds of inputs for tens of thousands of dollars. You didn't say if you needed disassembly or a processor pod.

    Sometimes I think that all you need to get your question in "Ask Slashdot" is to preface it with "I'm looking for an open-source blah blah blah..."

    • by Rorschach1 ( 174480 ) on Monday April 12, 2004 @05:10PM (#8841474) Homepage
      Nothing terribly fancy. Say 16 channels and 50mhz. Much of what I'm doing is SPI bus and only needs a few channels, but I do sometimes find myself needing more than the 8 provided by the BitScope.

      Something that could look at a data line and clock line and give me a hex dump of the data would be nice, but I don't really need any more intelligence than that.
      • You might want to check out http://www.rockylogic.com. They have cute little 8 and 16 bit usb analyzers. Their products work well and they have fast delivery to the US (they are located in the UK). I don't know about Linux support, as we've only run them under Windows.
    • 'Ask a better question'? I take it you've never submitted a story to Slashdot before. =] I guess too many details like that ruin the story, so they tend to get edited out.

      I guess I shouldn't complain. This time it only came out sounding poorly defined. Last time my question just sounded stupid.
  • by stienman ( 51024 ) <adavis@@@ubasics...com> on Monday April 12, 2004 @02:56PM (#8840062) Homepage Journal
    Take a PIC microcontroller, add a Xilinx fpga, and a few misc other items and you have a decent logic analyzer [dyndns.org].

    Check out his Carmon project if you're interested in long term GPS data tracking (stores a GPS data stream to a compact flash card)

    -Adam
    • Heh, that's pretty neat. I was considering something like this. Actually...yup...I have every single part listed. BTW that's not an FPGA, that's a CPLD. The particular one in that project is very inexpensive, about a dollar...that's why I have a few on hand. Actual FPGAs run in the tens to fifties.
      • I re-read the page and noticed that it was cpld after I'd posted my earlier response. When I write "Xilinx" my hands automatically include FPGA afterwards. CPLDs and FPGAs have more in common than they have differences in many points of view. Cost is the big one. Power consumption and complexity are two others. Other than that, they are both programmable logic devices...

        -Adam
        • CPLDs and FPGAs have more in common than they have differences in many points of view. Cost is the big one. Power consumption and complexity are two others. Other than that, they are both programmable logic devices...

          Yup. And and this [pipercubforum.com] is the same as this [boeing.com].

          And and this [shoptheplace.com] is the same as this [fas.org].

          (all links safe for work)

          BTW: This is only for laughs.

          But on a serious note, a modern FPGA can have a LOT of extra goodies on board, such as hardware multipliers, embedded dual-port RAM and FIFOs, PLLs, and even pro

  • don't look to SCO for any Open Source Logic Analyzers.
  • by martinde ( 137088 ) on Monday April 12, 2004 @03:03PM (#8840120) Homepage
    I know this is not what you asked and is probably out of most hobbiest budgets, but I'll mention it anyways as it could help someone. A project we did here absolutely required a scope, and we considered a logic analyzer as highly desirable but not strictly necessary. We had a budget of around $5k - significant but not really that big when you start pricing this stuff.

    It had been a while since I shopped for this stuff and I happily found that Agilent (used to be HP) has what they call "mixed signal scopes". Specifically, we purchased a 54622D. It's 100MHz 2 channel oscillscope, but then it's also got a 16 channel logic analyzer built in. (See full specs here [testequity.com].) We purchased it used for around $2600. To get that price we had to play two of the used dealers against each other a little bit. We have been really happy with it so far. $2600 is quite a bit more than $500, but you do get both a scope and a small logic analyzer for that... It's got a built in serial interface and floppy, and it's more portable than dragging a computer around. Take care, and good luck with your quest!
    • I have used these, and definitely recommend them. A good solid scope and analyzer, even though the bandwidth and number of digital inputs isn't incredibly impressive. The computer link is pretty handy. It probably is adequate for most people.
    • That'd be awesome. I just checked eBay, though, and the only one listed there recently went for $3000. Can't really justify that at the moment, but if I see one cheap I'll be sure to grab it.
  • Comment removed (Score:4, Insightful)

    by account_deleted ( 4530225 ) on Monday April 12, 2004 @03:18PM (#8840242)
    Comment removed based on user account deletion
  • You'll probably only be able to get timing resolution near that of the OS tick interrupt interval, right? Sounds like the makings of a piss-poor logic analyzer.

    I suppose if you were using an open source OS kernel, one where you could change the OS tick interval -- you might be able to make use of your logic analyzer idea.

    • Re:Timing? (Score:3, Informative)

      by martinde ( 137088 )
      > You'll probably only be able to get timing resolution near that of the OS tick interrupt interval, right?

      Only if you do it using a hardware resource under control of the OS and do polling. Even the parallel port can generate interrupts to the OS. Add a microcontroller and/or some custom hardware and the OS doesn't come into play except for display.
  • by xtal ( 49134 ) on Monday April 12, 2004 @08:52PM (#8843341)
    I jerry rigged something "good enough" awhile back with a Xilinx 4000 series FPGA and a microcontroller. I might clean it up and release it if there's any demand, but it's pretty simple to implement a basic one.. you just need a bunch o latches synced to a clock.

    Anything more than 10-20mhz you are going to have to buy something though.. although I never did tests to see how fast or reliable my hacked apparatus was.

    Go ebay hunting. Lots of deals on there.
    • Well i am quite interested in what you made. Could you just give an overvieuw? or a little page describing your project?

      I am now currently developing an microcontroller with an CPLD type logic analyser, still in its breadboard stage and it contains:

      - DS89C420, Fast 8051 derivative from maxim-ic, its available for free as part of their excellent sample program. (free)
      - 32K 10ns SRAM's out of an 80486 mainboard. (free from a mainboard)
      - Several 74F244 bus drivers. (F logic for high speed) But maybe would b
  • by John Miles ( 108215 ) * on Tuesday April 13, 2004 @01:32AM (#8844953) Homepage Journal
    ... when their designer announced them on the sci.electronics newsgroups. Unfortunately the control software is not open-source, but he might be persuaded to release the interface specs if someone volunteered to do a Linux port.

    http://www.rockylogic.com/products/ant16.html [rockylogic.com]
  • HP 1631D (Score:3, Interesting)

    by dfranks ( 180507 ) on Tuesday April 13, 2004 @02:49AM (#8845287) Homepage
    You might want to get something off the shelf instead of investing lots of time in building something. I purchased an HP 1631D for around $120, they seem to be going for around $200 on ebay now. This scope gives you 43 channels (can mix between state and timing with a few predefined setups) and 2 channels of 20mhz analog.

    The oscilloscope channels have limited voltage swings, but are good enough for most of the work I have done. You can always build/purchase dividers to measure higher voltages.

    If you do get a 1631 or something similar, make sure it has the pods and test clips. They get pretty expensive to purchase/replace.

    Dean

  • by rfmobile ( 531603 ) on Tuesday April 13, 2004 @09:10AM (#8846922) Homepage

    With some level shifting circuitry you can turn any common RS232 serial port into a 4 channel logic analyzer. It you've got +5 volt TTL levels, you can probably get away without any extra circuitry.

    Say what?!

    Yep. Most anyone can do this. In my case, I went so far as to write a device driver that makes it work under Windows NT/2K/XP. It hooks the serial ports interrupt service routine and logs the state of the UART's modem status register or MSR. Four bits from the MSR tell us the state of the CTS, DCD, DST, and RI input pins. I use the RDTSC instruction which offers ridiculous accuracy (theoretically, it's the CPU's clock speed) compared to most other software based solutions - even betten than some coarse-grained hardware solutions.

    The same could easily be done under Linux or anything with a serial port and Pentium compatible processor.

    I never thought anyone would be interested so no website or anything. Interested persons can send me an email ...

    mailto:rfmobile@swbell.net

    -rick

I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain"

Working...