Working PIC with Frequencies


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: Working PIC with Frequencies

    If you search the forums you'll find code from Bruce Reynolds that uses the Capture/Compare register to measure the period between adjacent rising edges (i.e. one cycle and independent of the duty cycle).

    The code you posted is C while this forum is dedicated to PicBasic and PicBasiPro. If your class works in C, then you should be asking this in some forum dealing with using C to program PICs.

    Here's a link to Bruce's code to capture a pulse (not one complete cycle) which is closest to your example. It is well commented.
    Last edited by dhouston; - 30th March 2011 at 01:44. Reason: added link

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