TMR1 interrupt on 16F877A

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Eric
Posts: 99
Joined: Tue Nov 06, 2007 11:04 pm
Been thanked: 1 time

TMR1 interrupt on 16F877A

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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.

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Ben's right - I think the simulation of Timer1 has not been implemented.

Eric
Posts: 99
Joined: Tue Nov 06, 2007 11:04 pm
Been thanked: 1 time

Post 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?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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.

Post Reply