title: timer & overflow interrupt MikroC code
body: <pre><code>void TimerFunction()
  {
  TIMSK=(1&lt;&lt;TOIE0);
  TCNT0=0x00;
  TCCR0 |= (0&lt;&lt;CS02) | (1&lt;&lt;CS00) | (0&lt;&lt;CS01);
  }
  
  //##############################################################################
  ISR(TIMER0_OVF_vect)
  {
      // process the timer0 overflow here
    countClock ++;
    count++;
    delay++;
  //some extra code 
  }
  </code></pre>
  
  <p>then</p>
  
  <pre><code>void main()
  {
   //someCode
   TimerFunction();
  }
  </code></pre>
  
  <p>but it doesnt work for me ,so is that the right way to start the timer 0 and its interrupt service routine ?? </p>