Thanks for your advice.
I chanced count to sayim(in Turkish)
I do not want to use timer because when disk begin to rotation ( which is slow rotation)micro magnet take to time to pass under the magnetic swich so swich is on position and count is going to count I do not this. I want only one time not elong with passing is going on.



JUST FOR FUN, and as your current hardware is setuped to use it, try this one which use TMR0


Bookmarks