Trouble with portb (pic16f876a)

Status
Not open for further replies.

Mehmood Ahmed

New Member
HI,

I am using using portb as an input and i want some particular bit combination to be given on it then further execution should take place....but when i keep portb inputs floating that combination generates itself and mcu goes on further execution i don't want it to be happend while inputs are in floating state...is there any wayout?????????????

Regards,
 
Turn on the weak pullups by clearing bit 7 of the OPTION register.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…