Try replacing PORTA with GPIO???
That chip does not have an A.