What am I missing?
Posted: 19 July 2006, 8:37 AM
This is my first stab at multitasking. My task stack is 50 bytes.
Just before starting my main loop I start the task with...
The task is...
Pin16 has a square wave ZC from a TW523.
No matter how long the app runs, cnt never exceeds 1, indicating the task only gets called once.
Do I need to wrap the task procedure in a Do:Loop?
Just before starting my main loop I start the task with...
Code: Select all
CallTask TTLTask, TTLStack
The task is...
Code: Select all
Sub TTLTask()
Call WaitForInterrupt(zxPinChange, INT0) 'pin16 = ZC
cnt = cnt + 1
End Sub
No matter how long the app runs, cnt never exceeds 1, indicating the task only gets called once.
Do I need to wrap the task procedure in a Do:Loop?