first problem in Timer 5 the pre-scale is adjusted with 1:2 so we observed that the timer count each 8 cycle not 2 cycle
second problem the interrupt did not happen although the flag bit "PIR5,TMR5IF" become one
========
for timer 7
whatever the ISR code. On MPLAB watch menu the Interrupt flags of timer 5 & timer 7 are set at the time of overflow,and the interrupt enable of the timers(In PIR registers) are set,and the general & peripheral interrupt enables also are set.(GIE=1,PEIE=1,TMR5GIF=0,TMR7GIF=0,TMR7IF=1,TMR5IF=1,TMR5GIE=0,TMR7GIE=0,TMR7IE=1,TMR5IE=1,TMR5GIP=1,TMR7GIP=1,TMR7IP=1,TMR5IP=1,IPEN=1/0)
OK, you you have shown that the conditions for calling the Interrupt Service Routine (ISR) should be met but if the ISR is not being called correctly then you need to show us the code for both the low and hig priority interrupts.
Susan
OK, you you have shown that the conditions for calling the Interrupt Service Routine (ISR) should be met but if the ISR is not being called correctly then you need to show us the code for both the low and hig priority interrupts.
Susan
Thanks for that.
If this is the actual ISR then you have the preamble and postamble OK but the part that does the real work is not testing for which interrupt source(s) triggered the call and does not reset the appropriate IF flag.
What this ISR will do is to be called repeatedly with virtually no time provided to the main program code.
Susan