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
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..?????
 

Hexureus

Newbie level 4
Joined
Apr 29, 2015
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
42
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.
 

Vbase

Full Member level 6
Joined
Apr 7, 2015
Messages
367
Helped
74
Reputation
148
Reaction score
72
Trophy points
28
Activity points
1,997
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:

jsbhalla88

Member level 1
Joined
Mar 3, 2015
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
314
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...
 

jsbhalla88

Member level 1
Joined
Mar 3, 2015
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
314
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

Top