Probier mal so:

Code:
#include <avr/io.h>
 
int main (void) {
 
    DDRB  = 0xFF;        // Port B alles Output
    DDRA  = 0x00;        // Port A alles Input

    while(1) {

      PORTB = PINA;   
   }
   return 0;
}
Gruß Jan