PULSOUT Question
Alon
Posts: 4
I was wondering about the command PULSOUT... While the command is running, does the program go to the next set of instructions or does it wait until PULSOUT is finished before moving onto the next line of instruction?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
The BS2 is strictly single-tasking -- when it is running a PULSOUT it will wait until the PULSOUT completes before reading the next PBasic instruction. When it is in a PAUSE 100 then for 100 mSec the BS2 does nothing else.
On the one hand, this can be a pain -- you can't run two motors using PWM without some additional hardware. On the other hand, this behavior makes a very reliable and consistent platform.