Pulsin versus While Wend


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    29

    Default Pulsin versus While Wend

    Is someone can tell me if there's a difference between these two way of mesuring a pulse width.

    First simply by using PULSIN

    PULSIN PIN_IN,0,PULSE_WIDTH

    Or by using WHILE WEND like this

    WHILE PIN_IN = 0
    PULSE_WIDTH = PULSE_WIDTH + 1
    WEND

    I know PULSIN increment by 10us step using a 4MHz Xtall. Do the While wend way can be more accurate ? Is there a way to know how many cycles required by this code ?

    Thank you

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    DT

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  3. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 10:17
  4. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 08:02
  5. PULSIN and RCTIME
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th November 2004, 14:45

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts