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 detect second rising edge of a periodic signal

Status
Not open for further replies.

Stefanovic

Newbie level 6
Newbie level 6
Joined
Jun 11, 2012
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
France
Visit site
Activity points
1,358
Hi everyone
I need to detect the second rising edge of this signal (it's an entry)
i've tried several ways but without succes
Capture.JPG
how do i do that ?
thanks
 

Hello ,
just to make sure , you want to detect every second rising edge ? or the second edge in the 6 pulses train ? also does the display start from right to left ? cuz where u point is a falling edge
Regards
 

your picture is misleading - it points to falling edges.
And at what point does an edge become a second rising edge? every second one? or second one after a given input?
 

If I understand your problem correctly:
Set a timer after each falling edge to time when the next middle of a high bit should occur in the normal input sequence. If you then sample a low you know you are in the gap between the input sequences. Then just count the number of rising or falling edges to detect the one you want.

Maybe you could make the problem more clear.
 

To detect the edge, you can just register the signal with multiple back to back registers. For rising edge, you can just check for reg [n] & ! reg [n-1]
 

sorry for the misunderstanding
yes i want to detect second rising edge of each 6 pulses train
i'm trying your given solution thanks
 

I have a second though, the correct implementation should be

having 6 level of edge detection logic of reg[n] & ! reg[n-1]

Hope this help
 

i know that "&" is for concatenation
but i dont know which operator is "!" and what does "reg[n] & ! reg[n-1]" :/
 

I guess you know VHDL. ttanch posted Verilog, which in VHDL translates to

reg(n) and not reg(n-1);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top