futz
Active Member
If you're not using the rest of the pins (except A0) just set TRISA=0x01 to make A0 an input and the rest of PortA's pins outputs. Then you don't have to ground the unused pins.engkhlaif said:if i define PORTA as input do i have to ground all the pins(PORTA) pins except pin A0?
and if i define PORTA=0x01 and i connect sensor output into pin A0 i think that i dont ground the rest, do i?