Play/Tune Stops All?

erco

Senior Member
I'm exploring the multitasking features of the 20M2. One task is driving a servo using PULSOUT/PAUSE (not SERVO/SERVOPOS), another task is counting encoder pulses. Everything worked fine. When I added another task playing music (tried both TUNE and PLAY), the servo stopped until the tune ended. I didn't see it written explicitly in the manual; is that normal function?
 

westaust55

Moderator
See the bottom of PICAXE MANUAL 1 (V7.7) page 62.

All M2 parts operate in a circular manner rotating between the defined tasks/sequences.
One comand is completed in a task before moving to the next.
Hence SERIN or TUNE etc will hold all other tasks until the current command is completed.

Only the PAUSE command (which is recognized as "doing nothing") allows the PICAXE to proceed with a command from another task.
 
Last edited:

erco

Senior Member
Thanks westaust55. I was afraid of that. So PAUSE really is the only command that is transparent, timing-wise?
 
Top