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 counter using lpc2148

Status
Not open for further replies.

Priyanka Desai

Newbie level 4
Newbie level 4
Joined
Mar 5, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,315
Hello guys,
I have generated variable frequency square wave from 555. Now I want to give that frequency to LPC2148 and also display on 20x2 LCD. Can anyone help me to decide program flow? that is algorithm?
 

There is no algorithm for it. I haven't used LPC microcontrollers but you have to use an external interrupt pin to count the pulses. You have to feed your pulses to external interrupt pin and configure it either to trigger for falling edge or rising edge. Count how many interrupts occur for some time like 10 ms and calculate the frequency. Everytime a interrupt occurs you have to increment a counter which will give the no. of interrupts.
 

Hi... Will you send me code for frequency counter with any other controller? I will convert it with lpc2148
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top