ADC1 can correct my code??


hi , can 1 tell me how can read in adc1 interrupt1 code ?

quote

adc_init();
      admux=portc1;
      admux=(1<<refs0);
      tccr0a=(5<<cs00);
      timsk0=(1<<toie0);
      adcsra=(1<<aden)|(1<<adsc)|(1<<adps0)|(1<<adie)|(1<<adate);
      portb=0x00;
      ddrb &= ~(1 << ddrb);
      sei();

how calling analogread()?


Arduino Forum > Using Arduino > Programming Questions > ADC1 can correct my code??


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62