schufti wrote:I wrote:"The" arduino has hw timers that are specifically built to support pwm, that the esp does not have.
you worte:It boils down to that the ATmel processors (... Arduino ...) have hardware support for PWM. It's not the hardware timer, it's the PWM hardware support that counts.
so where is the "plus" of information?
"support for PWM" will allways boil down to hw timers with compare registers --> hw timers with the "PWM specific extra"
Apparently you missed that ATmel microcontrollers can have the PWM subsystem control the designated I/O pins autonomously, the software doesn't have to do _anything_. If you don't have that, you still have software PWM, where you need find out which PWM channel is next to toggle, set up the compare register and wait for the interrupt, toggle the I/O pin and set up the next etc. If the timer is running fast compared to the speed of the execution of code (which often is the case), the software simply won't keep up. The hardware PWM of the ATmel processor will.