Frage: Direkte Port Manipulation

Ich bekomme es nicht hin! Muss mindestens 1.5 MHz schnell sein.

Habe nun den Input auf Pin 29 = PA7 und Output auf 22 = PA0.

Mein Code:

void setup(){
DDRA &= ~(1<<PA7);
DDRA|=(1<<PA0);
}

void loop(){
while(1){
PINA=(PINA & (1<< PA7));
}
}

Was ist falsch?]