attiny45/85 frequentie

A continuously variable clock from 0 Hz to 20 MHz is outside the capability of a microprocessor. I suspect an oscillator made with some CMOS inverters, a capacitor and a ten-turn variable resistor would give you better control over such a wide range. Read about such things here: Intelligent Power and Sensing Technologies | onsemi