How to generate 1min timer interrupt in PIC24F
I found that PIC24f controller generates interrupt max for 4 sec, using external oscillator of 8MHz. so i m generating an timer interrupt for 1 sec and calculating secs... once it is done for 1 min i do the process.... here is the code snippet

void __attribute__((__interrupt__, auto_psv)) _T1Interrupt(void)
  {

   IFS0bits.T1IF = 0;   //reset the interrupt flag 
   Timer_flag = 1;

 }


the above code is for timer isr

Timer init

void TimerInit(void)
{
   PR1 = 0x2FFF;     //8191
   IPC0bits.T1IP = 1;    //set interrupt priority
   T1CONbits.TCKPS = 0x03; //timer prescaler bits
   T1CONbits.TCS = 0;   //using FOSC/2 

   IFS0bits.T1IF = 0;    //reset interrupt flag
   IEC0bits.T1IE = 1;    //turn on the timer1 interrupt

 }


Timer code in main

if(Timer_flag == 1)
{
      Timer_flag = 0;
      if(second++ == 60)
       {
           second = 0;
           //code
        }
}