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

PIC16F877A PINs goes high during reset

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



Joined: 05 Dec 2009
Posts: 40

View user's profile Send private message

PIC16F877A PINs goes high during reset
PostPosted: Thu Feb 09, 2012 6:40 am     Reply with quote

Sir,
I am using PIC16F877A to drive sensitive Gas Valves, everything is working fine, I am just facing a Problem when the controller powers up it sends HIGH to all the pins of the microcontroller.
Is there any way that the microcontroller never send HIGH to all the pins during reset/powering up
Best Regards
Bells
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 7:06 am     Reply with quote

Is the PIC setting the pins high, or just setting them to inputs? Maybe you need pull-down resistors to keep them in the low state till the PIC sets them otherwise.
_________________
The search for better is endless. Instead simply find very good and get the job done.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 7:10 am     Reply with quote

It shouldn't so something is wrong. Which pins are you referring to?
I know the Port A pins come up as inputs so the only way for them to go
high would be with pullups.

Give us the compiler version and show the initialization code from the fuses
all the way to where you set up all the Port Pins in Main. We don't need to
see any interrupt routines since they should not be enabled until after the
ports are set..
_________________
Google and Forum Search are some of your best tools!!!!
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