+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 3
    Points: 800, Level: 6

    Join Date
    Nov 2010
    Posts
    3
    Helped
    0 / 0
    Points
    800
    Level
    6

    SOURCE CODE NEEDED in C for frequency counter

    Hi,
    Recently I visited the page Frequency Counter by PIC16F628
    Now I'm very much interested to build the circuit with modification to use it as a tachometer(or rpm meter).The hex file is working correctly for frequency meter.
    But the source code I guess is intentionally posted with errors and incomplete.
    Please anyone give me the source code for the same.
    All circuits are given in the .rar file
    Thanks.

    •   Alt25th December 2010, 12:49

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 6,212, Level: 18

    Join Date
    Apr 2006
    Location
    Hyderabad, India.
    Posts
    789
    Helped
    125 / 125
    Points
    6,212
    Level
    18

    Re: SOURCE CODE NEEDED in C for frequency counter

    while I am ignorant of C language,
    1. I remember somewhere that the file should end with "while1",I did not find any such.
    2. __config .... is used in asm
    3. you need to know basically which C is this as there are many variants.
    4. the include files , especially the delay.c is needed for any compilation.
    PS: the C is Hi-Tech C, as indicated in article
    the definitions were modified and a new file attached. you may even delete the"delay.c"
    Can you try this file please?
    Last edited by mvs sarma; 25th December 2010 at 14:37.



    •   Alt25th December 2010, 13:18

      advertising

        
       

  3. #3
    Full Member level 6
    Points: 6,609, Level: 19
    hugo's Avatar
    Join Date
    Jan 2000
    Location
    canada
    Posts
    323
    Helped
    55 / 55
    Points
    6,609
    Level
    19

    Re: SOURCE CODE NEEDED in C for frequency counter

    Quote Originally Posted by ajit123456 View Post
    Hi,
    Recently I visited the page Frequency Counter by PIC16F628
    Now I'm very much interested to build the circuit with modification to use it as a tachometer(or rpm meter).The hex file is working correctly for frequency meter.
    But the source code I guess is intentionally posted with errors and incomplete.
    Please anyone give me the source code for the same.
    All circuits are given in the .rar file
    Thanks.
    Check this out : EasyPIC6 Project 1. Frequency/RPM meter - 12th Oct 2009.

    You can use it as a Frequency meter (range from 0 to 65000 Hz) or a RPM meter "Tacho" (from 0 to 3900000 RPM)

    Some EasyPIC6 projects

    ZIP file contains the MikroC PRO source code in C

    http://www.romanblack.com/easypic6/EP6_FREQ.zip

    and another one :


    * PIC16F84 microcontroller
    * RS232 text output
    * one output per second
    * basic frequency range from 0 to 83 KHz with 20 Mhz crystal
    * 1 Hz accuracy
    * no extra component !
    * can be build without MikroC compiler licence !

    and make it run on a EasyPic development circuit board.

    The C language source code is freely provided !

    Simple Frequency Meter
    Last edited by hugo; 26th December 2010 at 04:27.



--[[ ]]--