Interrupt problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Rabbit
Posts: 28
Joined: Wed Apr 04, 2012 1:33 pm
Has thanked: 3 times
Been thanked: 3 times
Contact:

Interrupt problem

Post by Rabbit »

Hello,
I need a clock-signal with variable low frequency.
"TasterStart" should activate the clock-signal with Interrupt TMR2. With every interrupt the output pins B0 and C1 changes status.
The waiting 300ms instruction is only for better visual debugging.
My problem: a push down "TasterStart" (variable "TasterStart"=1) break the programm. If "TasterStart"=0 the programm running again.
I hope for experts help. Thanks in advance.
Rabbit

Info: I solved the problem with a loop and an additional variable: now the TMR2 is called only one time. Now programm is running well.
Attachments
AutoStart-Vers-3-TESTVers-2.fcf
(21.63 KiB) Downloaded 260 times
AutoStart-Vers-3-TEST.fcf
(20.95 KiB) Downloaded 235 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Interrupt problem

Post by medelec35 »

Hi Rabbit,
Thanks for posting the solution to your problem.

At least other people who are faced with a similar problem have now got a solution.

Martin
Martin

Post Reply