Page 1 of 1

TMR1 interrupt on 16F877A

Posted: Sat Jan 05, 2008 9:46 pm
by Eric
Hello,
I am struggling with interrupt TMR1 on PIC16F877A in Flowcode 3.
TMR0 interrupt works fine but I can't get the TMR1 interrupt working.
During simulation the programm never executes the TMR1 interrupt routine. If I change TMR1 to TMR0, the same program works fine but I need 2 timer interrupts. Something I miss?

Best regards

Posted: Mon Jan 07, 2008 9:21 am
by Benj
Hello Eric

Have you tried the interrupt on the hardware. It may be only the simulation of the Timer1 interrupt that is not working correctly.

Posted: Mon Jan 07, 2008 9:48 am
by Steve
Ben's right - I think the simulation of Timer1 has not been implemented.

Posted: Wed Jan 09, 2008 11:19 pm
by Eric
Thanks Benj and Steve.
But after reading topic http://www.matrixmultimedia.com/mmforum ... b0070b4d82 I was in the opinion that the 16F877A was the only PIC with TMR1 implemented in Flowcode.
If this is not the case, can I add similar code as described in that topic to make the TMR1 simulation work on PIC16F877A?

Posted: Thu Jan 10, 2008 10:33 am
by Benj
Hello Eric

The Timer1 is implemented for the 16F877A so that it can generate code to use the interrupt routine on the hardware. This is done via the definitions in the PIC FCD definition file. However the simulation is an inegral part of Flowcode and currently has not been implemented to handle the Timer1 interrupt.