I've been reading the Secrets of ArduinoPWM
I have seen some of the low-level programming for PWM with the timer1.zip example
Is this doable:
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
TCCR1A = _BV(COM1A0) | _BV(COM1B1) | _BV(WGM21) | _BV(WGM20);
TCCR1B = _BV(WGM22) | _BV(CS22);
OCR2A = 1024;
OCR2B = 50;
I would be setting the upper end to 1024, and here I have a 50+1/1024+1 duty cycle on digital pin 10. Is this correct?