On Tue, 2008-01-22 at 09:16 -0800, Kirk Wallace wrote:
> On Tue, 2008-01-22 at 09:33 -0600, Jeff Epler wrote:
> > A "bit" pin which is TRUE can have any nonzero value, not just 1.  So
> > the line
> >     bit_shifted = (bit_in << which_bit);
> > is incorrect.  Instead, you may wish to write something like
> >     if(bit_in)
> >         accum = accum | (1 << which_bit);
... snip
> Too bad it's so cold in the shop. (I can hear the ahhhh's from the
> non-Californians.) It may take a while to get my butt out there to test
> the update.

That fixed it. In case anyone is interested, I am putting the latest
information (not much) on the webpage:

http://www.wallacecompany.com/machine_shop/EMC2/serial_adc/

Now, I need to figure out what analog signal to measure.

-- 
Kirk Wallace (California, USA
http://www.wallacecompany.com/machine_shop/ 
Hardinge HNC lathe,
Bridgeport mill conversion, doing XY now,
Zubal lathe conversion pending)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to