Timer Learning help - Programming Questions - Arduino Forum
They are configuring timer1 by writing to the timer control registers (this is how the timer is controlled - Arduino provides wrappers to get tones and PWM, but this is the kind of thing they do under the hood). Looks like theyre setting the WGM that uses ICR1 as TOP, and setting the output compare at half of TOP, so it looks like 50% duty . . .
more
|