CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

power consumption problem on 16F362A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
abellard



Joined: 06 Feb 2006
Posts: 2

View user's profile Send private message AIM Address MSN Messenger ICQ Number

power consumption problem on 16F362A
PostPosted: Mon Feb 06, 2006 6:59 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 06, 2006 12:07 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 06, 2006 1:29 pm     Reply with quote

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

View user's profile Send private message AIM Address MSN Messenger ICQ Number

PostPosted: Wed Feb 08, 2006 1:46 am     Reply with quote

thanks a lot Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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