I am now faced with reading the port A digital inputs
Both devices have analog functions on portA but the function is selected differently.
On the 2685 you use the ADCON1 register, while with the 26K22 it's set with the ANSELA register.