On 20 November 2014 17:56, Kirk Wallace <[email protected]> wrote: > I seem to recall, to get fast PWM, I had to use Timer1 and not use the > Arduino PWM library. I wonder if the resolver decoder might be improved > in a similar fashion? I haven't had the time to study Andy's code, but > it may already be optimized.
It is all driven by interrupts and direct register writes, it doesn't use any Arduino libraries at all, not for PWM generation, not for analogue reading and not even for computing the arctan. (it uses an integer-only algorithm and a lookup table) http://wiki.linuxcnc.org/uploads/Resolver.pde -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
