Attiny85 problem with TCNT1 register

Hi!

I tried to move one of my program from a Atmega328 to a Attiny85.
My program use the timer1 register and I can't get it to work on my Attiny85.

The code below hangs at the while loop. It seems TCNTI is stopped?

  TCCR1 = 0;                  //stop the timer
  TCNT1 = 0;                  //zero the timer
  TCCR1 |= _BV(CS12);         //set prescaler to divide by 8
  while (TCNT1<1000)
  {
  }
while (TCNT1<1000)

Is the ATtiny85 timer 1 a 16 bit timer?

So Attiny85 only has 8 bit timers :slight_smile:
Guess I have to rewrite my code.

Thanks for the answer.