TIMER FOR FUNCTION MICROS () - Development - Arduino Forum
PWM on the AtMega168328 is handled by dedicated hardware (timer0) and duty cycle accuracy is not affected by either millis or micros. As long as the timer is running (which also is required for millismicros to work), PWM duty cycle will be as accurate as the Arduino quartz crystal. Even if you disable interrupts alltogehter or generally . . .
more
|