On 19 February 2011 12:56, Roland Jollivet <[email protected]> wrote:

> Is it practical(for a low cost encoder board) to have only 8bits per
> encoder.

Yes, that would almost certainly work fine, but the EMC2 component
would have to track it with a 64-bit internal counter.
Luckily, by a quirk of signed binary, adding the delta of a
rolled-over 8, 16 or 32 bit signed value to a 64 bit accumulator just
works, with no special trapping needed.

You would be limited to 256 encoder counts per rev though, I think, if
you wanted to only use 8 bits.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to