2011-05-31 02:26 AM
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 #portb2011-05-31 09:11 AM
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?.