At 06:56 AM 4/5/2004 -0700, jay marante wrote: >Hi! > >I want to put the mega16 in a power-save mode but i cant get it done. anu sample C codes? i want it so badly coz my system comsumes so much power from the 9V battery. i think it wont even last a day. First off, how are you doing your voltage regulation? When moderate currents are flowing, switchers are more efficient. When the current is very small, linear regs win. On sleeping, you need to set your external I/O up to the appropriate states (only you can figure that) and then worry about the processor. Turning off timers that you don't need, shutting down analog ref and A/D. In the M128, you can program the Xdiv register to slow the clock down quite a lot. In all the megas, you can program the CKOPT fuse to use the Vittoz oscillator, but you'd better do some careful design there, to avoid problems. Of course you need a mechanism to come out of low power mode, like an interrupt, or ... ?
Message
Re: [AVR-Chat] sleep mode in mega16
2004-04-05 by David VanHorn
Attachments
- No local attachments were found for this message.