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
TMR1 interrupt on 16F877A
- 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:
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.
Have you tried the interrupt on the hardware. It may be only the simulation of the Timer1 interrupt that is not working correctly.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
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?
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?
- 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:
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel