I have ATtiny13, for which I painstakingly built a evaluation board, along with it I also built a simple driver using TIP122 to drive a 12V DC fan.
I take temperature reading using LM35DT and feed it to ADC on tiny and I want to control fan speed depending on temperature.
I thought I could just use the PWM and control the fan speed.
Now when I start to program my attiny I realize there is no ICR register and its a 8-bit timer.
Can you suggest a way to generate a PWM and vary the duty cycle using the ATtiny13A's 8-bit timer?
PS: Timer have become a nightmare for me. More I read more I get confused :P.