 |
 |
| View previous topic :: View next topic |
| Author |
Message |
ZZX Guest
|
|
Posted: Sat May 13, 2006 3:27 am |
|
|
| yes, i can turn it off using a fet, since wakeup time is much smaller than the pinging gap. One last thing, is there any difference between not using certain peripheral and turning them off. Cuz if u arnt using them,do they still are consume current. If yes, then how to turn off certain peripherals not in use. Also can i calculate the total power consumed by my pic? |
|
 |
Ttelmah Guest
|
|
Posted: Sat May 13, 2006 8:40 am |
|
|
If you look at the setup commands for the peripherals (setup_adc for example), there is an 'ADC_OFF' option, which stops this peripheral. The same is true for many (most) of the extra bits.
Now you don't say 'which' PIC?. The data sheet generally has lists of the consumption at various rates, wth different supply voltages, and with various combinations of peripherals enabled (for things like the WDT), and seperately figures for the individual 'extras', like the ADC. These can be interpolated for other clock rates, and added together to give the chip consumption. On top of this though is any external drive. So (for instance), if you are driving a FET, you need to know the clock rate of the signal, capacitance, and likely 'driven time' (what percentage of the time the chip will be actually driving high), to work out how much extra current this circuit will use. The same is true for every output pin. Now as an example, most PICs, draw perhaps around 5mA 'themselves' (ignoring extra peripherals), at 40MHz, The same chip draws perhaps 80uA at 32KHz. This is why oscillator switching is such a useful tool when dealing with saving power.
Best Wishes |
|
 |
ZZX Guest
|
|
Posted: Mon May 15, 2006 11:17 pm |
|
|
Thanks a lot for all this help  |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|