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.

The algorithm for frequency measurement and display

Status
Not open for further replies.

saurav_sdpl

Full Member level 3
Joined
Sep 29, 2006
Messages
185
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
2,522
hii,

I am doing a project for a datalogging system.I have to read frequency of a 56KHz triangular wave and display it on PC through RS-232 port.

Plz provide me with the algorithm for frequency measurement and display.Its quite urgent
 

Re: frequency generation

Unless you are required to build the device, how about simply borrowing/renting/buying a frequency counter that has an RS-232 output? For example, an Agilent 53131A. I'm sure less expensive counters exists, that's just the first one I could think of.
 

Re: frequency generation

I need to write a code in assembly for frequency measurement.

Microcontroller to be used at89c52.

plz help me in this
 

Re: frequency generation

Hello
saurav

Frequency:- No. of pulses/1sec
With help of uC 89c51 you can measure only 0-5V pulses.
Therefor is your triangular wave have amplitude with in this range? if not then
convert triangular wave to square wave. then connect this to int1/INT0,
Configure timer2 for one second using 16 bit auto reload.
Before stating measurement initiate, INT0/1 and run timer,
On ISR of int0/1 keep on incrementing one count for every interrupt
On ISR of TIMER0 desable interrupt and wait exit timer0,
WAIT FOR TIMER TO stop in main routine.
Now display count that will be frequency of signal.

hope u understand
all the best
--Babesh
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top