Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

frequency mesurement using 8051 in c language

Status
Not open for further replies.

deepaiyer

Newbie level 1
Joined
Mar 10, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
hi i am doing a project in which i have to measure the frequency from a microcontroller using c language plz plz help me out its urgent:cry:
 

Hi

8051 have 2 timers

Set Timer1 as counter to cont pulse of incoming (frequency to be measured) signal
And set timer2 as 1 sec time base (signal must be with in microcontroller voltage levels)

Reset Timer1(counter) to 0 set it to start count , start timer2 for 1 sec delay
stop timer1(counter) when delay pass and get the counted value from timer register

Do some math (F=1/T) - and you have the measured frequency

All the best

Bobi

The microcontroller specialist
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top