
Originally Posted by
hkpatrice
Hello everyone.
I have an application that must absolutely power-up in a definite state. Pins on port b must NOT be in high state. Output and low state is OK, input is ok.
‘(I haven’t included the whole program for sake of clarity)
Just two things to absolutely respect ...
1) The hardware side : system must be in a stable safety state if Processor is out of its socket ( ! ) - @ poweron all pins
are inputs ( floating ...)
2) The software side : processor outputs must meet 1) ( no change !!! ) and inputs must be set to the state the sensors and buttons are in 1) situation, so no uncontrolled change could occur.
PORT or LAT Registers have to be set first, THEN TRIS registers ...
That's enough to be perfect !!! 
Alain
Last edited by Acetronics2; - 17th September 2010 at 12:17.
************************************************** ***********************
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