View previous topic :: View next topic |
Author |
Message |
abellard
Joined: 06 Feb 2006 Posts: 2
|
power consumption problem on 16F362A |
Posted: Mon Feb 06, 2006 6:59 am |
|
|
Hi community,
I am turning around that observation that my application with a PIC 16F628A will consume 4*higher current with the same program, once written in assembler (0.4mA consumption) and the other written with CCS 3.203 (1.6mA)
Any ideas or solutions are welcome :-)
thnx |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 06, 2006 12:07 pm |
|
|
Compare the #fuses statement in your CCS program to the __CONFIG
statement in your ASM program. It's very likely that your CCS program
has some feature enabled that uses more power. It could be the
oscillator setting, such as HS vs. XT, or something else. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Feb 06, 2006 1:29 pm |
|
|
Other things to check are enabled devices like timers, ADC and comperators.
Make sure you don't have floating inputs, they can draw a considerable current because of high frequency switching logic levels. Make them outputs or add a pull-up / pull-down resistor. |
|
|
abellard
Joined: 06 Feb 2006 Posts: 2
|
|
Posted: Wed Feb 08, 2006 1:46 am |
|
|
thanks a lot |
|
|
|