It would be nice to have an example using timer interrupts instead of checking compare or overflow flags for delay so that the timer can be used to execute some ISR (say reading ADC inputs) while the CPU is doing something else (say controlling some device ) at regular intervals
Thank you again, mister Anas. I am experiencing an error in line 36 and 37, it says a constant value is needed, it is the part with "SBRS R20, TOV1" and R20 contains what has been read from TIFR1. Best regards from Poland.