Arduino Forum

Products => Arduino Due => Topic started by: phr3ak on Jan 14, 2017, 05:09 pm

Title: Arduino Due as logic analyzer
Post by: phr3ak on Jan 14, 2017, 05:09 pm
Hello,

Anyone have working code for it?

I'm just trying this project

https://github.com/karawin/logic_analyzer

with no success, the uploaded code seems like doesn't work...
Title: Re: Arduino Due as logic analyzer
Post by: HermannSW on Jan 17, 2017, 10:06 pm
This does not answer your question on Due logic analyzer code.
But you can get fully functional 24Msps logic analyzer with free shipping for less than 5$:
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20170117125131&SearchText=USB+Logic+Analyze+24M (https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20170117125131&SearchText=USB+Logic+Analyze+24M)

I have that one (a 100Msps and a 400Msps as well), and it works fine under Linux (and Windows) as long as 24Msps are accurate enough.

The link you showed says that 10Msps seems to be the limit of that solution (which is good given that Due CPU frequency is 84MHz).

Here I showed how to use Due as 28Msps logic analyzer, but only for a very short time frame because of 96KB ram restriction:
https://forum.arduino.cc/index.php?topic=417851.msg2883182#msg2883182 (https://forum.arduino.cc/index.php?topic=417851.msg2883182#msg2883182)

The 400Msps logic analyzer I have uses an FPGA and lots of internal memory to allow 2.5ns resolution sampling:
https://www.raspberrypi.org/forums/viewtopic.php?p=1087893#p1087893 (https://www.raspberrypi.org/forums/viewtopic.php?p=1087893#p1087893)

Hermann.