I am using PIC16f876, Pin B1 to sense input signal. When I let Pin B1 to be floating, I sense either 0 or 1 (both). Why?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516513
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Re: Pin floating
Posted: Thu Jul 31, 2003 2:47 am
:=Dear all,
:=
:=I am using PIC16f876, Pin B1 to sense input signal. When I let Pin B1 to be floating, I sense either 0 or 1 (both). Why?
Float is just a form of input so if there is no external signal pulling the pin either high or low the pin's state is indeterminate. Now if you latch the value through by reading the port a snapshot of the pin state is made and depending on the environment at that specific moment it will be seen as a 1 or a 0. Think of float as meaning unloaded or no output load.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516514
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