VUSB as a osciloscope = interrupts / sample rate
Posted: 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?
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?