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?
VUSB as a osciloscope = interrupts / sample rate
-
- Posts: 16
- Joined: Tue Sep 18, 2012 2:30 pm
Re: VUSB as a osciloscope = interrupts / sample rate
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
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
Re: VUSB as a osciloscope = interrupts / sample rate
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.
Only a
GUI is not a problem... I only need data, but constant sampling frequecy and no lose of samples is crucial.
Only a
which doesn't even use ADC...VUSB skeleton/example with corresponding linux, windows (delphi) and platform independent GTK libusb program
GUI is not a problem... I only need data, but constant sampling frequecy and no lose of samples is crucial.
Re: VUSB as a osciloscope = interrupts / sample rate
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
(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