Quote Originally Posted by Bruce View Post
If GPIO.4 is going high on power-up, it's most likely due to you
not initializing the port latches before writing to the tris register. Port latches are unknown
at power-up so it's a good idea to set the port to whatever you want 1st then write to the
tris register.

I.E. GPIO = 0 followed by TRISIO = whatever. Then you know the pins that are outputs will
be at a certain logic level at POR.
That is really good to know, logic would seem to indicate the opposite which is to say, It would appear that you would set I/O so as to know if ports are outputs or not.<b> YOUR explanation makes good sense.</b>. Another tidbit for your book?
Thanks for that BRUCE,
JS