DSO Quad Logic analyzer application

--DSO203

Moderators: violet, jessie, jpa

jpa
Elementary-2
Elementary-2
Posts: 215
Joined: Wed Nov 02, 2011 4:06 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

DSO Quad Logic analyzer application

Post by jpa » Mon Feb 13, 2012 2:21 am

Hi,

Here is a (preliminary) version of my Logic analyzer for the DSO Quad:
http://essentialscrap.com/dsoquad/logic.html

Image

It has the following features:
  • Easy scrolling and zooming
    20 kB capture buffer (10 - 20 thousand transitions, time unlimited)
    Automatic grid
    Collapsing of long idle periods
    Saving to VCD and BMP
    4 channels, 500kHz samplerate
I wish I could synthetize some code for the FPGA, it would make it so easy to achieve 72 MHz samplerate.

Jerson
Kindergarten
Kindergarten
Posts: 66
Joined: Fri Sep 23, 2011 7:09 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso Nano, dso nano quad
Location: Bombay, INDIA
Contact:

Re: DSO Quad Logic analyzer application

Post by Jerson » Mon Feb 13, 2012 11:43 am

Even though the quad has a lot of issues, this is one of the reasons I like the DSO quad. You can hack it yourself. I still have to get started though ;)

jpa
Elementary-2
Elementary-2
Posts: 215
Joined: Wed Nov 02, 2011 4:06 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: DSO Quad Logic analyzer application

Post by jpa » Mon Feb 13, 2012 3:13 pm

Jerson wrote:Even though the quad has a lot of issues, this is one of the reasons I like the DSO quad.
Indeed. I think this is what makes DSO Quad unique :) Even though there has been some homebrew popping up for Rigol, too, it's not an open platform like the Quad.

johanvm
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Fri Apr 29, 2011 12:46 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO203, logic pirate

Re: DSO Quad Logic analyzer application

Post by johanvm » Tue Feb 14, 2012 4:03 am

Cool, this looks very good!!!
The zooming and scrolling works excellent, fast and smooth. I like it a lot already.
Some cursors that snaps to transitions and basic time-calculations as well as a horizontal time-scale would be nice.
Thanks!
/Johan

glt
Pre-kindergarten
Pre-kindergarten
Posts: 28
Joined: Sun Mar 15, 2009 2:31 am

Re: DSO Quad Logic analyzer application

Post by glt » Tue Feb 14, 2012 2:51 pm

Very, very nice! You said it is limited to 500KHz? Perhaps Seed can help you get the tools for 72Mhz?
Thank you so much!

paf
Pre-kindergarten
Pre-kindergarten
Posts: 40
Joined: Tue Jan 03, 2012 4:12 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: DSO Quad Logic analyzer application

Post by paf » Tue Feb 14, 2012 5:27 pm

Great! Nice to see that somebody is still working on the DSO Quad.

I agree with Johan, the thing I miss most are the timescale display and some cursors.

Congratulations!

Two questions to the author:

How can I download the source code using Windows (without having to download each file separately)

Regarding your superb frequency response analyser: i'm trying to extend the range up to 2MHz, and I try to use the "set_square_frequency" function for generating frequences above 200kHz. But the DSO crashes (hangs) when I call this function. The ___Set (DIGTAL...) calls are the cause, even with good parameters, but I have no idea why!

Patrick

jpa
Elementary-2
Elementary-2
Posts: 215
Joined: Wed Nov 02, 2011 4:06 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: DSO Quad Logic analyzer application

Post by jpa » Fri Feb 17, 2012 7:06 pm

Yeah, time measurements would be a great addition and not that difficult to add. I'll have to do that sometime. I have plenty of plans how to enhance this, but thought I would release something in the meantime :)

You can use e.g. http://tortoisesvn.net/downloads.html to download the code on Windows.

Re: the frequency response app, the measure_rms function waits on the DMA to get the phase correct. See rms_measurement.c line 35-37. If you don't care for the phase measurement, you can comment that out. Otherwise you'll have to wait on the timer instead.

jpa
Elementary-2
Elementary-2
Posts: 215
Joined: Wed Nov 02, 2011 4:06 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: DSO Quad Logic analyzer application

Post by jpa » Sat Feb 18, 2012 5:42 am

Graah :evil:

Just spotted the Ai and Bi lines in the schematic - direct lines from analog inputs to the STM32 - an answer to my prayers!

Spent two hours trying to get them to work, then realized that the resistors R33 and R34 are not actually on the PCB, even though marked in the schematic.

pmos69
Elementary-1
Elementary-1
Posts: 134
Joined: Fri Feb 17, 2012 10:51 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: dso203

Re: DSO Quad Logic analyzer application

Post by pmos69 » Sat Feb 18, 2012 10:14 am

what a mess
Image

Freshman
Pre-kindergarten
Pre-kindergarten
Posts: 13
Joined: Fri Mar 16, 2012 2:27 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: DSO Quad

Re: DSO Quad Logic analyzer application

Post by Freshman » Fri Mar 16, 2012 2:38 am

I have installed your application to my DSO Quad (HW 2.60, Sys_151, App_252, FPGA261) and all I can see after turning DSO on (with third button pressed) is splashcreen with last line of text "Logic Analyzer (c) 2012 jpa". Then it just seems to be stuck here. It does not react to any buttons or signals, I just can't get anything else than splashcreen. Is it a known bug? Or am I doing something wrong?

Thanks for any advice and for your great (from what I have seen and read on your pages) software.

Post Reply