Hi,
You may try reading the input state directly from Port Input Register (PTIADL). But you should be able to read input state from Port data register (PTADL) as well. Port data register is mainly used when the port is configured as an output. It holds the date that have been written to it. In input mode, however, a read from PTADL returns data from PTIADL.
The configuration is correct. I don’t see any problem.
Regards,
Daniel