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.
Interrupt problem
Moderator: Benj
Interrupt problem
- Attachments
-
- AutoStart-Vers-3-TESTVers-2.fcf
- (21.63 KiB) Downloaded 272 times
-
- AutoStart-Vers-3-TEST.fcf
- (20.95 KiB) Downloaded 249 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Interrupt problem
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
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