Try this. Change PORTA.3 and PORTA.4 to LATA.3 and LATA.4.

Does it work as expected?