Hi, I'm trying to use the Diecimila Arduino board to pulse solenoid valves, at a frequency of 125Hz. I can get pins 9 and 10 to work fine using the following:
TCCR1A=0x00; TCCR1B=0x12; ICR1=0x1F40;
However I have no idea how to change the pwm frequency at pins 3, 5, 6 and 11. I understand these don't use timer 1, but timer0 and timer 2 instead, and that these don't have the ICR1 input capture unit, which I believe the above code was using to vary the pwm frequency. So is it possible to change the pwm frequncy of the other timers? And if so how?
Thanks in advance, and any help will be much appreciated!
Adam (& Ben)