ISR adc

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Guest

ISR adc

Post by Guest » Sun Jul 01, 2012 4:00 pm

How many clock cycles would following code consume??

Code: Select all

char replyBuf[32];
uchar *ptr=replyBuf;

ISR(ADC_vect,ISR_NOBLOCK)
{
      ADCSRA&=~(1<<ADIE);
      *ptr++=ADCH;
      ADCSRA|=(1<<ADIE);
}


This causes usb error . is it longer than 25 cycles??

Post Reply