Hi i am working on attin13 to detect the square pulse of 3 Khz to 5 Khz frequency. So my Attiny13 should give result only when i have a square input signal of this frequency otherwise no output. I am using Timer and Pin change interrupt like yours. Can you please help me. I find it quite similar to mine but couldnot figured it out. I am new to programming.