On Tue, Apr 27, 2010 at 08:51:22PM +0100, Andy Pugh wrote: > On 27 April 2010 17:25, John Kasunich <jmkasun...@fastmail.fm> wrote > > 10kHz is not really within the capability of software PWM. > > It is also rather out of the scope of the AVR microcontrollers, which > have a max PWM rate of (Base Clock / 512)
Err, have you examined the range of AVR microcontrollers, and their variety of on-chip hardware enhancements? Just glancing at the AT90PWM3 datasheet shows that each PSC will clock at 64 Megahertz, with 12 or 16 bit resolution. ============ At first glance, that suggests that on 12 bit resolution, it can't quite get _down_ to 10 kHz! You'd have to clock it slower than 64 MHz, or use the higher resolution, to go that slow. (In fact, it can get down to 10 kHz, at top PWM clock speed, because there are (period-cumulative) timer values for on-time-high-driver, on-time-low-driver, and dead-time. Incidentally, all are doing their job without need for CPU intervention.) There are other AVRs with high speed PWM clocks, IIRC. Erik -- Truth decays into beauty, while beauty soon becomes merely charm. Charm ends up as strangeness, and even that doesn't last, but up and down are forever. - The Laws of Physics ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users