Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20859

BASCOM-AVR : how to save more power ? : REPLY

$
0
0
[quote:d7183adba2="Vincent"]if anybody know how to complet disable the ADC system before go in powerdown mode[/quote:d7183adba2] You would know it, if you have a look into the data sheet, there you see all affected registers and their initial value, this is ADMUX, ADCSRA, ADCSRB and DIDR0. The initial state is all bits zero for every register. If you set each of these registers to 0, you have the ADC in its initial state. You can easily test this. If it should work for you, then your next task is to save these registers into variables before clearing them, as Config ADC isn't reusable, you can't issue it twice, and the ADC is after in it's non-configured state, which makes it useless. And remove the wrong [code:1:d7183adba2]Enable Adc Disable Adc[/code:1:d7183adba2] from your code. You activate the AD conversion complete interrupt, but you don't have a) an ISR for it, and b) no use, as you use the ADC in single and not in free-running mode. Only for the latter it would make sense.

Viewing all articles
Browse latest Browse all 20859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>