PDA

View Full Version : 2hz clock pulses missed during program execution



James Schall
08-03-2008, 04:01 AM
Speed from Ping update:
I am able to reliably measure the output of my 4060 clock pulses when running a frequency measurement program and showing the results on debug screen, but when I insert the COUNT command into my Ping program and display results on my Appmod LCD, I miss some pulses. Increasing the duration of my pulse count does raise the total but the results are erratic. Pause statements didn't fix condition when removed. Noise on pins would seem to cause me to pick up pulses.
I am enclosing my code samples for other beginners like me who might be helped by my feeble attempts at cut and paste programming.

I'm having so much fun!

James Schall
08-04-2008, 09:28 AM
Found my problem.
DurAdj CON 100 should be
DurAdj CON $100

Now I can get down to my real math issues!