ISR (TIMER0_COMPA_vect)  
{
    //event to be executed every 32ms*MyTimerConstant
    counter++;
    if (counter == MyTimerConstant) {
        counter = 0;
        PORTB ^= 1 << PORTB5; //toggle LED on PORTB5
    }
}