Skip to main content
Visitor II
May 31, 2011
Question

PortB configured as digital Input

  • May 31, 2011
  • 1 reply
  • 698 views
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
    This topic has been closed for replies.

    1 reply

    ogm101274Author
    Visitor II
    May 31, 2011
    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?.