Pulse measure


Closed Thread
Results 1 to 3 of 3

Thread: Pulse measure

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648

    Wink Pulse measure

    Hi Mel ...

    Just a ( very ) little challenge for you ...

    and what about using Pulsin Portx, 1, ...just followed with a RCTime Portx,0, ...
    you can measure all in only 1 cycle !!!

    Goes well ...and solution tested at 4 and 20 Mhz !!!

    Best regards,
    Alain

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Now this depends on your definition of a 'Cycle', and whether it matches my definition.

    If by a 'Cycle' you mean ONE increment of the Program Counter (1uS with a 4MHz PIC), then you can't actually do anything meaningful as PICBasics PULSIN takes more than one cycle to execute and exit, let alone follow it with an RCTime.

    Therefore your definition of 'Cycle' must be something different... like the INPUT PULSE CYCLE perhaps, in which case yes then your definition will hold water since...

    Pulsin Portx,1,...

    ...meaures the HIGH state of the Input 'Cycle', whilst...

    RCTime Portx,0,...

    ...will measure the LOW state of the 'Cycle'. So technically it's still the same 'cycle'.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi, Mel

    Of course, the definition is applied to the input signal !!!

    have a nice day

    Alain

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  3. Replies: 3
    Last Post: - 13th September 2008, 17:40
  4. measure pulse width 0-150Hz
    By kewetman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th November 2007, 21:38
  5. Pulse Frequency Multiplication
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st August 2005, 10:39

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