Hi, Clinton

@ first your counting method is wrong ... you should count transitions ( L> H i.e.) of your output sensor.
@ second ... what's the reason of the " For w = 0 to 65 ..." loop ???
@ third ... ----------------d°----- " W1 = W1 + W/65 " ???

once that tied ... display should slow down a bit ...

Alain