1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Frequency counter using 8051 microcontroller

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by Tharachandra, Jul 11, 2018 at 4:05 AM.

  1. Tharachandra

    Tharachandra New Member

    Joined:
    Wednesday
    Messages:
    3
    Likes:
    0
    Hi, im currently working on a affordable 2 in 1 mobile function generator with frequency counter project. I have managed to build the function generator part using XR2206 chip. But i am having trouble with the frequency counter part using 8051 microcontroller, it will display the frequency using 16X2 LCD, i do not know where and how to start, here are the specifications for the frequency counter:

    a) Be able to display the internally produced frequency(from the XR2206 function generator chip)
    b) Be able to display one externally sourced frequency
    c) Range of frequency to be displayed: 1 Hertz - 20 Megahertz

    I have no experience with microcontrollers, i would be tremendously happy and grateful for any guidance, help and explanations.
     
  2. schmitt trigger

    schmitt trigger Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    1,094
    Likes:
    101
    If you have no experience with microcontrollers, why don't you start with an Arduino?

    The reason I am saying this, on the web there are literally thousands of applications and simple tutorials which show you what to do virtually anything.
     
    • Agree Agree x 1
  3. Cicero

    Cicero Active Member

    Joined:
    Nov 21, 2014
    Messages:
    422
    Likes:
    42
    Location:
    UK
    I agree, an 8051 isn't the most beginner friendly method these days. Arduino is a much easier way to start.
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. absf

    absf Active Member

    Joined:
    Jun 18, 2012
    Messages:
    219
    Likes:
    30
    Location:
    Malaysia
    Do you have a development board for 8051 or you just have the 8051 chip? What flavor is it? Intel, Atmel or STC?

    I'd start with interfacing with the LCD display first. Learn how to display "Hello World" on the LCD.

    Allen
     
    Last edited: Jul 13, 2018 at 7:11 PM
    • Like Like x 1
  6. Tharachandra

    Tharachandra New Member

    Joined:
    Wednesday
    Messages:
    3
    Likes:
    0
    The reason why i'll have to use 8051 microcontroller is because it is the project requirement.
     
  7. Tharachandra

    Tharachandra New Member

    Joined:
    Wednesday
    Messages:
    3
    Likes:
    0
    Okay, will decide on a make and will do just that, and will update if i have any issues with it. Thanks!
     
  8. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  9. Ian Rogers

    Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,821
    Likes:
    958
    Location:
    Rochdale UK
    So its homework???
     
    • Agree Agree x 1
  10. absf

    absf Active Member

    Joined:
    Jun 18, 2012
    Messages:
    219
    Likes:
    30
    Location:
    Malaysia
    I have gathered some more info for your frequency counter:

    So leave out Port3 for the inputs from the freq source and use Port0 for the LCD.

    I also doubt that the 8051 is able to measure up to 20MHz without external prescalers.

    Allen
     
  11. absf

    absf Active Member

    Joined:
    Jun 18, 2012
    Messages:
    219
    Likes:
    30
    Location:
    Malaysia
    Looks like it.:D

    Allen
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice