Quote:
Originally Posted by ronnyking
So the pwm output must be 25khz? Does your sketch take care of that?
|
yes, it is in source file PWMFan.ino
I actually used 20khz since the values are convenient and setting the duty cycle between 0 and 100 is just a direct register assignment, no additional calculations.
16mhz/8 (clock divider) /100 (counter top) = 20khz