title: PIC Assembly: Configure Timer1 for particular time interval
body: <p>I'm currently learning PIC assembly and I have come to the topic of timers. I understood that timer increments a value in its register according to a prescaler until overflow occurs in which case it will send an interrupt.</p>
  
  <p>What I don't understand is how I should configure a prescaler so that timer would send an interrupt with time interval that I choose (say, 1s). Example code would be appreciated.</p>
  
  <p>(I'm using Timer1 in PIC16F877A)</p>