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 CCS Technical Support

Too many inputs = too much current?

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



Joined: 07 Apr 2008
Posts: 9

View user's profile Send private message Send e-mail

Too many inputs = too much current?
PostPosted: Sun Apr 20, 2008 1:38 pm     Reply with quote

I have a PIC16F877A that I have working code for, but when I expand the code to use more inputs (nothing is really different as far as the computation goes), the PIC does nothing. I have 20 inputs going into the pic and 8 outputs. The inputs are all on ports A, B, and C. My inputs are all regular switches that work on the other code.

I'm wondering if too much current may be flowing into the PIC with all the inputs?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Apr 20, 2008 2:22 pm     Reply with quote

The PIC input pins draw almost no input current. It's more likely that
you forgot to specify the NOLVP fuse, and when you set pin B3 to a high
level, the PIC locked up. You need the following fuse:
Quote:
#fuses NOLVP
temp2290



Joined: 07 Apr 2008
Posts: 9

View user's profile Send private message Send e-mail

PostPosted: Sun Apr 20, 2008 2:34 pm     Reply with quote

Alright, thanks, so it's not a current problem. I should have known that.

As for the NOLVP, I have that fuse set.

I'm not sure of the problem, I'll have to try some other stuff out.
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