cancel
Showing results for 
Search instead for 
Did you mean: 

PortB configured as digital Input

ogm101274
Associate II
Posted on May 31, 2011 at 11:26

Hi all, I'm trying to configure PortB as a Digital Input and afert reading the IDR register it seems to be reading the analog value of the PB0 pin.

I've tried to configure PortB as PullUP no interrupt or Floating, but same result.

I`ve configured the PortB as Output and it works fine.

Is not possible to configure the PortB as digial input????.

Regards.

Oscar

#portb
1 REPLY 1
ogm101274
Associate II
Posted on May 31, 2011 at 18:11

I found, that I need to pull-down the portb for reading a 0, when no input is ON.

But I still have the PB.0 not working, I allways read 0.

Any idea?.