The PortA pins are analogue and you need to set them to digital with the ADCON1 register
ADCON1 = %00000110 - see datasheet
Or you could use PortB for trig and echo
Phil
The PortA pins are analogue and you need to set them to digital with the ADCON1 register
ADCON1 = %00000110 - see datasheet
Or you could use PortB for trig and echo
Phil
Bookmarks