I want to generate PWM signal 15 KHz using timer_1 and counter Using Timer_0 .

Hello,

I am working on One project ON ATtiny85 using Arduino IDE .. I want to generate PWM signal (~16 KHz) using timer_1 and counter (counter for delay purpose) Using Timer_0. when we start PWM and counter at the same time and after some time we need to change the duty cycle of PWM depends on counter or delay value... I am done with PWM generation and Millis(); or delay();........ i got one problem, i cant varies duty cycle... Its varies After the completion of delay and its change the duty cycle as we set... But i need to change duty cycle any time when Delay start or Millis(); start....

please give me any suggestion or any idea to fix it...

sivaahaktech: please give me any suggestion or any idea to fix it...

we can only help with the debug IF you first post the code you tried.