RonHackett
Member
I've been experimenting with a simple parallel task program, and I get some strange results with the pause command. For example, I've been using an 08M2 breadboard circuit with an LED and current-limiting resistor on pin C.4, and a logic analyzer to observe the duty cycle of the output wave in a simple two-task program:
If the "abit" constant has a value anywhere between 1 and 19 inclusive, the duty cycle remains fairly constant around 50%. However, if abit = 20, the duty cycle jumps to 94%! If I replace the pause statement with a pauseus statement, and gradually increase abit in multiples of 10, the duty cycle also gradually increases, as expected.
So, I'm wondering if there's a problem with pause statements in parallel task programs, or am I missing something?
Thanks… Ron
Code:
symbol abit = 1
start0:
do
high C.4
pause abit
low C.4
loop
start1: 'just to have a second task
do
for b0 = 0 to 99
b1 = b0 / 10
b2 = b0 //10
next b0
loop
So, I'm wondering if there's a problem with pause statements in parallel task programs, or am I missing something?
Thanks… Ron