title: AVR ATmega64 using two 8-bit timers
body: <p>I would like to use both 8-bit timers of an ATmega 64 <a href="http://en.wikipedia.org/wiki/Microcontroller" rel="nofollow">microcontroller</a>.</p>
  
  <p>I used the following code to declare their compare interrupts:</p>
  
  <pre><code>.org 0x0012 ; Timer2  8 bit counter
       rjmp TIM2
  .org 0x001E ; Timer0 8 bit counter
      rjmp TIM1
  </code></pre>
  
  <p>I noticed that if I enter the first interrupt (0x0012) the second timer doesn't work... its interrupt is never generated.
  Why does this happen and how do I solve it?</p>
  
  <p>I also notice something strange. If I reverse their order, I get the error:</p>
  
  <blockquote>
    <p>Error    3    Overlap in .cseg: addr=0x1e conflicts with 0x1e:0x1f</p>
  </blockquote>