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 read frequency signal?

Status
Not open for further replies.

jsbhalla88

Member level 1
Member level 1
Joined
Mar 3, 2015
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
314
Hi,
I am working on PIC18F4520.
I have a signal on PIN RB2 whose frequency is 120Hz, pulse width 230 us(approx.) and time between falling edge and next rising edge is about 200 ms.
I have to read this signal and check whether it has the above specifications or not.
how to do this..?????
 

Hi,

you need a lab tool like an Oscilloscope.

Now days you can buy very good ones for very little money.
I have my eyes on one of Rigol for quite some time.
 

Hi,
I am working on PIC18F4520.
I have a signal on PIN RB2 whose frequency is 120Hz, pulse width 230 us(approx.) and time between falling edge and next rising edge is about 200 ms.
I have to read this signal and check whether it has the above specifications or not.
how to do this..?????
The common method is on rising edge to start a counter (timer in counter mode) and to stop the counter on falling edge. The count * period of the clock is the period of your pulse.
You can use PORTB interrupt to start and stop the counter.
 
Last edited:

Hi,

you need a lab tool like an Oscilloscope.

Now days you can buy very good ones for very little money.
I have my eyes on one of Rigol for quite some time.

I have one.. this is how I checked the pulse characteristics...
 

EDIT....:
next rising edge is 8 ms, not 200 ms...I mixed it with other signal...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top