[quote:65630974bd="Vincent"]My target is really to be in 0,1mA or less if possible.[/quote:65630974bd]
According the data sheet the µC itself consumes in power down not more than 10µA, so the 100µA is either a wrong measurement, or your circuitry draws this current.
Beside that I find it complicated and not polite from the person seeking help, to provide only chunks of code or information.
I'd expect a minimalistic simplified and compilable example, which still produces the problem.
The reason for this is, some of us can squeeze this code through a simulator and have a look into the registers, which allows then to get a hint on what's going wrong.
[code:1:65630974bd]Disable Adc[/code:1:65630974bd]
Why do you "Disable ADC" ? Well, it hurts not here, as you did not enable the AD-complete interrupt at first, but it makes no sense either.
[quote:65630974bd]I have now 0,375mA.[/quote:65630974bd]
You have to ask yourself, is this results only from the ADC, or if it results from any other command, which for example set/resets a pin connected to a resistor, which draws this current then from the according pin.
↧