The '767 is like the 18F26XX series. ADCON1 = 15 or %00001111 to turn all IOs digital.