Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re:AW: [AVR-Chat] how to use auto trigger mode of adc

Re:AW: [AVR-Chat] how to use auto trigger mode of adc

2008-03-07 by SUKHDEEP s

i have written the code

ISR(ADC_vect)
{
...........
}

main()
{
  SREG=0X80;
  TCCR0=(1<<CS00);
  SFIOR=(1<<ADTS2);
  ADCSRA=(1<<ADEN)|(1<<ADATE)|(1<<ADIE);
  while(1);
}

 why it is not able to trigger the conversion start at
timer0 overflow. kindly help me.


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: AW: [AVR-Chat] how to use auto trigger mode of adc

2008-03-07 by James Wagner

At the very least, you have no ADC_vect ISR!

Jim

On Mar 7, 2008, at 4:45 AM, SUKHDEEP s wrote:

> i have written the code
>
> ISR(ADC_vect)
> {
> ..........
> }
>
> main()
> {
> SREG=0X80;
> TCCR0=(1<<CS00);
> SFIOR=(1<<ADTS2);
> ADCSRA=(1<<ADEN)|(1<<ADATE)|(1<<ADIE);
> while(1);
> }
>
> why it is not able to trigger the conversion start at
> timer0 overflow. kindly help me.
>
> __________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
> 



[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.