View previous topic :: View next topic |
Author |
Message |
Jurgens Guest
|
How to make low power app with 16f777 |
Posted: Wed May 25, 2005 3:56 am |
|
|
I want to save power im my applikation so i need to put the chip into sleep and switch to 31KHz. How can i do that? |
|
|
Ttelmah Guest
|
|
Posted: Wed May 25, 2005 4:11 am |
|
|
When the chip is asleep, the oscillator stops. Oscillator switching, and sleep mode, are complimentary techniques. One uses low power while the chip stays running, while the other suspends execution.
Use the 'sleep();' instruction to put the processor to sleep.
The 'setup_oscillator' function controls the speed of the oscillator. Look in the include file for the processor, to see the values that can be used with this.
Best Wishes |
|
|
Jurgens Guest
|
|
Posted: Wed May 25, 2005 7:45 am |
|
|
I have two options :
16LF777 or 16F819.
There are both using nano-watt tehnology and in the datasheet of 16F819 is writen that the LP osc will work in the sleep mode.
Maybe i get this wrong but you are telling me this:
1.) If i go into sleep all functions and counting are down, while in this mode.
2.) If i go to LP i will save some power but not as much as im sleep.
What would you do when you have to use one of those chips and you need low power and continues program run ( counting, functions and so on) ? |
|
|
|