News 8051 Projects
- ajay_bhargav
- Tue Oct 27 2009, 09:27 PM
A very simple easy to make Frequency counter project. This project is powered with small AT89C2051 microcontroller with LCD. Block Diagram of circuit is shown below. It can support a wide range of frequency input starting from 1Hz to ~16.5Mhz, rest depends on pin characteristics.
Theory of Operation
As we all know frequency of a signal is number of cycles per second. I made use of this logic to calculate frequency of the input signal.
8051 has two timers, Timer 0 is configured for 1 second delay to sample the input signal and Timer 1 is used as a counter to calculate number of cycles in that 1 second. If timer1 overflows then the overflow is counter in another register which is considered as the high byte of Frequency. Input signal is provided at P3.5/T1 which is input for Timer 1 in counter mode. LCD is connected to microcontroller port 1 in 4-bit mode. Currently program is using 2 Line LCD but it can be used for 1 line LCD too.
Program initializes the Timer0 in 16-bit mode with 50mS delay value, a tick value of 20 is loaded to have total delay of 1s (50 x 20 = 1000 mS). Timer 1 is configured in 16-bit counter mode. After a sample of 1 sec, we get the number of cycles hence the frequency of input signal from timer1 registers (TH1:TL1) and high byte of Frequency. So total 3 byte value is then converted to a decimal equivalent represented in hex. This decimal value is then updated to LCD. The whole process repeats again.
![]()
For any doubts and suggestions please use forum
Download: Frequency Counter using AT89C2051 and LCD (Assembly)
Tags Frequency Counter using AT89C2051 and LCD8051 projectsFrequency counter project
Theory of Operation
As we all know frequency of a signal is number of cycles per second. I made use of this logic to calculate frequency of the input signal.
8051 has two timers, Timer 0 is configured for 1 second delay to sample the input signal and Timer 1 is used as a counter to calculate number of cycles in that 1 second. If timer1 overflows then the overflow is counter in another register which is considered as the high byte of Frequency. Input signal is provided at P3.5/T1 which is input for Timer 1 in counter mode. LCD is connected to microcontroller port 1 in 4-bit mode. Currently program is using 2 Line LCD but it can be used for 1 line LCD too.
Program initializes the Timer0 in 16-bit mode with 50mS delay value, a tick value of 20 is loaded to have total delay of 1s (50 x 20 = 1000 mS). Timer 1 is configured in 16-bit counter mode. After a sample of 1 sec, we get the number of cycles hence the frequency of input signal from timer1 registers (TH1:TL1) and high byte of Frequency. So total 3 byte value is then converted to a decimal equivalent represented in hex. This decimal value is then updated to LCD. The whole process repeats again.

For any doubts and suggestions please use forum
Download: Frequency Counter using AT89C2051 and LCD (Assembly)
Submit comment
Conversation
Fri Apr 09 2021, 02:02 PM
Hong
Quality articles is the secret to interest the users to visit the site, that's what this web page is providing. christian dating sites https://datingsitesww.com
Fri Apr 09 2021, 03:53 AM
QGWIJ38V49HEBD3WXF www.web.de
I have a small question for you
Thu Apr 08 2021, 06:26 PM
Lilly
Post writing is also a fun, if you be familiar with afterward you can write otherwise it is complex to write. dating sim https://onlinedatingtind.com/
Thu Apr 08 2021, 12:35 PM
Fredericka Horn
Thanks, Fredericka Horn
Thu Apr 08 2021, 12:03 PM
Ronaldwhits
https://coin2x.org
0
Downloads
- Automatic Railway Gate Control by: Nimar & Pawandeep Kaur in: 8051 Projects
Thu May 31 2018, 07:17 AM - Yet Another DTMF Controlled Robot by: Parambir, Harman, Pragati, shikha, Manpreet in: 8051 Projects
Fri May 19 2017, 09:15 AM - Simple 3 Digit Temperature Meter by: Rakesh Suthar in: PIC Projects
Sat Jul 05 2014, 06:15 AM - Electronic Voting machine with Managed Control Unit (Project Report Included) by: Shivani, Geetika Gupta, Vibhore Aggarwal, Megha Singh in: 8051 Projects
Sat May 17 2014, 02:16 PM - LED Scrolling message Display using 8051 by: Pratik Suthar in: 8051 Projects
Thu May 08 2014, 10:58 AM
Comments
- Pure Sine Wave Inverter Using Atmel 89S2051 by: ExperimenterUK
Thu Jan 07 2021, 12:54 PM - Pure Sine Wave Inverter Using Atmel 89S2051 by: MUNIKOJR
Wed Jan 06 2021, 06:36 AM - Frequency Counter using AT89C2051 and LCD (Assembly) by: ExperimenterUK
Mon Nov 23 2020, 02:40 PM - Frequency Counter using AT89C2051 and LCD (Assembly) by: Auden
Mon Nov 23 2020, 08:43 AM - Frequency Counter using AT89C2051 and LCD (Assembly) by: Chinh 299
Sat Jun 13 2020, 01:18 PM
Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM
Online
Guests: 118, Members: 0 ...
most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM
Members: 38215
Newest member: Mirza123
most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM
Members: 38215
Newest member: Mirza123
Trending Topics
mutiplexed 7-seg display bascom CCS PCM C Compiler 8051 Microcontroller 3rd Edition Scott MacKenzie temprature 8051 idata and data memory difference bootloader interrupts LCD examples random wallpaper interfacing ADC0809 with 8051 sem Wireless Communications & Networking monitor and control green house environment projec heartbeat sensor using infrared LED Digital Lock project cud good luck read sms using assembly s-video electromagnetics