pic16f84 i/o port doubt

Status
Not open for further replies.

mihir08

Member level 4
Joined
Dec 28, 2009
Messages
70
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,288
Location
India
Activity points
1,787
im making a line folllower with pic16f84a
i am using port b as i/p lines from sensors . i am using portb.0 to portb.4 .
i wanted to know if the remaining lines are open , are they considerd to be at logic 0 .
 

You can turn on the internal pull up resistors, then they will read as logic 1.
It's not good to have unconnected inputs, their state is unknown and they can oscillate.
Another solution is to configure them as outputs and set them to 0.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…