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.

How to calculate Sine wave frequency using LPC2148

Status
Not open for further replies.

nagarajanj21

Member level 1
Joined
Aug 24, 2010
Messages
37
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Chennai, INDIA
Activity points
1,492
Hai i am working with LPC2148. i need help. how Can we calculate the frequency of the sine wave which is given as a input to the LPC2148 from Function generator.
 

HI

There are 2 option (both option are frequency dependent)

first option

You need to square the signal and transfer it into the digital domain (signal level)
and measure it using one of the timers as counter with external trigger

Second option

Sample the incoming signal with an ADC and run an FFT algorithm

All the best

Bobi

The microcontroller specialist
 
Please explain it breify sir.... i can easily calculate it from Square wave... in LPC2148 had 10 bit ADC. if i convert that Analog signal to digital means i get get a values from 0 to 3FF(hex). then how can measure the frequency after that process.....
 

hi there...
U can set the software interrupt to be generated when the analog sine input value is zero... and increment the value of register on each interrupt , starting from 0...at the end of 1second the register value divided by 2 should give the frequency of sine wave , i guess
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top