Shop OBEX P1 Docs P2 Docs Learn Events
can the bs2 read an imput pulse that is between 760 1520 microseconds? — Parallax Forums

can the bs2 read an imput pulse that is between 760 1520 microseconds?

rob4709rob4709 Posts: 7
edited 2006-10-05 14:01 in BASIC Stamp
I'm trying to find a way to read a gyro that outputs a pulse signal with either a 760 or 1520 microsecond pulse width. Can the Bs2 do this?. If not what chip can and what do i need to learn to implement it.

Post Edited (rob4709) : 10/5/2006 3:03:37 PM GMT

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-10-05 14:01
    Yes, the BS2 has a "PULSIN" statement, with 2 uSec resolution, that can read a pulse width from 2 uSec to 65 mSec.

    It WILL take about a millisecond's worth of BS2 code to set up this reading, and maybe 10 mSec to 'tell' anybody about it. That will lower how often you can take that reading. But it certainly can do it.
Sign In or Register to comment.