In this section, the problem of decoder glitches is introduced and examined from a troubleshooting standpoint. A glitch is any undesired voltage or current spike (pulse) of very short duration.
A glitch can be interpreted as a valid signal by a logic circuit and may cause improper operation. After completing this section, you should be able to
u Explain what a glitch is
u Determine the cause of glitches in a decoder application
u Use the method of output strobing to eliminate glitches
毛刺是数字电路输出中的临时和不需要的变化。它们可能是由于各种原因引起的,例如信号传播延迟或电路中的噪声。毛刺有时会导致数字系统的不正确行为,因此需要识别并解决。在使用74HC138译码器作为3线到8线译码器的情况下,毛刺可能会在输入发生变化但输出由于电路中的传播延迟而没有立即变化时发生。
要识别毛刺,您可以使用逻辑分析仪或示波器来观察输入和输出信号的波形。逻辑分析仪适用于低重复率或毛刺不规律出现的情况,因为它具有毛刺捕获功能。示波器也可以使用,特别是对于发生在定期高重复率(大于10 kHz)的毛刺,可以取得合理的成功。
在图6-60中,74HC138译码器的A2A1A0输入通过二进制计数顺序变化,逻辑分析仪显示了输入和输出信号的波形。A2的变化延迟于A1的变化,A1的变化延迟于A0的变化,这在二进制计数器中是常见的。这种延迟可能导致输出信号上的毛刺,如图中所示。
strobing 是一种消除数字电路中毛刺问题的方法。它通过在信号稳定时才使电路动作来消除毛刺。例如,在一个时钟周期内,只有在时钟信号稳定且没有发生变化时,才允许电路的输出发生变化。这样可以确保在稳定状态下对输出进行采样,从而消除由于信号变化引起的毛刺。