基础——(4)SR Latch(SR锁存器)

Digital logic gets really interesting when we connect the output of gates back to an input. The SR latch is one of the most basic memory circuits that we can build on to make counters, registers, and all sorts of other interesting things.

SR 对应 set reset

或门:

先观察右边的或门,查看真值表

按下a亮灯 松开a 灯亮的状态仍然保持

通过74LS32实现

 

锁存器

SR 锁存器

按住上面的开关 会经历下面三种状态

 

最后下面的灯会亮

然后松开上面的开关 灯仍然是亮的 变成如图下的状态:

 

会发现这张图片的状态其实是和最开始的那张图中的状态是上下完全相反的:!

,这个时候按住下面的开关按钮

上面的灯亮了,几乎和上面的步骤是一样的,只是颠倒过来了。

这个东西叫做:S-R Latch (Set Reset Latch)

SR Latch

**:

如果set和reset一起按的时候会怎么样呢?

松开的时候可能是两种中的任意一种状态 因为sr锁存器不应该一起按下(就不能这样用。因为结果是取决于哪个先被按下的) 

原文地址:https://www.cnblogs.com/eret9616/p/10029472.html