Hello,
I am facing a really annoying problem. The PORTA of my 16F628 doest not want to cooperate with me as input. The biggest ptoblem is that only the RA0 pin can be used as input, the rest of the pins: RA1, RA2 and RA3 does not react to any inputs. I have set the cmcon register to 0x07, but nothing, nothing.....
If anybody has any idea about what is hapenning, please don't hasitate to complete this topic.
Thank you in advabce your responses.

As development tool I use MPlab IDE. A short fragment of my code:

if((PORTA & 0x01) == TRUE)
{
PORTB = 0x01;
}
else
if((PORTA & 0x02) == TRUE)
{
PORTB = 0x02;
}
else
if((PORTA & 0x04) == TRUE)
{
PORTB = 0x04;
}
else
if((PORTA & 0x08) == TRUE)
{PORTB = 0x08;
}

where TRUE is defined as 0x01