On 7 February 2017 at 18:28, Curtis Dutton <[email protected]> wrote: > As part of my laser engraver implementation that I have been working on, I > have a raster component that needs to vary the pwmgen output at higher rate > than the servo period.
I don't think you can vary the pwm duty cycle any faster than the servo thread rate. The duty cycle calculations are performed in a floating point thread, the base-thread function runs at a constant PWM rate between duty-cycle updates. It is actually possible to run floating-point base-threads, but then you will find that the component that determines the duty cycle would also have to run in that faster thread. Maybe you could run three threads? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
