I'm looking to control PWM computer cooling fans directly from an ATTiny85, the fans want a ~15-25khz PWM signal.
The currant involved in minimal.
At default settings with Coding Badly's excellent arduino port
I got 500hz from pin0 and 1khz from pin1.
However from reading about AVRs in general it appears that far higher is possible
just not doable through the arduino environment.
If I use " TCCR0B = TCCR0B & 0b11111101 | 0x01;" from the Arduino PWM frequency howto, I can get 1khz from pin0 and 2khz from pin1.
EDIT:That worked beautifully! I now have a pair of 15.6khz PWM outputs from my attiny85.Thank you very much!
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16