Quote Originally Posted by mister_e View Post
Carefull when you use reserved word... COUNT is also a PBP statement. You should change it to something else

Now JUST FOR FUN, and as your current hardware is setuped to use it, try this one which use TMR0
Code:
        ADCON1 = 7
        pCount    VAR BYTE
        OldpCount VAR BYTE
        CLEAR
        TMR0 = 0
        OLDPCOUNT = 1
Start:
        pCount = TMR0
        IF pCount != OldpCount then
            LCDOUT $FE,$C0, #pCount
            OldpCount = pCount
            ENDIF
        GOTO Start
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.