Direct Port Manipulation with PORTD ( 328p )

Thanks perehama; Im trying to get a 1284 due to more memory
Meanwhile, Im doing it as you suggest; those chips cost an eye ( even both).