Hi Ben, 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. Regards 2007/12/19, Murray, Ben <[EMAIL PROTECTED]>: > > Hi > I have had this /exact/ same issue with MICAz motes in TinyOS-2.x! I > compiled and recompiled apps/null as provided with the tos2 download but the > current consumption for my motes was /always/ well over the suggested 5-10uA > by at least around 100uA, usually more like 400-500. I found that /most/ > motes ran at the expected <10uA but only if they were run from a supply of > about 2.3-2.4 volts. I tried numerous measuring devices and am confident > the readings were correct. didn't find a resolution on the list as no-one > had the same problem somehow. Quite glad someone else is experiencing the > same problem so it's not (necessarily) something I've somehow done! :-) > > If you do work it out I'd love to know! > > Cheers. > -Ben > > > -----Original Message----- > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] Behalf Of *Carlos Gil > Soriano > *Sent:* 18 December 2007 16:18 > *To:* [email protected] > *Subject:* [Tinyos-help] Power-down ADC on MicaZ ATMega128 > > Hi, > > I am working on monitoring consumption in micaZ motes. I have slept both > the micro and the radio. So consumption must be above 20 uA (from the radio > without WD nor battery monitor) plus 20 uA from ATMega. > > I have achieved a minimum consuption above 400uA on micaZ platform. Taking > a look to the ATMega datasheet (page 355) it is suppossed that over 300 uA > are from ADC. > > I have tried to power-down the ADC, but results imposible for me. The code > that I have used is > > cbi(ADCSRA, ADEN); > > I guess that it should clear ADEN bit in ADCSRA register (as shown in page > 232 of ATMega datasheet). > > Can anyone help me? I am on tinyOs1.15, but not matter if someone can > point out a solution for T1 or T2. > > > Thanks and merry X`mas! > > > ******************************************************************************* > > Please consider the environment before printing this email. > > > ******************************************************************************* > > This email and any files transmitted with it are intended solely for the > use of > > the individual or entity to whom they are addressed and may not be > divulged to > > any third party without the express permission of the originator. Any > views > > expressed in this message are those of the individual sender, except where > the > > sender specifically states them to be the views of Thales Research & > Technology > > (UK) Limited. > > > ******************************************************************************* > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
