I am trying to send a stepper motor step signal with a range of 0.1 steps per second to 2000 steps per second. I need less than 1% error. I have not been able to get accurate frequencies measured on my scope using the pause command. Using the Pulsout I get an accurate pulse but the rest of the loop adds error. I also tried looping just 2 pulsout statements with a dummy pin not used but I still had some error.
<code><pre><font size=2 face='Courier'>
top:
pulsout 4,5000 ' step signal
pulsout 5,5000 'nothing connected
goto top:
</font></pre></code>
I just ordered some 28x1 and 40x1 chips but waiting for those to arrive.
Could I use the hardware timer and a crystal oscillator to get accurate square waves at this range? Can PWMout go this low?
Or is there a better way to get the signal at this range? I would like to have 16bit resolution on the range.
<code><pre><font size=2 face='Courier'>
top:
pulsout 4,5000 ' step signal
pulsout 5,5000 'nothing connected
goto top:
</font></pre></code>
I just ordered some 28x1 and 40x1 chips but waiting for those to arrive.
Could I use the hardware timer and a crystal oscillator to get accurate square waves at this range? Can PWMout go this low?
Or is there a better way to get the signal at this range? I would like to have 16bit resolution on the range.