Thomax:
Scusate, ma ho già fatto costruire una scheda smd e mi è difficile cambiare le piste ...
Premesso che (... cosa che spero ti sia chiara) NON puoi liberamente assegnare dei pin PWM ai Timers, ma ciascun Timer governa esclusivamente il PWM su pin prefissati (... disegno della MCU), questo che segue ben riassume la situazione sul ATmega32U4 :
Timer 0
#bits = 8
Clock speed = 16 MHz (system clock speed)
Default prescale = 64
Pins D3 & D11
Timers 1 and 3
#bits = 16
Clock speed = 16 MHz (system clock speed)
Default prescale = 64
Pins D5, D9 & D10
Pin D11 can also be set to use timer 1 output (OC1C), but the Arduino library uses it for timer 0 (8-bit). To use it on timer 1, it must be done by setting the appropriate registers.
Timer 4
#bits = 10
Clock speed = 64 MHz
Default prescale = 64
Pins D6, D13
Pin D10 (PB6) also has a timer 4 output (OC4B), but the Arduino library uses it for timer 1 (16-bit). To use it on timer 4, it must with the registers.
Studiandoti il datasheet (pag. 89 e seguenti) e programmando direttamente i vari registri, puoi modificare, nei limiti del consentito, i vari valori.
Hai già dato un'occhiata anche a QUESTO ?
Guglielmo