The SR latch (also known as the basic RS flip-flop) is the simplest structural form among various flip-flop circuits. At the same time, TA is also one of many complex circuits. The basic building blocks of structural triggers. (Recommended study: phpstorm)
The RS latch is a circuit with one or two inputs and two outputs. The circuit is as shown in Figure a below, with two crosses. It is composed of two NAND gates connected by feedback, and its two outputs are two opposite outputs (or called complementary outputs). Figure b shows its logic symbol.
In the figure, /RD and /SD are the two input terminals of the RS latch, Q and /Q are two complementary outputs, from the figure It is not difficult to see that the output state does not change when /RD and /SD are high level, but the output changes only when one of its inputs is low level, so /RD and /SD are active low level.
Let’s take a look at the working process of the RS latch. We can discuss it in four situations:
1. /RD=0, /SD=0
It can be seen from the circuit that when /RD=0,/SD=0, Q=/Q=1, and the latched Q and /Q are two Complementary output, and now the two outputs are equal, this is not allowed, so this situation is not allowed for the latch, so it is usually called an impermissible state;
2./RD=0,/SD=1
Since /SD=1, the state of Q depends on the state of /Q, and since /RD=0,/Q=1, Therefore Q=0, so when /RD=0,/SD=1, the flip-flop is set to 0, so it is called the set-0 state;
3./RD=1,/SD= 0
This is exactly the opposite of the previous situation. Its Q=1,/Q=0, that is, the flip-flop is set to 1, so it is called the set state;
4./RD=1,/SD=1
Since the input of RS is active low level, and now both inputs are high level, its output state remains unchanged. , called the holding state.
The above RS latch is composed of NAND. A NOR gate can also be used to form an RS latch, and the function of the RS latch can also be realized.
The above is the detailed content of How does the sr latch work?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools