Vielleicht
Code:
while (1) 
{ 
     if(PINK & (1<<PINK7))
     {
          PORTL=wert; 
          wert++;
     }


     waitMs(200); 
     } 
return 0; 
}