Ok its not so trivial
.
I am using an 16F819.I have configured some pins as Input and others as Output.
I have a situation where I wish to switch OFF all the output pins ( i.e. make the pins go LOW).
I am writing thus
PORTA=0;
PORTB=0;
I am not masking out the Input pins.My query is,if i do the above , does it affect the Input pins' capability to read the status of an input ?
I am using an 16F819.I have configured some pins as Input and others as Output.
I have a situation where I wish to switch OFF all the output pins ( i.e. make the pins go LOW).
I am writing thus
PORTA=0;
PORTB=0;
I am not masking out the Input pins.My query is,if i do the above , does it affect the Input pins' capability to read the status of an input ?