On Sun, 2007-12-23 at 11:45 -0500, Kenneth Lerman wrote: > I took a quick look at your code... > > case 3: > dacclock=0; > if (cycle>=12) { > cycle=0; > } > phase=0; > cycle++; > break;
> Should be: > case 3: > dacclock=0; > if (cycle>=11) { > cycle=0; > } else cycle++; > phase=0; > break; Thanks Ken. Now that I see it, my mistake is fairly obvious. I'll talk to Santa to see if I can get you back on the Nice list. I fixed the 8-bit only shift problem in my new version which "cycles" the data down from bit 11, instead of the mask up to bit 11. I made the same reset/increment mistake on the new version, so the .comp file is now even better. I sure wish I had the parts in hand -- maybe by the end of the week. -- 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 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users