Shop OBEX P1 Docs P2 Docs Learn Events
Pulse width and Freq measurement with SX48. How ? — Parallax Forums

Pulse width and Freq measurement with SX48. How ?

RS_JimRS_Jim Posts: 1,771
edited 2008-08-29 14:32 in General Discussion
Good evening,
I don't have a scope but would like to do some pulse width measurement along with the frequency of the pulse.· Is the counter/timer in the SX-48 a workable solution?· I know how to make it do a pwm pulse but am not sure about using the timer functions.· the pulses I am trying to measure are in the 200 to 400 KHz region.
Jim

Post Edited By Moderator (Bean (Hitt Consulting)) : 8/29/2008 11:13:38 AM GMT

Comments

  • VelocitVelocit Posts: 119
    edited 2008-08-29 10:13
    According to the SX/B documentation, the COUNT command should work just fine. I'm not sure exactly what kind of waves you'll be measuring, but assuming a 50% DC at 400kHz, the SX would need to be running at at least 40MHz.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
  • BeanBean Posts: 8,129
    edited 2008-08-29 11:11
    Yes, use COUNT to get the frequency and PULSIN to get the width.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "A government big enough to give you everything you want, is big enough to take away everything you·have."·· Thomas Jefferson

    "It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter

    www.iElectronicDesigns.com

    ·
  • ProfessorwizProfessorwiz Posts: 153
    edited 2008-08-29 13:39
    When you use the·PULSIN from something like an RC receiver, are you supposed to put current limiting resistors in series with it?· Similar question for the·COUNT command.
  • RS_JimRS_Jim Posts: 1,771
    edited 2008-08-29 14:32
    Ok, I have used PULSIN but some of my pulse widths seem to be less than the 10 Microseconds that it is expecting as a minumum pulse width for the command.
    Jim
Sign In or Register to comment.