Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-26 Thread Carlos Gil Soriano
Hi Ben, I have improved the current shunt resistor to measure the power consumption, and all the code that I had posted don't work. I have found out that the voltage regulator autoconfigures to minimum power consuption if it is not used ADC, analog comprator and Brown-Out detector. One thing tha

Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-20 Thread David Gay
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 t

Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-20 Thread Carlos Gil Soriano
Sorry, this is the right one: cbi(ADMUX,REFS0); cbi(ADMUX,(REFS1)); cbi(ADCSRA,ADEN); cbi(ADCSR,ACIE); sbi(ACSR,ACD); 2007/12/20, Carlos Gil Soriano <[EMAIL PROTECTED]>: > > Hi Ben, > > I have tried a solution but doesn´t work properly. Try to improve this and > I think it should be

Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-20 Thread Carlos Gil Soriano
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); cb

RE: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-19 Thread Murray, Ben
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/

Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-18 Thread Michael Schippling
I think ADEN enables the ADC operation but I'd bet the current is being used by the Vref...perhaps you can try switching the ref to some other, disconnected, source? MS Carlos Gil Soriano wrote: Hi, I am working on monitoring consumption in micaZ motes. I have slept both the micro and the ra

Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128

2007-12-18 Thread Philip Levis
On Dec 18, 2007, at 8:18 AM, Carlos Gil Soriano wrote: 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 mini