Interrupt problem
Posted: Thu Feb 06, 2014 2:45 pm
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.
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.