Interrupt driven routine for Avr 16-bit PWM
Target: ATtiny2313
Uses OCR0A, TCNT0, TCNT1
With ATtiny2313 it is possible to utilize two 16-bit PWM using OC1A and OC1B.
If application needs more than this, say RGB controller, two additional 16-bit channels can be created from native 8-bit OC0A and OC0B. The resolution is true 16-bit, glitch-free. Prescaler can be set to 1.
The software [...]