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
Posted: Thu Feb 09, 2012 7:06 am
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
Posted: Thu Feb 09, 2012 7:10 am
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!!!!
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