Shop OBEX P1 Docs P2 Docs Learn Events
pulse timing — Parallax Forums

pulse timing

dbergdberg Posts: 5
edited 2009-05-17 05:12 in BASIC Stamp
i would like to measure the time of a digital signal that lasts between .75 and 1.5 seconds. The pulsin command's maximum pulse width is too short for my bs2. any ideas? Thanks!

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-05-17 05:12
    You could watch for the beginning of the pulse, then time the pulse by a loop (with known iteration time) where you count the number of loops before the end of the pulse comes.
Sign In or Register to comment.