Hey,
I'm using PortB as DIO with the direction register set up as 0x0F so I
can use the first 1-4 as outputs and 6-9 as inputs (pin 5 is ground).
The outputs work fine but when I'm trying to use the inputs a
l
l the
pins are high even though they shouldn't be. For a while I was trying
to figure out why my (simple) code wasn't working, then I put a few
print statements in to see where it was hanging up and found it was
going to a part of the code which was based on one of these inputs
being high. I knew the input shouldn't be high but just to make sure i
took out all the connections to verify it couldn't possibly be coming
from my circuit. With nothing going to any of the inputs the pins are
a logic '1', which must be coming from somewhere else on the board.
Anyone dealt with this before?