free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
8051 Projects [ projects based on 8051 ]

Frequency Counter using AT89C2051 and LCD (Assembly)
Author Ajay Bhargav
Author email contact@rickeyworld.info
Author website www.rickeyworld.info
Bookmark this download
Description 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 cycle 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.

Files:
1. FreqCounter.asm - Main program
2. FreqCounter.hex - Hex file
3. frequency_counter.png - Block Diagram
4. Schematic.pdf - circuit

For any doubts and suggestions please use forum

Use the Download button below to download this project.
Tags: Frequency Counter using AT89C2051 and LCD, Frequency Counter using 8051
Image
Filesize 19.51 kB
Date Tuesday 27 October 2009 - 14:06:06
Downloads 5002
Download
Rating
Not rated 

Comments



Microcontroller ebooks Projects codes examples eetech | 28 Oct : 03:43
Great Upload!!!
Working fine in Proteus.
Reply to this  

Microcontroller ebooks Projects codes examples xiaolaba | 22 Jan : 07:13
it is great to have this open source project.
thanks

http://hk.myblog.yahoo.com/xiao-laba/article?mid=2350
Reply to this  

Microcontroller ebooks Projects codes examples mosu3566 | 25 Feb : 21:40
do u get me flow charet of program plz


m.soolaki@gmail.com

Reply to this  

Microcontroller ebooks Projects codes examples mosu3566 | 25 Feb : 21:52
plz help me


give me block diagram or fallowchart of this program
Reply to this  


Microcontroller ebooks Projects codes examples Ajay Bhargav | 27 Feb : 12:39
Block diagram is what shown above, sorry do not have any flowchart. To download block diagram use the download button above.
Reply to this  


Microcontroller ebooks Projects codes examples a.b | 28 Feb : 04:58
it do not working my lcd dont sho number?can any one help me
Reply to this  


Microcontroller ebooks Projects codes examples Ajay Bhargav | 03 Mar : 09:54
check your connections, use forum.
Reply to this  

Submit comment

Subject
Username:
Comment:



Facebook Fans


Google Search for Microcontrollers!

Google
 

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems