Page 1 of 1

ISR adc

Posted: Sun Jul 01, 2012 4:00 pm
by Guest
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??