VUSB as a osciloscope = interrupts / sample rate

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
damgad
Posts: 2
Joined: Mon Oct 28, 2013 11:07 pm

VUSB as a osciloscope = interrupts / sample rate

Post by damgad » Mon Oct 28, 2013 11:23 pm

Hello all!

I'm trying to make something like osciloscope using avr and V-USB. (min sample rate ~ 3kHz) The idea is to use ADC and send each sample by USB to PC. Preferably as a HID device.

The problem appears when I try to enable other than VUSB interrupts. Even if I enable interrupts ( sei() ) in my ADC interrupt procedure ( SIGNAL(SIG_ADC) ).
The priority of ADC interrupt is lower (by default) than INT0 used by VUSB.

Is there any way to make it works?

I'm trying for few days, I've found and read a lot of examples but neither is useful for me.

Any hints?

matrixstorm
Posts: 16
Joined: Tue Sep 18, 2012 2:30 pm

Re: VUSB as a osciloscope = interrupts / sample rate

Post by matrixstorm » Tue Oct 29, 2013 7:46 pm

Hi damgad.

There are already lots of V-USB oscilloscopes available.
You also can get one source from me (up to 10kHz) for tinyUSBboard (http://matrixstorm.com/avr/tinyusbboard/).
What really is missing is a nice GUI for both: Linux and Windows.

BR matrixstorm

damgad
Posts: 2
Joined: Mon Oct 28, 2013 11:07 pm

Re: VUSB as a osciloscope = interrupts / sample rate

Post by damgad » Tue Oct 29, 2013 10:10 pm

Yes, I've read about that project before here: viewtopic.php?f=8&t=8414 . Looks like a thing that I'm looking for ;) But... Is it available in your site? Sorry, I can't find it. :oops:

Only a
VUSB skeleton/example with corresponding linux, windows (delphi) and platform independent GTK libusb program
which doesn't even use ADC...

GUI is not a problem... I only need data, but constant sampling frequecy and no lose of samples is crucial.

matrix storm

Re: VUSB as a osciloscope = interrupts / sample rate

Post by matrix storm » Fri Nov 01, 2013 3:14 am

Okay I will upload the source somewhere and then post URL.

(After going to bed, here in my country it is 2 o"clock in the morning...)

I did not publish source until now, since I do not have a GUI until now.

You also can mail me and I can respond you the URL privatly.

BR matrixstorm

Post Reply