Hi, Ambrogio
I' ve taken the good habit ALWAYS to set ALL my Inputs/Outputs with TRIS statements AND aet their respective default level in the first lines of my programs.
of course, all SFR's and variables too ...
Whether PBP ( or any other high level language ) does it for me or not ... so, I'm REALLY sure of what will happen. Especially @ Power-up.
But you can do as you want ... there's no absolute rule !!!
If PB=1 then... If PB=0 then...
no automatic input setting here ... sooooo you could read an output state !!!
Alain
Last edited by Acetronics2; - 10th January 2011 at 16:08.
************************************************** ***********************
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