Based on instructions here.It is designed for ATmega 328/168 (Arduino UNO / NANO / Pro Mini, ...)
Note: Timer 0 is used by arduino millis() and delay() functions!
Arduino clock frequency: Hz
Requested interrupt timer frequency: Hz
Code for Arduino setup (copy one of the timers setup below):
Code for interrupt function setup (copy one of the blocks below):