Thanks for this explanation.  It answered a question that I've had for a 
long time.
Brent

On 2/27/2015 4:15 PM, andy pugh wrote:
> On 27 February 2015 at 22:24, Brent Loschen <brent.losc...@gmail.com> wrote:
>> If so, what is that data and how is it different from step/dir signals
>> in the default case?  Can anyone comment on the differences or point me
>> to documentation that explains it?
> It might help to start with the parport stepgen.
>
> That has two functions. The slow function runs every time the
> servo-thread runs, typically every 1mS. It reads in the next position
> target from HAL, looks at where it is now, and calculates a step-rate
> required to get to that position by the time the next update comes in
> in 1mS.
>
> Then the base-thread runs about every 25uS and either makes a pulse or
> doesn't make a pulse depending on whether one is needed to maintain
> the step rate requested by the servo thread.
>
> In the case of a Pico or Mesa p-port connected FPGA card the first
> step looks just the same. Code running on the PC looks at position and
> target and decides what step-rate is needed. But this data is then
> passed to the FPGA as data on the EPP bus, and the actual steps are
> generated by the FPGA.
>
> The big difference is step-rate resolution. The "base clock" of the
> bit-banged solution is 25kHz. The FPGA card timer resolution is around
> 10Mhz.
>


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to