Low-Frequency Counter


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Beurk... no forget that..i just see your frequency range...

    Maybe the use of PAUSE could be just enough.

    0.25HZ => period =4Sec
    4HZ => period = 0.25 Sec

    Something like
    Code:
    While FreqInput=1 : Wend
    While FreqInput=0 : wend
    While FreqInput = 1
        Pause 10
        HalfPeriod=HalfPeriod+1
    wend
    
    Frequency = 10000/(HalfPeriod * 2)
    In the above 4HZ will return => 400, 0.25HZ will return 25 as value....
    then just to play with the DEC, DIG to display your frequency.

    Should be enough to start.
    Last edited by mister_e; - 5th January 2006 at 01:22.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 18:51
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. PIC16F84(A) counter
    By nmmr in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th May 2005, 04:27
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14

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