6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 5:11 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: Wed Mar 13, 2019 6:01 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
I was watching a YT video the other day about a $75 (16 channel) logic analyzer. Inside it was driven by an FPGA and some standard USB chip (not much else other than passives).

Of course, the bulk of this tool was in the software side.

I'd like to get me a logic analyzer but I can't justify a lot of money. I'm thinking "hundred-ish". Have you guys had any experience with these?

FWIW, most of the time I would be using it to debug vintage computers and my own SBC's (8-10 MHz tops).

Any recommendations would be appreciated.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 13, 2019 8:15 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Good question... I still have a couple older (60MHz bandwidth) Tektronix scopes, so they help quite a bit. Some years ago I picked up a Saleae Logic-16. These are FPGA based and, as noted, heavy on the software side. They are also quite expensive, albeit very well made and well supported.

https://www.saleae.com/

There are numerous el-cheapo clones available which can use the Saleae software... while I personally don't like that pairing, it exists, just that don't expect the same quality, reliability, accuracy, etc. that you would get by buying the real hardware.

Digilient also offer some interesting hardware/software tools these days. Check out the link below.... USB scope and logic analyzer:

https://store.digilentinc.com/analog-di ... er-supply/

Unfortunately, getting good test equipment at sub-hundred dollar pricing limits you to clone hardware from China and pilfering software from other vendors. Hopefully someone else can come up with something more attractive on the pricing side.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 13, 2019 8:31 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
I really like the Saleae stuff. I might just save up my blow money and go that route.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 13, 2019 11:56 pm 
Offline

Joined: Sun Oct 14, 2012 7:30 pm
Posts: 107
I have every Saleae model they have made. I am a little surprised to see that the Logic 16 Pro is now $999. I got it when it was first announced for 1/2 that.

Their software is top notch, and the guys there are very responsive to software issues. I just wish they had a simple device that would OUTPUT the same signals coming in (like a playback mode). They have teased that one might be coming for years. I use the USBee SX for that purpose, but it is only 8 channels.

If Saleae had a 32+ channel LA, I would already own it. I just ordered a Hantek 4032L, which is a 32 channel LA. I can use their software or the open source stuff with it.

You can buy the Hantek 5034L, which is a 34 channel LA for under $100 off of eBay. I was too chicken to try it after the reviews I saw. I just need it for slow (6502) signals, so it might work fine for that purpose.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 12:12 am 
Offline

Joined: Mon Sep 17, 2018 2:39 am
Posts: 138
Hi!

cbmeeks wrote:
I really like the Saleae stuff. I might just save up my blow money and go that route.


I like the sigrok interface (pulseview), so I recommend any cheap logic analyzer that works with it:

-> Cheaper are the 8ch saleae clones, just search aliexpress for "8ch 24m", about US$8.5 shipped.
-> If you go with the bare boards, you can sample 8 channels at 24MHz or 16 channels at 12MHz, for about US$3.5 (like these https://www.aliexpress.com/item/IEZ-USB ... 58835.html ).But those are not protected, so you need to be careful or add resistors.
-> For an advanced model, the mcuprog logic-16 (see at https://sigrok.org/wiki/Mcupro_Logic16_clone ) can sample 16 channels at 16MHz or 3 channels at 100MHz, for about US$35 shipped.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 8:49 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
It must be worth mentioning hoglet's work which allows recovery of 6502 instruction traces and internal machine state using surprisingly few signals:
Quote:
The 6502 protocol decoder requires just 12 signals plus ground to be connected: D7..D0, RnW, Sync[see below], Rdy and Phi2. From these, it's able to produce full instruction traces
...
In terms of capture hardware, this should work with anything that is supported by Sigrok that has at least 12 channels and can sample at ~5x the CPU speed.
...
I can't really overstate how useful a tool like is can be in diagnosing misbehaving 6502 systems (old or new). If anyone wants to have a play, I'm quite happy to help answer any questions.

Note that Sync is not strictly necessary, and in fact various signals are optional. From the help:
Quote:
    If phi2 is not connected the capture file should contain one sample per falling edge of phi2.
    If rdy is not connected a value of '1' is assumed.
    If sync is not connected a heuristic based decoder is used. This works well, but can take several instructions to lock onto the instruction stream. Use of sync, is preferred.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 9:59 am 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
floobydust wrote:
Digilient also offer some interesting hardware/software tools these days. Check out the link below.... USB scope and logic analyzer:

https://store.digilentinc.com/analog-di ... er-supply/


They also have the Digital Discovery https://store.digilentinc.com/digital-discovery-portable-usb-logic-analyzer-and-digital-pattern-generator/, which is $80 less ($199). By coincidence I ordered one last night. If you've already got an oscilloscope and do mostly digital work, you're not going to miss the analogue features of the Analog Discovery, and for the 6502 the extra 16 channels are going to make life a lot more pleasant.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 11:55 am 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
Some years ago I bought an Intronix Logicport LA 1034 to figure out a strange behaviour of a MC68332 dealing with parallel I/O. The Logicport simply worked as expected.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 6:47 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
I have an original Saleae Logic 8 which is nice but a little temperamental, some Saleae logic 8 clones (half of which work with the Saleae software and half which need Sigrok) and a Hantek 6022B 16 channel analyzer.

The big problem with all of these is that they fail to achieve the maximum USB transfer rate (24 MB/s) so they can't really be used on signals over 8-10Mhz.

The Hantek was a mistake. I thought it contained memory to buffer the USB but it doesn't so the maximum rate is a theoretical 12 MB/s but as most PCs share the USB bus with mice, webcams, keyboards and my PIC programmers.

I'd like a self contained analyzer with some protocol decoders built in. I need one at the moment to watch some serial signals in real time and might waste some cash on one of these ...

https://www.ebay.co.uk/itm/Mini-LA104-Logic-Analyzer-4-Channels-20xDuPont-Cable-5xHook-Max-100Mhz-Sample/183724817248

.. but really I'd like 32+ signals.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2019 8:19 pm 
Offline

Joined: Mon Sep 17, 2018 2:39 am
Posts: 138
Hi!

BitWise wrote:
I have an original Saleae Logic 8 which is nice but a little temperamental, some Saleae logic 8 clones (half of which work with the Saleae software and half which need Sigrok) and a Hantek 6022B 16 channel analyzer.

The big problem with all of these is that they fail to achieve the maximum USB transfer rate (24 MB/s) so they can't really be used on signals over 8-10Mhz.



Oh, in my (6 year old) notebook, with pulseview, I always use 24MB/s sampling rate with my Saleae clone, and routinely sample a few minutes at that rate. I use Linux and last pulseview and fx2law firmware.

I understand that old firmware had a bug that prevented using the full bandwidth, bit in mi experience that do not happens anymore.


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 15, 2019 3:27 am 
Offline

Joined: Sun Oct 14, 2012 7:30 pm
Posts: 107
I use 40 MB/S with my Saleae Logic 16 and 100 MB/S with my Logic 16 Pro. No issues at all. The Logic 16 Pro has the USB3.0 interface (dual connectors). Sample rates have never been an issue with my Saleae or USBee products. The Hantek 4032L has 2GB of memory for buffering, but it will also run in stream mode.

I tried Pulseview a few days ago, but it won't work with any of my Saleae products. The only one it recognizes at all is the Logic 16 (not the Logic 8 or the Logic 16 Pro), and selecting it results in Pulseview crashing. I looked at the "novel 6502 Protocol Decoder for Sigrok 6502" info. It requires that you compile it, which I don't want to figure out how to do. If there was some plug-in or something already done, I would LOVE to look at it. Does anyone actually have that working?


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 15, 2019 4:46 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
AIUI, Dave's first go at the 6502 protocol analyser was as a Sigrok plugin, but ultimately he wrote a standalone decoder in C - it should be portable and easy enough to build, but if you have difficulty, you can probably get help.
Quote:
... I've re-written this in C, because I was getting frustrated at waiting minutes for the python/sigrok version to run. The C version is ~200x faster, and I'm also much faster at working in C than Python! The code is in it's own github repository now:
https://github.com/hoglet67/6502Decoder


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 15, 2019 6:11 pm 
Offline

Joined: Sun Oct 14, 2012 7:30 pm
Posts: 107
I am not much of a 'C' guy. I was hoping that someone had already built a Windows version. :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 15, 2019 6:21 pm 
Offline

Joined: Sun Jun 29, 2014 5:42 am
Posts: 352
JimDrew wrote:
I am not much of a 'C' guy. I was hoping that someone had already built a Windows version. :)

What version of Windows are you running?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: