8 bit ports in Arduino MEGA

8 ping

Assuming you meant "8 pins" look for examples of direct port manipulation. For example

DDRD = 0xFF; // set all PORTD pins to outputs
PORTD = B10101010; // set alternate bits on PORTD


Rob