On Dec 20, 2007 8:41 AM, Carlos Gil Soriano <[EMAIL PROTECTED]> wrote:
>   cbi(ADMUX,REFS0);
>   cbi(ADMUX,(REFS1));
>
>   cbi(ADCSRA,ADEN);
>   cbi(ADCSR,ACIE);
>   sbi(ACSR,ACD);
> 2007/12/20, Carlos Gil Soriano <[EMAIL PROTECTED]>:
> >
> > I have tried a solution but doesn´t work properly. Try to improve this and
> I think it should be the solution.
> > Change the line I posted before for this one:
> >
> > cbi(ADMUX,REFS1);
> >   //cbi(ADMUX,(REFS2));   // If you enable this line IT APPEARS
> COMPILATION PROBLEMS, WHY?
> >   cbi(ADCSRA,ADEN);
> >   cbi(ADCSR,ACIE);
> >   sbi(ACSR,ACD);
> >
> > if you want to enable the ADC functionality please do it backwars and
> change every sbi to cbi and viceversa.
> >
> > In the program I tested the mote doesn´t work properly because he had
> intervals of "deep slep" (I guess that should be the 10uA!!,but I need to
> improve the instrumental material) and "normal sleep"(the well-known
> 400-500uA)
> >
> > I have done this in T1, and in this X'mas I hope to install T2 and made a
> dummy program for test and measure the sleep mode.

Note that T2 automatically powers the A/D off when not in use.
Directly twiddling the A/D bits will either have no effect or cause
the A/D component to misfunction (depending on exactly when you do
what...).

David Gay

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to