Im not exactly the best person for reading datasheets but from what i can see in the porta table aparently the 4 pins with analogue capability are *not* set as analogue by default.

It actually seems like the problem im having is because it takes longer to turn those 3 outputs on than it does for any of the others. Is that possible?