Shop OBEX P1 Docs P2 Docs Learn Events
2hz clock pulses missed during program execution — Parallax Forums

2hz clock pulses missed during program execution

James SchallJames Schall Posts: 7
edited 2008-08-04 01:28 in BASIC Stamp
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!

Comments

  • James SchallJames Schall Posts: 7
    edited 2008-08-04 01:28
    Found my problem.
    DurAdj CON 100 should be
    DurAdj CON $100

    Now I can get down to my real math issues!
Sign In or Register to comment.