Hi,
During power up ...
all pins are INPUTS ( say floating ! ) ... till you turn them to outputs.
So ...
1) place some pullup or pulldown ( to suit your application ) resistors to fix the outputs ( may be inputs too, depends on circuitry ahead ... ) levels while they are " uncontrolled "
2) program output and input levels required ( PORTx = % 11001010 i.e )
3) THEN program inputs and outputs ( TRISx = % 00110110 i.e )
This way ... outputs are fully under control ... Even if Pic is taken off from its socket !!!
Alain
Last edited by Acetronics2; - 24th November 2009 at 14:41.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks