b_engine
Newbie level 1

Hi,
why is it difficult to use bin0 of all ports as a digital input in pic 16f877a
I tried this simple code and it doesn't work right :
but if i changed portb.b0 to portb.b1 it works fine , is there a different way to work with b0?
I'd be glad if someone can help.
why is it difficult to use bin0 of all ports as a digital input in pic 16f877a
I tried this simple code and it doesn't work right :
Code:
void main() {
trisb.b0=1; trisd.b0=0;
portd.b0=0; portb.b0=0;
while(1){
portd.b0 = portb.b0;}}
but if i changed portb.b0 to portb.b1 it works fine , is there a different way to work with b0?
I'd be glad if someone can help.