Questions regarding measuring of frequency pic 16f887


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default Questions regarding measuring of frequency pic 16f887

    Hello I have a question regarding using the CCP1 module in Pic16f887.

    I use a proximity switch for reading pulses from a rotating wheel. (four pulses pr rotation)

    i am interested in detecting frequency in the range of 20-70Hz.


    the processor using internal clock

    the prescale=1

    capturing on falling edge



    the program seems to give a ok readings when simulating the proximity sensor with a signal generator. (50%duty).

    when i connect the proximity sensor to the circuit the reading get unstable an it seems like pulses are missed.

    the frequency from the sensor do not have a duty of 50%, but more like 10%high and 90%low.

    is the duty cycle a problem?


    Best regards
    Dag

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


    Did you find this post helpful? Yes | No

    Default Re: Questions regarding measuring of frequency pic 16f887

    when i connect the proximity sensor to the circuit the reading get unstable an it seems like pulses are missed.
    WHICH circuit ... ???

    FULL scheme compulsory, as we do not have crystal balls on this forum ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Multiple 10bit adc on pic 16f887?
    By Helgeland in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2012, 16:33
  2. AD590 to pic 16f887
    By ywallace in forum Serial
    Replies: 1
    Last Post: - 11th February 2012, 11:23
  3. PIC 16f887 internal clock help needed
    By lockjawz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2011, 15:43
  4. pic 16f887 memory question
    By emerson in forum General
    Replies: 8
    Last Post: - 15th January 2011, 01:42
  5. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 01:47

Members who have read this thread : 1

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