这代表一种过零检测器。
比较器的输出
将代表您的数字化信号的符号位。
你应该注意逻辑
在该图中实现了正向过零检测器。
如果你需要
要检测正交叉和负交叉,您应该将门更改为
一个独家OR门。
除了比较器之外,此图中的所有内容都可以
在FPGA内部实现。
另一个问题是你检测到什么样的信号
零交叉?
该图是针对简单的正弦波输入的情况而制作的。
对于大多数真实世界的信号,在检测到之前可能需要进行一些过滤
零交叉或您可能会看到由于噪音导致的许多过零点。
在里面
图表时钟显示为50 MHz。
这可能要快得多
对输入信号感兴趣的最高频率,因此更多
对噪音敏感。
电路还有一个问题。
你通常应该再多一个
比较器和过零检测器触发器之间的触发器如图所示
在图中。
否则,脉冲在输出端可以具有非常小的宽度
因为比较器可以在时钟周期的任何时刻改变。
在一个
系统带有A / D转换器并使用采样率作为时钟
因为第一个“触发器”生效,所以触发器没有相同的问题
在A / D转换器内部。
问候,
的Gabor
- Gabor
以上来自于谷歌翻译
以下为原文
This represents one type of zero crossing detector. The output of the comparator
would represent the sign bit of your digitized signal. You should note that the logic
in this diagram implements a positive-going zero crossing detector. If you need
to detect both positive and negative crossings you should change the gate to
an exclusive OR gate. Everything in this diagram except the comparator could be
implemented inside the FPGA. Another question is what sort of signal are you detecting
the zero-crossings of? This diagram was made for a case of a simple sine-wave input.
With most real-world signals you may need some filtering before you detect the
zero crossing or you will likely see many zero-crossings due to noise. In the
diagram the clock is shown as 50 MHz. This is likely to be much faster than
the highest frequency of interest in the incoming signal and therefore more
sensitive to noise.
There is one other problem with the circuit. You should normally have one more
flip-flop between the comparator and the zero-crossing detector flip-flop shown
in the diagram. Otherwise the pulses can have very small widths at the output
because the comparator can change at any point during the clock cycle. In a
system with an A/D converter and using the sampling rate as the clock to the
flip-flop you don't have the same issue because the first "flip-flop" is in effect
inside the A/D converter.
Regards,
Gabor
-- Gabor