In void setup:TCCR1B = bit (CS20); // no prescaling, The error is that CS20 is in TCCR2B, not 1B.Because we have used TCCR1B = 0 in a previous step, to stablish any prescaling in TCCR1B, CS10, CS11, and CS12 should be used.