modified lcd to only modify the necessary bits of PORTA