AnsweredAssumed Answered

Read all pins in 1 port simultaneously

Question asked by devlen.jason on Apr 11, 2014
Latest reply on Apr 12, 2014 by devlen.jason
I wonder how to read all port simultaneously such as GPIOA0 up to GPIOA7
or the equivalent of arduino codes

DDRA = B00000000;   // sets Arduino Mega Digital pins 22(PORTA0) to 29(PORTA7) as inputs
allBus = PINA; //read all PIN bit state

Outcomes